diff --git a/Templates/BaseGame/game/tools/gui/colorPicker.ed.gui b/Templates/BaseGame/game/tools/gui/colorPicker.ed.gui index e796eb46c..082c19b92 100644 --- a/Templates/BaseGame/game/tools/gui/colorPicker.ed.gui +++ b/Templates/BaseGame/game/tools/gui/colorPicker.ed.gui @@ -442,6 +442,7 @@ function ColorPickerRGBClass::onValidate(%this) else { %hsb = ColorLinearRGBToHSB(%red SPC %green SPC %blue); + %alpha *= 255.0 } // these automatically update our ColorNewSelected which // updates all text fields including these. @@ -452,7 +453,7 @@ function ColorPickerRGBClass::onValidate(%this) ColorBlendRange.setSelectedBrightness(getWord(%hsb, 2)); ColorBlendRange.executeUpdate(); - ColorAlphaRange.setSelectedAlpha(%alpha * 255.0); + ColorAlphaRange.setSelectedAlpha(%alpha); ColorAlphaRange.executeUpdate(); }