Actor Info¶
-
class
ActorInfo
(rect: pygame.Rect, manager: UIManager)[source]¶ Bases:
scripts.engine.widgets.window.Window
Full detail about an npc entity.
-
__init__
(rect: pygame.Rect, manager: UIManager)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Process closure of a window. Must be overriden in subclass. Usual use is creation of an event.
Example
- def process_close_button(self):
- event = pygame.event.Event(EventType.GAME, subtype=GameEvent.EXIT_MENU,
menu=UIElement.ACTOR_INFO)
pygame.event.post(event)
-