Screen Message

class ScreenMessage(rect: pygame.Rect, text: str, manager: pygame_gui.ui_manager.UIManager)[source]

Bases: pygame_gui.elements.ui_text_box.UITextBox

Show messages on the centre of the screen for a limited time

__init__(rect: pygame.Rect, text: str, manager: pygame_gui.ui_manager.UIManager)[source]

Initialize self. See help(type(self)) for accurate signature.

handle_events(event)[source]

Handle events created by this UI widget

update(time_delta: float)[source]

Update based on current state and data. Run every frame.