ShowBoxEvent¶
Event to be scheduled to the levelThread which will show the speech box.
This event exists because showing new lines in a conversation requires drawing new objects to the Calico window. We can only draw objects safely if if we synchronize the drawing with main simulator thread.
Constructor
ShowBoxEvent (levelWindow[, y, text, portrait]) |
Event to be scheduled to the levelThread which will show the speech box. |
Details
-
class
ShowBoxEvent
(levelWindow, y=50, text='', portrait=None)[source]¶ Bases:
object
Creates a new ShowBoxEvent.
Parameters: - levelWindow – The level window associated with the event.
- y – The horizontal position of the SpeechBox. Especially usefull if the box would otherwise obscure an important part of the screen.
- text – The text to be shown in the SpeechBox.
- portrait – The portrait to be shown with the SpeechBox.