The '''DesktopControlDialog''' is used to change the settings for what desktop to control and how to control it.
The '''DesktopControlDialog''' is used to change the settings for what desktop to control and how to control it.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|InteractionRelay|'''[[Component:DesktopInteractionRelay|DesktopInteractionRelay]]'''|TypeAdv0=true| The relay allowing desktop interaction.
|InteractionRelay|'''[[Component:DesktopInteractionRelay|DesktopInteractionRelay]]'''|TypeAdv0=true| The relay allowing desktop interaction.
|Index|Int| The display to show in a multi monitor settup.
|Index|Int| The display to show in a multi monitor settup.
|FollowCursor|Bool| whether the desktop cursor should follow the Resonite dash cursor when not clicking.
|FollowCursor|Bool| whether the desktop cursor should follow the Resonite dash cursor when not clicking.
Line 16:
Line 16:
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|OnDisplayItemGenerated()|[[Component:DesktopDisplayLayout#DisplayItemHandler|DisplayItemHandler]]| Used to handle the creation of new displays and their UI from a [[Component:DesktopDisplayLayout|DesktopDisplayLayout]].
|OnDisplayItemGenerated:[[Type:Action`2|Action`2]]<[[Type:Display|Display]], [[Type:Slot|Slot]]>|[[Type:Action`2|Action`2]]<[[Type:Display|Display]], [[Type:Slot|Slot]]>|true| Used to handle the creation of new displays and their UI from a [[Component:DesktopDisplayLayout|DesktopDisplayLayout]].
|OnSwitchDisplay:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Int|Int]]>|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Int|Int]]>|true| handles switching the viewed desktop display for this component.
|OnOpenKeyboard()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData>| Handles the opening of a keyboard and focusing it to the desktop.
|OnOpenKeyboard:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Handles the opening of a keyboard and focusing it to the desktop.
|OnOpenStartMenu()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData>| handles opening a computer's start menu.
|OnOpenStartMenu:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| handles opening a computer's start menu.
}}
}}
Latest revision as of 06:30, 17 March 2025
Component image
Desktop Control Dialog component as seen in the Scene Inspector
The DesktopControlDialog is used to change the settings for what desktop to control and how to control it.