Component:DesktopDisplayLayout: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
userspace
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox Component
{{Infobox Component
|Image=DesktopDisplayLayoutComponent.png
|Image=DesktopDisplayLayoutComponent.png
|Name=Desktop Display Layout
|Name=DesktopDisplayLayout
}}
}}
{{stub}}


== Usage ==
The '''DesktopDisplayLayout''' component displays a list of display selection buttons for a user's monitor settup. It is used in the [[dash menu]] and only works in [[userspace]].
 
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|User|{{RootFieldType|UserRef}}|TypeAdv0=true|
|User|{{RootFieldType|UserRef}}|TypeAdv0=true| The user to get displays for.
|DisplayTemplate|Slot|
|DisplayTemplate|Slot| the template to use when generating display selection buttons.
|ItemGenerated|{{RootFieldType|SyncDelegate`1|[[#DisplayItemHandler|DisplayItemHandler]]}}|TypeAdv2=true|
|ItemGenerated|{{RootFieldType|SyncDelegate`1|[[#DisplayItemHandler|DesktopDisplayLayout.DisplayItemHandler]]}}|TypeAdv2=true| usually the OnDisplayItemGenerated() sync delegate from [[Component:DesktopControlDialog#Sync Delegates|DesktopControlDialog]].
}}
}}


== Behavior ==
== DisplayItemHandler ==
 
A Sync delegate of type [[Type:Delegate|Delegate]]<[[Type:Display|Display]] display, [[Type:Slot|Slot]] itemRoot>


== Examples ==
== Examples ==
Used in the dash desktop tab.


== See Also ==
== See Also ==
Line 21: Line 26:
[[Category:Components{{#translation:}}|Desktop Display Layout]]
[[Category:Components{{#translation:}}|Desktop Display Layout]]
[[Category:Components With Nested Types{{#translation:}}|Desktop Display Layout]]
[[Category:Components With Nested Types{{#translation:}}|Desktop Display Layout]]
[[Category:ComponentStubs]]

Latest revision as of 18:41, 14 April 2025

Component image 
DesktopDisplayLayout component as seen in the Scene Inspector


The DesktopDisplayLayout component displays a list of display selection buttons for a user's monitor settup. It is used in the dash menu and only works in userspace.

Fields

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.
User direct UserRef The user to get displays for.
DisplayTemplate Slot the template to use when generating display selection buttons.
ItemGenerated delegate of identity DesktopDisplayLayout.DisplayItemHandler usually the OnDisplayItemGenerated() sync delegate from DesktopControlDialog.

DisplayItemHandler

A Sync delegate of type Delegate<Display display, Slot itemRoot>

Examples

Used in the dash desktop tab.

See Also