UI (functions)/Choice Menu

From PMDOWiki

SetChoiceLoc

Sets the position of the choices for a question dialog.

Arguments

ResetChoiceLoc

Sets the position of the choices for a question dialog back to default.

ChoiceMenuYesNo

Ask a question answered by yes or no via character dialogue to the player. UI:WaitForChoice() must be called afterwards for the menu to be actually displayed, and for execution to suspend until the choice is returned.

Then to recover the integer value indicating the result of the menu, UI:ChoiceResult() must be called.

The Yes/No menu returns 1 for yes, and 0 for no.

Argument order is UI:ChoiceMenuYesNo(message, defaultWhenNo, callbacks).

Arguments

Name Type Technical Type Purpose
message String System.String Question to be asked to the user.
defaultWhenNo Boolean System.Boolean Whether the cursor starts on no by default
callbacks Lua Table NLua.LuaTable The Lua table of callbacks for the textbox to call.