(One intermediate revision by one other user not shown)
Line 1:
Line 1:
<languages></languages>
<languages></languages>
<translate>
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=WorldCloseActionComponent.png
|Image=WorldCloseActionComponent.png
|Name=WorldCloseAction
|Name=World Close Action
}}
}}
The '''WorldCloseAction''' component is used to handle the leaving of a world after the user confirms leaving. This component only works on user space.
<!--T:2-->
== Fields ==
== Intoduction ==
{{Table ComponentFields
|Action|'''[[#CloseAction|WorldCloseAction.CloseAction]]'''|TypeAdv0=true| The kind of action this [[Button Events]] recieving Component is doing to a world.
|WaitingConfirm|Bool| Whether the game is waiting on confirmation via double click, which is 2 clicks within a 2 second time frame.
|OnClosed|{{RootFieldType|SyncDelegate`1|[[Type:Action|Action]]}}|TypeAdv2=true| What Action Sync delegate to call when the world finishes closing.
}}
<!--T:3-->
== CloseAction ==
== Usage ==
{{Table EnumValues
{{Table ComponentFields
|LeaveOrOpenCloseScreen|0| This button is set to leave the world or open the save and close screen.