소스 검색

Update colorPicker.ed.gui

marauder2k7 7 달 전
부모
커밋
d06a28041d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Templates/BaseGame/game/tools/gui/colorPicker.ed.gui

+ 2 - 1
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();
 }