989onan bot (talk | contribs) Automated: update SyncDelegates |
add info |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|Name=New World Dialog | |Name=New World Dialog | ||
}} | }} | ||
The '''NewWorldDialog''' component is used internally to control the new world prompt when making a new world in dash space. | |||
== | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|_worldName|'''[[Component:TextField|TextField]]'''|TypeAdv0=true| | |_worldName|'''[[Component:TextField|TextField]]'''|TypeAdv0=true| The field to define the name of the new world. | ||
|_mobileFriendly|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv1=true| | |_mobileFriendly|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv1=true| Whether the new world should be mobile friendly. | ||
|_unsafeMode|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv2=true| | |_unsafeMode|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv2=true| Whether the new world is going to be unsafe mode. | ||
|_autoPort|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv3=true| | |_autoPort|'''[[Component:Checkbox|Checkbox]]'''|TypeAdv3=true| Whether the new world should boot with auto defined port. | ||
|_port|'''[[Component:TextField|TextField]]'''|TypeAdv4=true| | |_port|'''[[Component:TextField|TextField]]'''|TypeAdv4=true| The port of the new world. | ||
|_accessLevel|SessionAccessLevel| | |_accessLevel|SessionAccessLevel| The access level of the new world. | ||
|CustomStart|{{RootFieldType|SyncDelegate`1|[[Type:Action`1|Action`1]]<[[Component:NewWorldDialog|NewWorldDialog]]>}}|TypeAdv6=true| | |CustomStart|{{RootFieldType|SyncDelegate`1|[[Type:Action`1|Action`1]]<[[Component:NewWorldDialog|NewWorldDialog]]>}}|TypeAdv6=true| The Sync delegate to call, passing this Dialog upon the world being made. | ||
|_presetIndex|Int| | |_presetIndex|Int| Which preset to use for the new world. | ||
|_uiBuilt|Bool| | |_uiBuilt|Bool| Whether the world UI is built. | ||
|_accessLevelRadios|{{RootFieldType|SyncRefList`1|[[Component:ValueRadio`1|ValueRadio`1]]<[[Type:SessionAccessLevel|SessionAccessLevel]]>}}|TypeAdv9=true| | |_accessLevelRadios|{{RootFieldType|SyncRefList`1|[[Component:ValueRadio`1|ValueRadio`1]]<[[Type:SessionAccessLevel|SessionAccessLevel]]>}}|TypeAdv9=true| A list of session access level options for the UI. | ||
|_initialized|Bool| | |_initialized|Bool| Whether the UI is built and ready. | ||
}} | }} | ||
== Sync Delegates == | == Sync Delegates == | ||
{{Table ComponentTriggers | {{Table ComponentTriggers | ||
|OnStartSession:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| | |OnStartSession:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the start session button is touched. | ||
}} | }} | ||
== | == Usage == | ||
Used internally. | |||
== Examples == | == Examples == | ||
Line 33: | Line 34: | ||
[[Category:Components:Uncategorized{{#translation:}}|New World Dialog]] | [[Category:Components:Uncategorized{{#translation:}}|New World Dialog]] | ||
[[Category:Components{{#translation:}}|New World Dialog]] | [[Category:Components{{#translation:}}|New World Dialog]] | ||
Latest revision as of 18:54, 26 June 2025
Component image 
New World Dialog component as seen in the Scene Inspector

The NewWorldDialog component is used internally to control the new world prompt when making a new world in dash space.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
_worldName
|
TextField | The field to define the name of the new world. |
_mobileFriendly
|
Checkbox | Whether the new world should be mobile friendly. |
_unsafeMode
|
Checkbox | Whether the new world is going to be unsafe mode. |
_autoPort
|
Checkbox | Whether the new world should boot with auto defined port. |
_port
|
TextField | The port of the new world. |
_accessLevel
|
SessionAccessLevel | The access level of the new world. |
CustomStart
|
delegate of identity Action`1<NewWorldDialog> | The Sync delegate to call, passing this Dialog upon the world being made. |
_presetIndex
|
Int | Which preset to use for the new world. |
_uiBuilt
|
Bool | Whether the world UI is built. |
_accessLevelRadios
|
list of ValueRadio`1<SessionAccessLevel> | A list of session access level options for the UI. |
_initialized
|
Bool | Whether the UI is built and ready. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
OnStartSession:ButtonEventHandler
|
ButtonEventHandler | ✓ | Called when the start session button is touched. |
Usage
Used internally.