promptForColor allowAlpha option
This commit is contained in:
@@ -809,6 +809,7 @@
|
|||||||
:FlxColor->Void onChoice
|
:FlxColor->Void onChoice
|
||||||
&opt :Array<FlxColor> choices
|
&opt :Array<FlxColor> choices
|
||||||
:FlxColor currentColor
|
:FlxColor currentColor
|
||||||
|
:Bool allowAlpha
|
||||||
:FlxColor bgColor
|
:FlxColor bgColor
|
||||||
:FlxColor titleColor
|
:FlxColor titleColor
|
||||||
:Float percentWidth
|
:Float percentWidth
|
||||||
@@ -850,6 +851,9 @@
|
|||||||
(window.makeTextV2 "Green--" (object onClick ->:Void s (recursiveCall {(-= currentColor.greenFloat COLOR_STEP) currentColor})))
|
(window.makeTextV2 "Green--" (object onClick ->:Void s (recursiveCall {(-= currentColor.greenFloat COLOR_STEP) currentColor})))
|
||||||
(window.makeTextV2 "Blue++" (object onClick ->:Void s (recursiveCall {(+= currentColor.blueFloat COLOR_STEP) currentColor})))
|
(window.makeTextV2 "Blue++" (object onClick ->:Void s (recursiveCall {(+= currentColor.blueFloat COLOR_STEP) currentColor})))
|
||||||
(window.makeTextV2 "Blue--" (object onClick ->:Void s (recursiveCall {(-= currentColor.blueFloat COLOR_STEP) currentColor})))
|
(window.makeTextV2 "Blue--" (object onClick ->:Void s (recursiveCall {(-= currentColor.blueFloat COLOR_STEP) currentColor})))
|
||||||
|
(when allowAlpha
|
||||||
|
(window.makeTextV2 "Alpha++" (object onClick ->:Void s (recursiveCall {(+= currentColor.alphaFloat COLOR_STEP) currentColor})))
|
||||||
|
(window.makeTextV2 "Alpha--" (object onClick ->:Void s (recursiveCall {(-= currentColor.alphaFloat COLOR_STEP) currentColor}))))
|
||||||
(doFor choice choices
|
(doFor choice choices
|
||||||
(window.makeTextV2
|
(window.makeTextV2
|
||||||
" "
|
" "
|
||||||
|
Reference in New Issue
Block a user