imported>Psychpsyo Wrote Article |
fix enum info |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 15: | Line 15: | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|AutoAddChildren|Bool| If true, the Targets list will be automatically populated with the child slots of the slot that this component is on. | |AutoAddChildren|Bool| If true, the Targets list will be automatically populated with the child slots of the slot that this component is on. | ||
|Targets|SyncList`1| | |Targets|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:Bool|Bool]]>}}|TypeAdv1=true| The list of slots of which one will be enabled. | ||
|ActiveIndex|Int| The index of the currently active slot. | |ActiveIndex|Int| The index of the currently active slot. | ||
|ActivationMode|[[#Mode|Mode]]|TypeAdv3=true| Allows for enabling items in <code>Target</code> based on <code>ActiveIndex</code> number. | |||
}} | |||
== Mode == | |||
{{Table EnumValues | |||
|AtIndexOnly|0| Activates only item at <code>ActiveIndex</code>. | |||
|AllButIndex|1| Activates all items except the one at <code>ActiveIndex</code> which will be disabled. | |||
|IndexAndBefore|2| Activates all items that are before and at <code>ActiveIndex</code>. | |||
|IndexAndAfter|3| Activates all items at and after <code>ActiveIndex</code> | |||
}} | }} | ||
Line 29: | Line 38: | ||
<!--T:5--> | <!--T:5--> | ||
== Related Issues == | == Related Issues == | ||
<!--T:6--> | <!--T:6--> | ||
== Related Components == | == Related Components == | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Boolean Switcher]] | [[Category:Components{{#translation:}}|Boolean Switcher]] | ||
[[Category:Components:Transform:Drivers{{#translation:}}|Boolean Switcher]] | [[Category:Components:Transform:Drivers{{#translation:}}|Boolean Switcher]] |
Latest revision as of 23:01, 24 October 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
The BooleanSwitcher component can be used to enable a specified slot from a list of slots.
It does so by driving the Active field of the slots.
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. |
AutoAddChildren
|
Bool | If true, the Targets list will be automatically populated with the child slots of the slot that this component is on. |
Targets
|
list of FieldDrive`1<Bool> | The list of slots of which one will be enabled. |
ActiveIndex
|
Int | The index of the currently active slot. |
ActivationMode
|
Mode | Allows for enabling items in Target based on ActiveIndex number.
|
Mode
Name | Value | Description |
---|---|---|
AtIndexOnly
|
0 | Activates only item at ActiveIndex .
|
AllButIndex
|
1 | Activates all items except the one at ActiveIndex which will be disabled.
|
IndexAndBefore
|
2 | Activates all items that are before and at ActiveIndex .
|
IndexAndAfter
|
3 | Activates all items at and after ActiveIndex
|