game.ui.tutorial_popup ====================== .. py:module:: game.ui.tutorial_popup Classes ------- .. autoapisummary:: game.ui.tutorial_popup.TutorialPopup Module Contents --------------- .. py:class:: TutorialPopup A modal dialog box for displaying tutorial steps that pauses the game. .. py:attribute:: is_active :value: False .. py:attribute:: message :value: '' .. py:attribute:: button_text :value: '' .. py:attribute:: box_width :value: 450 .. py:attribute:: box_height :value: 240 .. py:attribute:: box_rect .. py:attribute:: button_width :value: 125 .. py:attribute:: button_height :value: 40 .. py:attribute:: button_rect .. py:attribute:: font .. py:attribute:: button_font .. py:method:: show(message_key, is_last_message=False) Activates the popup with a specific message. .. py:method:: hide() Deactivates the popup. .. py:method:: handle_click(pos) Checks if the button was clicked and hides the popup if so. .. py:method:: render(screen) Draws the popup if it's active.