mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
Update guiColorPicker.h
This commit is contained in:
parent
aed2e0b5b6
commit
5c2bfbf82e
1 changed files with 18 additions and 19 deletions
|
|
@ -77,11 +77,10 @@ class GuiColorPickerCtrl : public GuiControl
|
||||||
};
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
/// @name Core Rendering functions
|
/// @name Core Rendering functions
|
||||||
/// @{
|
/// @{
|
||||||
void renderColorBox(RectI &bounds); ///< Function that draws the actual color box
|
void renderColorBox(RectI &bounds); ///< Function that draws the actual color box
|
||||||
void drawSelector(RectI &bounds, Point2I &selectorPos, SelectorMode mode); ///< Function that draws the selection indicator
|
void drawSelector(RectI &bounds, Point2I &selectorPos, SelectorMode mode); /// < Function that draws the selection indicator
|
||||||
void drawBlendBox(RectI &bounds, ColorF &c1, ColorF &c2, ColorF &c3, ColorF &c4);
|
void drawBlendBox(RectI &bounds, ColorF &c1, ColorF &c2, ColorF &c3, ColorF &c4);
|
||||||
void drawBlendRangeBox(RectI &bounds, bool vertical, U8 numColors, ColorI *colors);
|
void drawBlendRangeBox(RectI &bounds, bool vertical, U8 numColors, ColorI *colors);
|
||||||
/// @}
|
/// @}
|
||||||
|
|
@ -127,7 +126,7 @@ class GuiColorPickerCtrl : public GuiControl
|
||||||
/// NOTE: setValue only sets baseColor, since setting pickColor wouldn't be useful
|
/// NOTE: setValue only sets baseColor, since setting pickColor wouldn't be useful
|
||||||
void setValue(ColorF &value) {mBaseColor = value;}
|
void setValue(ColorF &value) {mBaseColor = value;}
|
||||||
/// NOTE: getValue() returns baseColor if pallet (since pallet controls can't "pick" colours themselves)
|
/// NOTE: getValue() returns baseColor if pallet (since pallet controls can't "pick" colours themselves)
|
||||||
ColorF getValue() {return mDisplayMode == pPallet ? mBaseColor : mPickColor;}
|
ColorF getValue() { return mDisplayMode == pPallet ? mBaseColor : mPickColor; }
|
||||||
const char *getScriptValue();
|
const char *getScriptValue();
|
||||||
void setScriptValue(const char *value);
|
void setScriptValue(const char *value);
|
||||||
void updateColor() {mPositionChanged = true;}
|
void updateColor() {mPositionChanged = true;}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue