mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Update colorPicker.ed.gui
This commit is contained in:
parent
704e304eef
commit
d06a28041d
1 changed files with 2 additions and 1 deletions
|
|
@ -442,6 +442,7 @@ function ColorPickerRGBClass::onValidate(%this)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
%hsb = ColorLinearRGBToHSB(%red SPC %green SPC %blue);
|
%hsb = ColorLinearRGBToHSB(%red SPC %green SPC %blue);
|
||||||
|
%alpha *= 255.0
|
||||||
}
|
}
|
||||||
// these automatically update our ColorNewSelected which
|
// these automatically update our ColorNewSelected which
|
||||||
// updates all text fields including these.
|
// updates all text fields including these.
|
||||||
|
|
@ -452,7 +453,7 @@ function ColorPickerRGBClass::onValidate(%this)
|
||||||
ColorBlendRange.setSelectedBrightness(getWord(%hsb, 2));
|
ColorBlendRange.setSelectedBrightness(getWord(%hsb, 2));
|
||||||
ColorBlendRange.executeUpdate();
|
ColorBlendRange.executeUpdate();
|
||||||
|
|
||||||
ColorAlphaRange.setSelectedAlpha(%alpha * 255.0);
|
ColorAlphaRange.setSelectedAlpha(%alpha);
|
||||||
ColorAlphaRange.executeUpdate();
|
ColorAlphaRange.executeUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue