Ignore:
Timestamp:
Jan 14, 2013, 6:49:25 PM (12 years ago)
Author:
alloc
Message:

AEI2:

  • Added BSL handling to installation
  • Updated config-terms for dependencies/incompatibilities
  • Fixed mod counts for types
  • Open Edition folder through menu
  • Open folder of already downloaded mod through context menu
  • (Semi?)Fixed launching Oni on MacOS
  • Settings: Added checkbox for update notification
Location:
AE/installer2/src/net/oni2/aeinstaller/gui/settings
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.java

    r593 r608  
    77
    88import javax.swing.AbstractAction;
     9import javax.swing.JCheckBox;
    910import javax.swing.JComboBox;
    1011import javax.swing.JComponent;
     
    3334        private LaFComboModel laFModel;
    3435
     36        private JCheckBox chkNotifyOnStart;
     37
    3538        /**
    3639         * Open the settings
    3740         */
    3841        public SettingsDialog() {
    39                 setMinimumSize(new Dimension(500, (int) getSize().getHeight() + 0));
     42                setMinimumSize(new Dimension(320, (int) getSize().getHeight() + 0));
    4043
    4144                AbstractAction closeAction = new AbstractAction() {
     
    6265                laFModel = new LaFComboModel();
    6366                cmbLaF.setModel(laFModel);
     67
     68                chkNotifyOnStart.setSelected(set.get("notifyupdates", true));
    6469        }
    6570
     
    6873                Settings set = Settings.getInstance();
    6974
    70                 String oldLaf = set.get("lookandfeel",
    71                                 UIManager.getLookAndFeel().getClass().getName());
     75                set.get("notifyupdates", chkNotifyOnStart.isSelected());
     76
     77                String oldLaf = set.get("lookandfeel", UIManager.getLookAndFeel()
     78                                .getClass().getName());
    7279                String newLaf = laFModel.getSelectedClassName();
    7380
  • AE/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.properties

    r591 r608  
    66lblLaF=GUI theme:
    77
    8 panSetupDefaults=Default values for the installations
    9 lblCreateDesktop=Link auf Desktop erstellen:
    10 lblDesktopFolder=Desktop-Ordner:
    11 txtDesktopFolder=Relativ zum Desktop-Ordner. Z.B. "." um die Verknüpfungen direkt auf dem Desktop abzulegen, "Spiele" um die Verknüpfungen in einen Unterordner Spiele auf dem Desktop zu legen.
    12 lblUnattended=<html>Schnelles Setup (obige<br>Einstellungen nicht im Setup änderbar):</html>
    13 
     8panCommon=Common settings
     9lblNotifyOnStart=Notify about updates on startup:
    1410
    1511newLaF.text=A new GUI theme was selected.\nPlease restart the application in order to apply the changes.
  • AE/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.yml

    r593 r608  
    1010    - JButton(name=btnOk, text=btnOk, onAction=[save,dispose])
    1111    - JButton(name=btnCancel, text=btnCancel, onAction=[dispose])
    12     - JPanel(name=panSetupDefaults, groupTitle=panSetupDefaults):
    13       - JLabel(name=lblCreateDesktop, text=lblCreateDesktop)
    14       - JCheckBox(name=chkCreateDesktop)
    15       - JLabel(name=lblDesktopFolder, text=lblDesktopFolder)
    16       - JTextField(name=txtDesktopFolder, toolTipText=txtDesktopFolder)
     12    - JPanel(name=panCommon, groupTitle=panCommon):
     13      - JLabel(name=lblNotifyOnStart, text=lblNotifyOnStart)
     14      - JCheckBox(name=chkNotifyOnStart)
    1715      - MigLayout: |
    1816           [min]                [grow]
    19            >lblCreateDesktop    chkCreateDesktop         [pref]
    20            >lblDesktopFolder    txtDesktopFolder         [pref]
     17           >lblNotifyOnStart    chkNotifyOnStart         [pref]
    2118    - JPanel(name=panUI, groupTitle=panUI):
    2219      - JLabel(name=lblLaF, text=lblLaF)
     
    2724    - MigLayout: |
    2825         [grow]
    29          panSetupDefaults        [pref]
     26         panCommon               [pref]
    3027         panUI                   [pref]
    3128         >btnOk+*=1,btnCancel=1  [min]
Note: See TracChangeset for help on using the changeset viewer.