SimpleWindow.notify

This commit is contained in:
2023-08-13 19:33:47 -06:00
parent 3efb28078e
commit 315dfcf40f

View File

@@ -629,6 +629,34 @@
(when FlxG.mouse.justPressed
(inputTexts.forEach ->text (set text.hasFocus false))))))))
(function :SimpleWindow notify [:String message
:Void->Void onDismiss
&opt :FlxColor bgColor
:FlxColor titleColor
:FlxColor choiceColor
:Float percentWidth
:Float percentHeight
:Bool xButton
:String xKey
:String enterKey]
(promptForChoice
message
["OK"]
->_ (onDismiss)
bgColor
titleColor
choiceColor
percentWidth
percentHeight
xButton
xKey
null
null
null
null
enterKey
onDismiss))
(function :SimpleWindow promptForChoice <>[T] [:String prompt
:Array<T> choices
:T->Void onChoice