allow changing control color in SimpleWindow
This commit is contained in:
@@ -55,6 +55,16 @@
|
|||||||
(otherwise))
|
(otherwise))
|
||||||
value))
|
value))
|
||||||
|
|
||||||
|
(method :Void setControlColor [:FlxSprite control :FlxColor newColor]
|
||||||
|
(unless control (return))
|
||||||
|
|
||||||
|
(set control.color newColor)
|
||||||
|
(dictSet _colors control newColor))
|
||||||
|
|
||||||
|
(method :Void setUIControlColor [:FlxColor newColor]
|
||||||
|
(doFor control [xText leftText rightText upText downText scrollBar]
|
||||||
|
(setControlColor control newColor)))
|
||||||
|
|
||||||
(method selectDown []
|
(method selectDown []
|
||||||
(let [columnControls (getColumnControls)
|
(let [columnControls (getColumnControls)
|
||||||
&mut nextIndex _selectedIndex]
|
&mut nextIndex _selectedIndex]
|
||||||
|
Reference in New Issue
Block a user