PopupAction ​
Inherits: EventAction < Resource
Shows or hides a popup (a scene built on PopupUI: a tutorial, a message, a toast, an achievement). What the popup does (pause, ESC, closing by itself, once only) is set on the popup. Fails when the popup does not exist.
Properties ​
int | popup_id | 0 |
PopupActionType | popup_state | PopupActionType.SHOW |
String | title | "": |
String | text | "": |
bool | wait_for_close | false |
Methods ​
String | get_function_description() |
void | cleanup() |
Enumerations ​
enum PopupActionType ​
The options of popup action type: show, hide.
- SHOW =
0 - HIDE =
1
Property descriptions ​
int popup_id = 0 ​
The popup (the toolkit's own message popup is 1000001)
PopupActionType popup_state = PopupActionType.SHOW ​
Whether to show or hide the popup
String title = "": ​
Given to the popup: the message popup shows a title and a text (words in <angle brackets> are filled in)
String text = "": ​
The text the popup shows (when the popup scene has a place for it).
bool wait_for_close = false ​
The action completes when the popup is closed (a tutorial that the next action of the event waits for)
Method descriptions ​
String get_function_description() ​
The sentence the editor shows for the action, with {placeholders} for its values.
void cleanup() ​
Stops what the action started (timers, connections) when the event ends.