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)] 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))