Skill Bar

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

Bases: scripts.engine.widgets.panel.Panel

Display and hold the info for the skills in the skill bar.

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

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

process_event(event: pygame.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.

refresh_skills()[source]

Reload the player skills and assign the correct images. All buttons set to blank if player doesnt exist.