pymasep.interface.ui_talk
Classes
Dialog Box to display talks |
Module Contents
- class pymasep.interface.ui_talk.UITalk(relative_rect, manager, container, html_text, speaker_name=None)
Bases:
pygame_gui.elements.UIAutoResizingContainerDialog Box to display talks
- Parameters:
relative_rect (pygame.Rect) – position and dimensions of the dialog box (pixels)
manager (pygame_gui.core.interfaces.IUIManagerInterface) – Manager (from pygame_gui)
container (pygame_gui.core.interfaces.IContainerLikeInterface) – Container of the board (form pygame_gui)
html_text (str) – HTML text of the dialog box.
speaker_name (Optional[str]) – Name of the speaker. If None, this part of the component is not displayed.
- bubble_width = 20
size of the bubble area
- speaker_label_height = 0
height of the speaker label
- html_text
text to display on the dialog box
- speaker_name_label = None
speaker’s name ‘
- talk_label
ui label for displaying the text
- bubble_talk
image of the bubble
- _img