Tile Info

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

Bases: scripts.engine.widgets.panel.Panel

Hold text relating to the game’s events, to display to the player.

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

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

cleanse()[source]

Cleanse existing section info.

set_selected_tile_pos(tile_pos: Tuple[int, int])[source]

Set the selected tile position to show the info for that tile.

show()[source]

Show the tile info. Builds the sections required, after clearing any existing. Also triggers base class show method.