don't allow selection of empty strings in promptForChoice

This commit is contained in:
2023-07-06 17:54:12 -06:00
parent 33975bfb88
commit 81396050dd

View File

@@ -507,10 +507,11 @@
choiceColor (or choiceColor titleColor FlxColor.WHITE)]
(doFor choice choices
(window.makeText (Std.string choice) choiceColor
->:Void s {
(window.hide)
(onChoice choice)
}
(when (Std.string choice)
->:Void s {
(window.hide)
(onChoice choice)
})
noShortcuts))
(window.show)
window))