hud.show_choice_panel method
show_choice_panel(self, question: str, answer1: str, answer2: str, answer3: str = ..., answer4: str = ..., answer5: str = ..., answer6: str = ..., on_answer: Callable[[t: int], None] = ...) -> Disposable:
Displays a panel with one question and up to four answers_.
At least two answers must be defined.
Example
Parameters
-
question: str
-
answer1: str
-
answer2: str
-
answer3: (optional) str
-
answer4: (optional) str
-
answer5: (optional) str
-
answer6: (optional) str
-
on_answer: (optional) Callable[[t: int], None]