989onan bot (talk | contribs) Automated: update SyncDelegates |
add info |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{UserspaceComponent}} | |||
{{Infobox Component | {{Infobox Component | ||
|Image=SessionPermissionControllerComponent.png | |Image=SessionPermissionControllerComponent.png | ||
|Name=Session Permission Controller | |Name=Session Permission Controller | ||
}} | }} | ||
The '''SessionPermissionController''' component is used to change the roles or view the roles of a specific user in the current session. | |||
== | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|_name|'''[[Component:Text|Text]]'''|TypeAdv0=true| | |_name|'''[[Component:Text|Text]]'''|TypeAdv0=true| The text element showing the name of the user this belongs to. | ||
|_rolesButtons|{{RootFieldType|SyncRefList`1|[[Component:Button|Button]]}}|TypeAdv1=true| | |_rolesButtons|{{RootFieldType|SyncRefList`1|[[Component:Button|Button]]}}|TypeAdv1=true| A list of button elements used to assign the user this belongs to to a role. | ||
}} | }} | ||
== Sync Delegates == | == Sync Delegates == | ||
{{Table ComponentTriggers | {{Table ComponentTriggers | ||
|SetRole:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Int|Int]]>|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Int|Int]]>|true| | |SetRole:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Int|Int]]>|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Int|Int]]>|true| Called when one of the <code>_rolesButtons</code> are touched. | ||
}} | }} | ||
== | == Usage == | ||
Not to be used directly by the user. | |||
== Examples == | == Examples == | ||
Is used in the session tab in the dash. | |||
== See Also == | == See Also == | ||
Line 24: | Line 27: | ||
[[Category:Components:Uncategorized{{#translation:}}|Session Permission Controller]] | [[Category:Components:Uncategorized{{#translation:}}|Session Permission Controller]] | ||
[[Category:Components{{#translation:}}|Session Permission Controller]] | [[Category:Components{{#translation:}}|Session Permission Controller]] | ||
Latest revision as of 17:23, 8 April 2025
Component image File:SessionPermissionControllerComponent.pngSession Permission Controller component as seen in the Scene Inspector
The SessionPermissionController component is used to change the roles or view the roles of a specific user in the current session.
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. |
_name
|
Text | The text element showing the name of the user this belongs to. |
_rolesButtons
|
list of Button | A list of button elements used to assign the user this belongs to to a role. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
SetRole:ButtonEventHandler`1<Int>
|
ButtonEventHandler`1<Int> | ✓ | Called when one of the _rolesButtons are touched.
|
Usage
Not to be used directly by the user.
Examples
Is used in the session tab in the dash.