hud namespace

Controls UI elements used while a scene is played.

Methods

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_.

show_info_panel(self, title: str, text: str, image: str = ..., on_hide: Callable[[], None] = ...) -> Disposable

Displays a panel with title text, body text and an image via id.

show_quiz_panel(self, question: str, answer1: str, answer2: str, correct_answer: int, answer3: str = ..., answer4: str = ..., answer5: str = ..., answer6: str = ..., on_correct: Callable[[], None] = ..., on_wrong: Callable[[], None] = ...) -> Disposable

Displays a panel with one question and up to four answers, one of which is correct. At least two answers and the correct answer must be defined.

Properties

scene_navigation_visible bool

Toggles visibility of the scene navigation at the bottom of the screen.