Character Selector

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

Bases: scripts.engine.widgets.panel.Panel

A menu widget. Used to hold a collection of text, images, buttons etc. Expects to have buttons and provides functionality to handle the clicks

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

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

process_event(event)[source]

Gives UI Windows access to pygame events. Derived windows should super() call this class if they implement their own process_event method.

update(time_delta: float)[source]

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