diff --git a/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.form b/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.form index 375be1932f..4393511c5e 100644 --- a/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.form +++ b/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.form @@ -884,7 +884,7 @@ - + diff --git a/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.java b/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.java index f27b888f9c..f3c6d929c4 100644 --- a/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.java +++ b/src/main/java/net/rptools/maptool/client/ui/token/dialog/edit/TokenPropertiesDialog.java @@ -453,7 +453,7 @@ public class TokenPropertiesDialog { panel11.add(spacer8, new GridConstraints(0, 9, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); final JSlider slider1 = new JSlider(); slider1.setMajorTickSpacing(10); - slider1.setMinimum(5); + slider1.setMinimum(0); slider1.setMinorTickSpacing(5); slider1.setName("tokenOpacitySlider"); slider1.setOrientation(1); diff --git a/src/main/java/net/rptools/maptool/model/Token.java b/src/main/java/net/rptools/maptool/model/Token.java index 24beedee60..110c3cdd6b 100644 --- a/src/main/java/net/rptools/maptool/model/Token.java +++ b/src/main/java/net/rptools/maptool/model/Token.java @@ -674,7 +674,7 @@ public Color getHaloColor() { } public float getTokenOpacity() { - if (tokenOpacity <= 0.0f) { + if (tokenOpacity < 0.0f) { tokenOpacity = 1.0f; } @@ -701,8 +701,8 @@ public float setTokenOpacity(float alpha) { if (alpha > 1.0f) { alpha = 1.0f; } - if (alpha <= 0.0f) { - alpha = 0.05f; + if (alpha < 0.0f) { + alpha = 0.0f; } tokenOpacity = alpha; diff --git a/src/main/resources/net/rptools/maptool/client/ui/forms/tokenPropertiesDialog.xml b/src/main/resources/net/rptools/maptool/client/ui/forms/tokenPropertiesDialog.xml index 8235a3290d..0831544ed8 100644 --- a/src/main/resources/net/rptools/maptool/client/ui/forms/tokenPropertiesDialog.xml +++ b/src/main/resources/net/rptools/maptool/client/ui/forms/tokenPropertiesDialog.xml @@ -4981,7 +4981,7 @@ 29 20 5 - 5 + 0 100 109