game.ui.tutorial_popup

Classes

TutorialPopup

A modal dialog box for displaying tutorial steps that pauses the game.

Module Contents

class game.ui.tutorial_popup.TutorialPopup[source]

A modal dialog box for displaying tutorial steps that pauses the game.

is_active = False[source]
message = ''[source]
button_text = ''[source]
box_width = 450[source]
box_height = 240[source]
box_rect[source]
button_width = 125[source]
button_height = 40[source]
button_rect[source]
font[source]
button_font[source]
show(message_key, is_last_message=False)[source]

Activates the popup with a specific message.

hide()[source]

Deactivates the popup.

handle_click(pos)[source]

Checks if the button was clicked and hides the popup if so.

render(screen)[source]

Draws the popup if it’s active.