Changeset 873 for java/installer2/src/net
- Timestamp:
- May 20, 2013, 1:24:58 PM (12 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r871 r873 48 48 import javax.swing.ToolTipManager; 49 49 import javax.swing.filechooser.FileFilter; 50 import javax.swing.text.html.CSS; 50 51 51 52 import net.oni2.SettingsManager; … … 82 83 import net.oni2.platformtools.applicationinvoker.ERuntimeNotInstalledException; 83 84 import net.oni2.resourcebundle.UTF8ResourceBundleLoader; 85 import net.oni2.swingcomponents.HTMLLinkLabel; 84 86 85 87 import org.javabuilders.BuildResult; … … 460 462 461 463 @SuppressWarnings("unused") 464 private void showTips() { 465 if (SettingsManager.getInstance().get("showTips", true)) { 466 HTMLLinkLabel text = new HTMLLinkLabel(); 467 text.setCssAttribute("h2", CSS.Attribute.MARGIN_TOP, "0"); 468 text.setCssAttribute("h3", CSS.Attribute.MARGIN_TOP, "0"); 469 text.setCssAttribute("ul", CSS.Attribute.MARGIN_TOP, "0"); 470 text.setCssAttribute("ul", CSS.Attribute.MARGIN_LEFT, "20"); 471 text.setCssAttribute("ul li", CSS.Attribute.MARGIN_TOP, "10"); 472 text.setCssAttribute("ul li", CSS.Attribute.PADDING_LEFT, "10"); 473 text.setText(bundle.getString("startupTips.text")); 474 JOptionPane.showMessageDialog(this, text, 475 bundle.getString("startupTips.title"), 476 JOptionPane.INFORMATION_MESSAGE); 477 } 478 } 479 480 @SuppressWarnings("unused") 462 481 private void focus() { 463 482 SwingUtilities.invokeLater(new Runnable() { -
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.yml
r860 r873 6 6 locationRelativeTo: null 7 7 defaultCloseOperation: doNothingOnClose 8 onWindowOpened: [execDepotUpdate,checkCorePackages,infoCorePackages,checkInitialize,initialize,checkUpdates,doUpdate,refreshToolsMenu,showNewPackages, focus]8 onWindowOpened: [execDepotUpdate,checkCorePackages,infoCorePackages,checkInitialize,initialize,checkUpdates,doUpdate,refreshToolsMenu,showNewPackages,showTips,focus] 9 9 onWindowClosing: [saveLocalData,exit] 10 10 iconImage: img.ae -
java/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.java
r872 r873 41 41 private JCheckBox chkNotifyNewPackagesOnStart; 42 42 private JCheckBox chkNotifyDepsAfterInstall; 43 private JCheckBox chkShowTipsAtStart; 43 44 private JCheckBox chkCopyIntro; 44 45 private JCheckBox chkCopyOutro; … … 86 87 chkNotifyDepsAfterInstall.setSelected(set.get("notifyDepsAfterInstall", 87 88 false)); 89 chkShowTipsAtStart.setSelected(set.get("showTips", true)); 88 90 chkCopyIntro.setSelected(set.get("copyintro", false)); 89 91 chkCopyOutro.setSelected(set.get("copyoutro", true)); … … 145 147 set.put("notifyDepsAfterInstall", 146 148 chkNotifyDepsAfterInstall.isSelected()); 149 set.put("showTips", chkShowTipsAtStart.isSelected()); 147 150 set.put("copyintro", chkCopyIntro.isSelected()); 148 151 set.put("copyoutro", chkCopyOutro.isSelected()); -
java/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.yml
r860 r873 14 14 - JCheckBox(name=chkNotifyNewPackagesOnStart, horizontalTextPosition=LEADING, text=lblNotifyNewPackagesOnStart) 15 15 - JCheckBox(name=chkNotifyDepsAfterInstall, horizontalTextPosition=LEADING, text=lblNotifyDepsAfterInstall, toolTipText=lblNotifyDepsAfterInstall.tooltip) 16 - JCheckBox(name=chkShowTipsAtStart, horizontalTextPosition=LEADING, text=lblShowTipsAtStart) 16 17 - JCheckBox(name=chkCopyIntro, horizontalTextPosition=LEADING, text=lblCopyIntro) 17 18 - JCheckBox(name=chkCopyOutro, horizontalTextPosition=LEADING, text=lblCopyOutro) … … 21 22 >chkNotifyNewPackagesOnStart [pref] 22 23 >chkNotifyDepsAfterInstall [pref] 24 >chkShowTipsAtStart [pref] 23 25 >chkCopyIntro [pref] 24 26 >chkCopyOutro [pref] -
java/installer2/src/net/oni2/aeinstaller/localization/MainWin.properties
r860 r873 95 95 doUpdate.title=Updating packages 96 96 97 startupTips.title=Instructions 98 startupTips.text=<h2>Welcome to Oni's Anniversary Edition Installer!</h2>\ 99 <h3>Please take a moment to read these instructions before you start.</h3>\ 100 <ul><li>Read each mod's description carefully before you decide to install it.</li>\ 101 <li>On your first run, try not to install more than 20 to 30 mods. Installing<br>\ 102 too many mods can cause Oni to run out of memory.</li>\ 103 <li>To uninstall a mod, just unselect it from the list and click "Install"<br>\ 104 again; you don't have to delete it.</li>\ 105 <li>It's highly recommended that you update your mods and the AE Installer<br>\ 106 whenever you're notified that an update is available.</li>\ 107 <li>If you're notified that two mods are incompatible, you have to unselect<br>\ 108 one of them before you try to install again.</li>\ 109 <li>To report bugs or problems with the Anniversary Edition itself or the<br>\ 110 AE Installer go <a href="http://oni.bungie.org/community/forum/viewforum.php?id=12">here</a>.</li>\ 111 <li>To report bugs with a particular mod, visit that mod's thread, which is<br>\ 112 usually linked to in the mod's description.</li>\ 113 <li>Warning: If too many mods which use custom particles are installed, Oni<br>\ 114 may crash. Read more about this issue <a href="http://oni.bungie.org/community/forum/viewtopic.php?id=2567">here</a>.</li>\ 115 <li>For more information and instructions on the features of the AE Installer<br>\ 116 itself, see "Help" under the "Installer" menu.</li>\ 117 <li>To disable this message, uncheck the corresponding option in "Settings"<br>\ 118 under the "Installer" menu.</li></ul> 119 97 120 jreNotFound.text=This tool requires a JRE but it was not found. 98 121 jreNotFound.title=No JRE found -
java/installer2/src/net/oni2/aeinstaller/localization/SettingsDialog.properties
r860 r873 17 17 informed on what additional mods were installed to meet<br>\ 18 18 dependencies <b>afterwards</b>.</html> 19 lblShowTipsAtStart=Show tips on startup: 19 20 lblCopyIntro=Enable starting video on installation: 20 21 lblCopyOutro=Enable ending video on installation:
Note:
See TracChangeset
for help on using the changeset viewer.