diff --git a/src/main/java/net/rptools/maptool/client/ui/preferencesdialog/PreferencesDialog.java b/src/main/java/net/rptools/maptool/client/ui/preferencesdialog/PreferencesDialog.java index f30e655e91..fa1fceba12 100644 --- a/src/main/java/net/rptools/maptool/client/ui/preferencesdialog/PreferencesDialog.java +++ b/src/main/java/net/rptools/maptool/client/ui/preferencesdialog/PreferencesDialog.java @@ -79,6 +79,7 @@ public class PreferencesDialog extends JDialog { private final JCheckBox tokensStartSnapToGridCheckBox; private final JCheckBox tokensSnapWhileDraggingCheckBox; private final JCheckBox hideMousePointerWhileDraggingCheckBox; + private final JCheckBox hideTokenStackIndicatorCheckBox; private final JCheckBox newMapsVisibleCheckBox; private final JCheckBox newTokensVisibleCheckBox; private final JCheckBox tokensStartFreeSizeCheckBox; @@ -323,6 +324,7 @@ public PreferencesDialog() { tokensStartSnapToGridCheckBox = panel.getCheckBox("tokensStartSnapToGridCheckBox"); tokensSnapWhileDraggingCheckBox = panel.getCheckBox("tokensSnapWhileDragging"); hideMousePointerWhileDraggingCheckBox = panel.getCheckBox("hideMousePointerWhileDragging"); + hideTokenStackIndicatorCheckBox = panel.getCheckBox("hideTokenStackIndicator"); newMapsVisibleCheckBox = panel.getCheckBox("newMapsVisibleCheckBox"); newTokensVisibleCheckBox = panel.getCheckBox("newTokensVisibleCheckBox"); stampsStartFreeSizeCheckBox = panel.getCheckBox("stampsStartFreeSize"); @@ -657,6 +659,10 @@ public void focusLost(FocusEvent e) { e -> AppPreferences.setHideMousePointerWhileDragging( hideMousePointerWhileDraggingCheckBox.isSelected())); + hideTokenStackIndicatorCheckBox.addActionListener( + e -> + AppPreferences.setHideTokenStackIndicator( + hideTokenStackIndicatorCheckBox.isSelected())); newMapsVisibleCheckBox.addActionListener( e -> AppPreferences.setNewMapsVisible(newMapsVisibleCheckBox.isSelected())); newTokensVisibleCheckBox.addActionListener( @@ -1134,6 +1140,7 @@ private void setInitialState() { tokensSnapWhileDraggingCheckBox.setSelected(AppPreferences.getTokensSnapWhileDragging()); hideMousePointerWhileDraggingCheckBox.setSelected( AppPreferences.getHideMousePointerWhileDragging()); + hideTokenStackIndicatorCheckBox.setSelected(AppPreferences.getHideTokenStackIndicator()); newMapsVisibleCheckBox.setSelected(AppPreferences.getNewMapsVisible()); newTokensVisibleCheckBox.setSelected(AppPreferences.getNewTokensVisible()); stampsStartFreeSizeCheckBox.setSelected(AppPreferences.getObjectsStartFreesize()); diff --git a/src/main/java/net/rptools/maptool/client/ui/preferencesdialog/PreferencesDialogView.form b/src/main/java/net/rptools/maptool/client/ui/preferencesdialog/PreferencesDialogView.form index b5f9adfecd..fef0e21d2e 100644 --- a/src/main/java/net/rptools/maptool/client/ui/preferencesdialog/PreferencesDialogView.form +++ b/src/main/java/net/rptools/maptool/client/ui/preferencesdialog/PreferencesDialogView.form @@ -35,7 +35,7 @@ - + @@ -323,14 +323,33 @@ + - + + + + + + + + + + + + + + + + + + + @@ -966,7 +985,7 @@ - + diff --git a/src/main/resources/net/rptools/maptool/language/i18n.properties b/src/main/resources/net/rptools/maptool/language/i18n.properties index c02409b4b7..c8913b98c1 100644 --- a/src/main/resources/net/rptools/maptool/language/i18n.properties +++ b/src/main/resources/net/rptools/maptool/language/i18n.properties @@ -2820,4 +2820,6 @@ advanced.roll.variableNotNumber = Variable {0} is not a number. advanced.roll.unknownProperty = Unknown Property {0}. advanced.roll.propertyNotNumber = Property {0} is not a number. advanced.roll.noTokenInContext = No token in context. -advanced.roll.inputNotNumber = Input {0} is not a number. \ No newline at end of file +advanced.roll.inputNotNumber = Input {0} is not a number. +Preferences.label.tokens.stack.hide=Hide Token stack indicator +Preferences.label.tokens.stack.hide.tooltip=Token Layer stack inidicator will be hidden \ No newline at end of file