mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 02:52:02 -08:00
refactor: actual form file format for preferences dialog
This commit is contained in:
parent
74804a468e
commit
3b188340fa
1 changed files with 667 additions and 667 deletions
|
|
@ -775,7 +775,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
lblTargetAutoChoose.setText("Auto-choose targets for player:");
|
lblTargetAutoChoose.setText("Auto-choose targets for player:");
|
||||||
lblTargetAutoChoose.setToolTipText("<html>\nWhen there is only one possible outcome for targeting, the targets can be chosen for you.\n<br>\n<b>None:</b> All targeting must be done by the player.\n<br>\n<b>Most:</b> All targeting other than feel-bad effects (discarding, destroy, sacrifice, exile) that target you, a card you own, or a permanent/spell you control.\n<br>\n<b>All:</b> All targeting that can be automated will be.");
|
lblTargetAutoChoose.setToolTipText("<html>\nWhen there is only one possible outcome for targeting, the targets can be chosen for you.\n<br>\n<b>None:</b> All targeting must be done by the player.\n<br>\n<b>Most:</b> All targeting other than feel-bad effects (discarding, destroy, sacrifice, exile) that target you, a card you own, or a permanent/spell you control.\n<br>\n<b>All:</b> All targeting that can be automated will be.");
|
||||||
|
|
||||||
cbTargetAutoChooseLevel.setModel(new javax.swing.DefaultComboBoxModel<>(new String[]{"Off", "Most", "All"}));
|
cbTargetAutoChooseLevel.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Off", "Most", "All" }));
|
||||||
cbTargetAutoChooseLevel.setSelectedIndex(1);
|
cbTargetAutoChooseLevel.setSelectedIndex(1);
|
||||||
cbTargetAutoChooseLevel.setToolTipText(lblTargetAutoChoose.getToolTipText());
|
cbTargetAutoChooseLevel.setToolTipText(lblTargetAutoChoose.getToolTipText());
|
||||||
|
|
||||||
|
|
@ -827,7 +827,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
|
|
||||||
main_battlefield.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Battlefield"));
|
main_battlefield.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Battlefield"));
|
||||||
|
|
||||||
cbBattlefieldFeedbackColorizingMode.setModel(new javax.swing.DefaultComboBoxModel(new String[]{"Disable colorizing", "Enable one color for all phases", "Enable multicolor for different phases"}));
|
cbBattlefieldFeedbackColorizingMode.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Disable colorizing", "Enable one color for all phases", "Enable multicolor for different phases" }));
|
||||||
cbBattlefieldFeedbackColorizingMode.setToolTipText("Battlefield feedback panel colorizing on your turn (e.g. use green color if you must select card or answer to request)");
|
cbBattlefieldFeedbackColorizingMode.setToolTipText("Battlefield feedback panel colorizing on your turn (e.g. use green color if you must select card or answer to request)");
|
||||||
cbBattlefieldFeedbackColorizingMode.addActionListener(new java.awt.event.ActionListener() {
|
cbBattlefieldFeedbackColorizingMode.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
|
@ -890,18 +890,18 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
tabGuiSize.setMaximumSize(new java.awt.Dimension(527, 423));
|
tabGuiSize.setMaximumSize(new java.awt.Dimension(527, 423));
|
||||||
tabGuiSize.setMinimumSize(new java.awt.Dimension(527, 423));
|
tabGuiSize.setMinimumSize(new java.awt.Dimension(527, 423));
|
||||||
java.awt.GridBagLayout tabGuiSizeLayout = new java.awt.GridBagLayout();
|
java.awt.GridBagLayout tabGuiSizeLayout = new java.awt.GridBagLayout();
|
||||||
tabGuiSizeLayout.columnWidths = new int[]{0};
|
tabGuiSizeLayout.columnWidths = new int[] {0};
|
||||||
tabGuiSizeLayout.rowHeights = new int[]{0, 20, 0};
|
tabGuiSizeLayout.rowHeights = new int[] {0, 20, 0};
|
||||||
tabGuiSizeLayout.columnWeights = new double[]{1.0};
|
tabGuiSizeLayout.columnWeights = new double[] {1.0};
|
||||||
tabGuiSizeLayout.rowWeights = new double[]{1.0, 0.0, 1.0};
|
tabGuiSizeLayout.rowWeights = new double[] {1.0, 0.0, 1.0};
|
||||||
tabGuiSize.setLayout(tabGuiSizeLayout);
|
tabGuiSize.setLayout(tabGuiSizeLayout);
|
||||||
|
|
||||||
guiSizeBasic.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Size basic elements"));
|
guiSizeBasic.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Size basic elements"));
|
||||||
guiSizeBasic.setMinimumSize(new java.awt.Dimension(600, 180));
|
guiSizeBasic.setMinimumSize(new java.awt.Dimension(600, 180));
|
||||||
guiSizeBasic.setPreferredSize(new java.awt.Dimension(600, 180));
|
guiSizeBasic.setPreferredSize(new java.awt.Dimension(600, 180));
|
||||||
java.awt.GridBagLayout guiSizeBasicLayout = new java.awt.GridBagLayout();
|
java.awt.GridBagLayout guiSizeBasicLayout = new java.awt.GridBagLayout();
|
||||||
guiSizeBasicLayout.columnWeights = new double[]{1.0, 1.0, 1.0};
|
guiSizeBasicLayout.columnWeights = new double[] {1.0, 1.0, 1.0};
|
||||||
guiSizeBasicLayout.rowWeights = new double[]{1.0, 0.2, 1.0, 0.2};
|
guiSizeBasicLayout.rowWeights = new double[] {1.0, 0.2, 1.0, 0.2};
|
||||||
guiSizeBasic.setLayout(guiSizeBasicLayout);
|
guiSizeBasic.setLayout(guiSizeBasicLayout);
|
||||||
|
|
||||||
sliderFontSize.setMajorTickSpacing(5);
|
sliderFontSize.setMajorTickSpacing(5);
|
||||||
|
|
@ -1120,8 +1120,8 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
guiSizeGame.setMinimumSize(new java.awt.Dimension(600, 180));
|
guiSizeGame.setMinimumSize(new java.awt.Dimension(600, 180));
|
||||||
guiSizeGame.setPreferredSize(new java.awt.Dimension(600, 180));
|
guiSizeGame.setPreferredSize(new java.awt.Dimension(600, 180));
|
||||||
java.awt.GridBagLayout guiSizeGameLayout = new java.awt.GridBagLayout();
|
java.awt.GridBagLayout guiSizeGameLayout = new java.awt.GridBagLayout();
|
||||||
guiSizeGameLayout.columnWeights = new double[]{1.0, 1.0, 1.0, 1.0};
|
guiSizeGameLayout.columnWeights = new double[] {1.0, 1.0, 1.0, 1.0};
|
||||||
guiSizeGameLayout.rowWeights = new double[]{1.0, 0.2, 1.0, 0.2};
|
guiSizeGameLayout.rowWeights = new double[] {1.0, 0.2, 1.0, 0.2};
|
||||||
guiSizeGame.setLayout(guiSizeGameLayout);
|
guiSizeGame.setLayout(guiSizeGameLayout);
|
||||||
|
|
||||||
sliderCardSizeHand.setMajorTickSpacing(5);
|
sliderCardSizeHand.setMajorTickSpacing(5);
|
||||||
|
|
@ -1600,7 +1600,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
});
|
});
|
||||||
|
|
||||||
cbPreferredImageLanguage.setMaximumRowCount(20);
|
cbPreferredImageLanguage.setMaximumRowCount(20);
|
||||||
cbPreferredImageLanguage.setModel(new javax.swing.DefaultComboBoxModel<>(new String[]{"Item 1", "Item 2", "Item 3", "Item 4"}));
|
cbPreferredImageLanguage.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
|
||||||
|
|
||||||
labelPreferredImageLanguage.setText("Default images language:");
|
labelPreferredImageLanguage.setText("Default images language:");
|
||||||
labelPreferredImageLanguage.setFocusable(false);
|
labelPreferredImageLanguage.setFocusable(false);
|
||||||
|
|
@ -1608,7 +1608,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
labelNumberOfDownloadThreads.setText("Default download threads:");
|
labelNumberOfDownloadThreads.setText("Default download threads:");
|
||||||
|
|
||||||
cbNumberOfDownloadThreads.setMaximumRowCount(20);
|
cbNumberOfDownloadThreads.setMaximumRowCount(20);
|
||||||
cbNumberOfDownloadThreads.setModel(new javax.swing.DefaultComboBoxModel(new String[]{"Item 1", "Item 2", "Item 3", "Item 4"}));
|
cbNumberOfDownloadThreads.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
|
||||||
|
|
||||||
labelHint1.setText("(change it to 1-3 if image source bans your IP for too many connections)");
|
labelHint1.setText("(change it to 1-3 if image source bans your IP for too many connections)");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue