(3 intermediate revisions by one other user not shown)
Line 3:
Line 3:
|Name=Color Tool
|Name=Color Tool
}}
}}
{{stub}}
Color tool is a component that drives the color tool from [[Tools]]. Pressing [[Controls|Secondary]] allows for picking a color via raycast, and hitting [[Controls|Primary]] allows for setting the color of a material.
Color tool is a component that drives the color tool from [[Tools]]. Pressing [[Controls|Secondary]] allows for picking a color via raycast, and hitting [[Controls|Primary]] allows for setting the color of a material.
Line 19:
Line 18:
|ColorIndicators|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:ColorX|ColorX]]>}}|TypeAdv9=true| The field to drive to the current picked color. used for an indicator.
|ColorIndicators|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:ColorX|ColorX]]>}}|TypeAdv9=true| The field to drive to the current picked color. used for an indicator.
|_colorDialog|{{RootFieldType|SlotCleanupRef`1|[[Component:ColorDialogInterface|ColorDialogInterface]]}}|TypeAdv10=true| The currently open color picker dialogue.
|_colorDialog|{{RootFieldType|SlotCleanupRef`1|[[Component:ColorDialogInterface|ColorDialogInterface]]}}|TypeAdv10=true| The currently open color picker dialogue.
}}
== Sync Delegates ==
{{Table ComponentTriggers
|OpenColorDialog:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Handles spawning the user's favorite color picker so they can edit this tool's color.
Color tool is a component that drives the color tool from Tools. Pressing Secondary allows for picking a color via raycast, and hitting Primary allows for setting the color of a material.