Skip to content

Commit

Permalink
Change version to 2.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
huanghongxun committed May 20, 2017
1 parent 532ff88 commit a8bc4eb
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion HMCL/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ buildnumber = "25"

def versionroot = System.getenv("VERSION_ROOT")
if (versionroot == null)
versionroot = "2.7.6"
versionroot = "2.7.7"

String mavenGroupId = 'HMCL'
String mavenVersion = versionroot + '.' + buildnumber
Expand Down
10 changes: 5 additions & 5 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/GameSettingsPanel.form
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<SubComponents>
<Container class="javax.swing.JPanel" name="pnlSettings">
<AuxValues>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page()"/>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation())"/>
</AuxValues>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
Expand Down Expand Up @@ -383,7 +383,7 @@
</Container>
<Container class="javax.swing.JPanel" name="pnlAdvancedSettings">
<AuxValues>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page()"/>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation())"/>
</AuxValues>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
Expand Down Expand Up @@ -593,7 +593,7 @@
</Container>
<Container class="javax.swing.JPanel" name="pnlModManagement">
<AuxValues>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page()"/>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation())"/>
</AuxValues>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
Expand All @@ -620,7 +620,7 @@
<SubComponents>
<Container class="javax.swing.JPanel" name="pnlModManagementContent">
<AuxValues>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page()"/>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation())"/>
</AuxValues>

<Layout>
Expand Down Expand Up @@ -724,7 +724,7 @@
</Container>
<Container class="javax.swing.JPanel" name="pnlAutoInstall">
<AuxValues>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page()"/>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation())"/>
</AuxValues>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
Expand Down
12 changes: 6 additions & 6 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/GameSettingsPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void initGui() {

for (int i = 0; i < InstallerType.values().length; i++)
installerPanels[i] = new InstallerPanel(this, InstallerType.values()[i]);
pnlGameDownloads = new GameDownloadPanel(this);
pnlGameDownloads = new GameDownloadPanel(this).setAnimationEnabled(Settings.getInstance().isEnableAnimation());

initExplorationMenu();
initManagementMenu();
Expand Down Expand Up @@ -278,7 +278,7 @@ private void initComponents() {

tabVersionEdit = new NewTabPane();
((NewTabPane)tabVersionEdit).initializing = true;
pnlSettings = new Page();
pnlSettings = new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation());
lblGameDir = new javax.swing.JLabel();
txtGameDir = new javax.swing.JTextField();
lblDimension = new javax.swing.JLabel();
Expand All @@ -301,7 +301,7 @@ private void initComponents() {
btnChoosingGameDir = new javax.swing.JButton();
btnCleanGame = new javax.swing.JButton();
lblUsesGlobal = new javax.swing.JLabel();
pnlAdvancedSettings = new Page();
pnlAdvancedSettings = new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation());
lblJavaArgs = new javax.swing.JLabel();
txtJavaArgs = new javax.swing.JTextField();
txtMinecraftArgs = new javax.swing.JTextField();
Expand All @@ -317,14 +317,14 @@ private void initComponents() {
txtWrapperLauncher = new javax.swing.JTextField();
chkDontCheckGame = new javax.swing.JCheckBox();
chkNoCommon = new javax.swing.JCheckBox();
pnlModManagement = new Page();
pnlModManagementContent = new Page();
pnlModManagement = new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation());
pnlModManagementContent = new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation());
jScrollPane1 = new javax.swing.JScrollPane();
lstExternalMods = new javax.swing.JTable();
btnAddMod = new javax.swing.JButton();
btnRemoveMod = new javax.swing.JButton();
lblModInfo = new javax.swing.JLabel();
pnlAutoInstall = new Page();
pnlAutoInstall = new Page().setAnimationEnabled(Settings.getInstance().isEnableAnimation());
tabInstallers = new NewTabPane();
pnlTop = new javax.swing.JPanel();
pnlSelection = new javax.swing.JPanel();
Expand Down
2 changes: 2 additions & 0 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/InstallerPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public class InstallerPanel extends Page implements ProgressProviderListener {
*/
public InstallerPanel(GameSettingsPanel gsp, InstallerType installerType) {
initComponents();

animationEnabled = Settings.getInstance().isEnableAnimation();

setOpaque(false);
this.gsp = gsp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import sun.misc.Unsafe;

/**
*
* This class is for breaking the module system of Java 9.
* @author huang
*/
public class ReflectionHelper {
Expand Down
5 changes: 5 additions & 0 deletions HMCLCore/src/main/java/org/jackhuang/hmcl/util/ui/Page.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ protected void superPaint(Graphics2D g) {
Timer timer;

protected boolean animationEnabled = true;

public Page setAnimationEnabled(boolean a) {
animationEnabled = a;
return this;
}

public void animate() {
if (animationEnabled) {
Expand Down

0 comments on commit a8bc4eb

Please sign in to comment.