pymasep.interface.ui_dialog_box
Classes
Dialogue box to choose what to say |
Module Contents
- class pymasep.interface.ui_dialog_box.UIDialogBox(rect, ui_manager, choice)
Bases:
pygame_gui.elements.UIWindowDialogue box to choose what to say
- Parameters:
rect (pygame.Rect) – Rect of the dialog box.
ui_manager (pygame_gui.core.interfaces.IUIManagerInterface) – UIManagerInterface
choice (List[Tuple[str, str]]) – List of tuples containing the link target (id the of dialog) and the displayed text
- choice
possible choices of talk
- tb_choice = []
ui text box elements
- next_y_pos = 10
- process_event(event)
Process the event UI_TEXT_BOX_LINK_CLICKED and post an TALK_EVENT
- Parameters:
event (pygame.event.Event) – The event to process.
- Return type:
bool