don't allow selection of empty strings in promptForChoice
This commit is contained in:
@@ -507,10 +507,11 @@
|
|||||||
choiceColor (or choiceColor titleColor FlxColor.WHITE)]
|
choiceColor (or choiceColor titleColor FlxColor.WHITE)]
|
||||||
(doFor choice choices
|
(doFor choice choices
|
||||||
(window.makeText (Std.string choice) choiceColor
|
(window.makeText (Std.string choice) choiceColor
|
||||||
->:Void s {
|
(when (Std.string choice)
|
||||||
(window.hide)
|
->:Void s {
|
||||||
(onChoice choice)
|
(window.hide)
|
||||||
}
|
(onChoice choice)
|
||||||
|
})
|
||||||
noShortcuts))
|
noShortcuts))
|
||||||
(window.show)
|
(window.show)
|
||||||
window))
|
window))
|
||||||
|
Reference in New Issue
Block a user