Difference between revisions of "Buttons"
m (Adjusted Button Device fields to match the ingame descriptions, very minor, only noticed/suggest it because of the switch.) |
(→Device fields: replaced device field info with more clear info about which device fiels are available for which button type) |
||
Line 269: | Line 269: | ||
}} | }} | ||
== Device fields == | == Device fields == | ||
=== Small button, Hybrid button & Twist handle === | |||
{|class="wikitable" | {|class="wikitable" | ||
! YOLOL field | ! YOLOL field | ||
Line 290: | Line 293: | ||
| '''0:''' Hold down and release '''1:''' Basic Toggle (in-game button remains down while it is "on") '''2:''' 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") | | '''0:''' Hold down and release '''1:''' Basic Toggle (in-game button remains down while it is "on") '''2:''' 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") | ||
|} | |} | ||
=== Warning light button === | |||
{|class="wikitable" | {|class="wikitable" | ||
! YOLOL field | ! YOLOL field | ||
! description | ! description | ||
! range | ! range | ||
|- | |- | ||
! '''ButtonState''' | |||
| The name of the field of which value the button modifies. | |||
| | |||
|- | |||
!'''ButtonStyle''' | |||
| Controls the interaction type of the button | |||
| '''0:''' Hold down and release '''1:''' Basic Toggle (in-game button remains down while it is "on") '''2:''' 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") | |||
|- | |||
! '''ButtonColor''' | ! '''ButtonColor''' | ||
| Sets the color of the button. | | Sets the color of the button. | ||
Line 306: | Line 317: | ||
| '''0''' = No blinking, '''1''' = Blinking | | '''0''' = No blinking, '''1''' = Blinking | ||
|} | |} | ||
=== Simple buttons & Switch === | |||
{|class="wikitable" | {|class="wikitable" | ||
! colspan="3" style="text-align: center" |Simple Button 12x12 cm | ! colspan="3" style="text-align: center" |Simple Button 12x12 cm | ||
Line 313: | Line 327: | ||
! range | ! range | ||
|- | |- | ||
! '''ButtonState''' | |||
| The name of the field of which value the button modifies. | |||
| | |||
|- | |||
!'''ButtonStyle''' | |||
| Controls the interaction type of the button | |||
| '''0:''' Hold down and release '''1:''' Basic Toggle (in-game button remains down while it is "on") '''2:''' 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") | |||
|- | |||
! '''ButtonColor''' | ! '''ButtonColor''' | ||
| Sets the color of the button. | | Sets the color of the button. | ||
| '''0''' = Blue, '''1''' = Red, '''2''' = Green, '''3''' = White, Anything else = Blue | | '''0''' = Blue, '''1''' = Red, '''2''' = Green, '''3''' = White, Anything else = Blue | ||
|} | |} | ||
=== Safety lid buttons === | |||
{|class="wikitable" | {|class="wikitable" | ||
! YOLOL field | ! YOLOL field | ||
! description | ! description | ||
! range | ! range | ||
|- | |- | ||
! ''' | ! '''ButtonState''' | ||
| Controls the interaction type of the | | The name of the field of which value the button modifies. | ||
| '''0''' | | | ||
|- | |||
! '''ButtonOnStateValue''' | |||
| Controls the value when pressed | |||
| | |||
|- | |||
! '''ButtonOffStateValue''' | |||
| Controls the value when released | |||
| | |||
|- | |||
!'''ButtonStyle''' | |||
| Controls the interaction type of the button | |||
| '''0:''' Hold down and release '''1:''' Basic Toggle (in-game button remains down while it is "on") '''2:''' 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") | |||
|- | |||
! '''ButtonColor''' | |||
| Sets the color of the button. | |||
| '''0''' = Red, '''1''' = Orange, '''2''' = Green, '''3''' = Blue, Anything else = Red | |||
|- | |- | ||
! ''' | ! '''ButtonEnableBlink''' | ||
| | | When enabled the button will light up periodically. | ||
| '''0''' = | | '''0''' = No blinking, '''1''' = Blinking | ||
|} | |} | ||
To learn more about the usage of fields, consult these wiki pages: | To learn more about the usage of fields, consult these wiki pages: | ||
* [[Universal tool|Universal Tool]] | * [[Universal tool|Universal Tool]] |
Revision as of 19:18, 30 September 2021
Buttons come in many different shapes, sizes, and colors, but all serve the same purpose: Toggling device field values. While some buttons like the simple button 12×12 or the switch can only toggle between preset values, others can have customized on and off states applied when triggered. This is particularly useful to avoid using YOLOL to interpret button states.
Basic information
Hybrid buttons are 24×24cm, support custom on/off states, and have a label on their faces that indicate which device field they modify.
Safety lid buttons are 24×24 cm, and have a physical shield in place over them which must be interacted with before the button can be pressed. These buttons support custom on/off states, and also support coloring via their device fields.
Simple buttons come in 12×12 cm and 12×24 cm sizes, and support coloring via their device fields.
Warning light buttons are 12×12 cm, and support custom on/off states, coloring, and a blinking back-light which can be turned on and off.
Switches are 12×24cm, and output one of three states: -1, 0, 1. They also support coloring via their device fields.
Small buttons are approximately 30×30×36 cm, and support custom on/off states.
Twist handles are approximately 24×24×36 cm, and support custom on/off states. These are most typically used to control the flow of propellant tanks.
Configuring a button:
- Set the ButtonState field name to match the device field you want to control.
- Set the On- and Off-state values.
- Pressing the button changes its state depending on ButtonStyle -field value.
- Buttons with the "ButtonColor" field can have a different button color depending on the value of this field.
Types
Device fields
Small button, Hybrid button & Twist handle
YOLOL field | description | range |
---|---|---|
ButtonState | The name of the field of which value the button modifies. | |
ButtonOnStateValue | Controls the value when pressed | |
ButtonOffStateValue | Controls the value when released | |
ButtonStyle | Controls the interaction type of the button | 0: Hold down and release 1: Basic Toggle (in-game button remains down while it is "on") 2: 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") |
Warning light button
YOLOL field | description | range |
---|---|---|
ButtonState | The name of the field of which value the button modifies. | |
ButtonStyle | Controls the interaction type of the button | 0: Hold down and release 1: Basic Toggle (in-game button remains down while it is "on") 2: 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") |
ButtonColor | Sets the color of the button. | 0 = Red, 1 = Orange, 2 = Green, 3 = Blue, Anything else = Red |
ButtonEnableBlink | When enabled the button will light up periodically. | 0 = No blinking, 1 = Blinking |
Simple buttons & Switch
Simple Button 12x12 cm | ||
---|---|---|
YOLOL field | description | range |
ButtonState | The name of the field of which value the button modifies. | |
ButtonStyle | Controls the interaction type of the button | 0: Hold down and release 1: Basic Toggle (in-game button remains down while it is "on") 2: 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") |
ButtonColor | Sets the color of the button. | 0 = Blue, 1 = Red, 2 = Green, 3 = White, Anything else = Blue |
Safety lid buttons
YOLOL field | description | range |
---|---|---|
ButtonState | The name of the field of which value the button modifies. | |
ButtonOnStateValue | Controls the value when pressed | |
ButtonOffStateValue | Controls the value when released | |
ButtonStyle | Controls the interaction type of the button | 0: Hold down and release 1: Basic Toggle (in-game button remains down while it is "on") 2: 4-state switch (in-game button returns to the unpressed position whether it is "on" or "off") |
ButtonColor | Sets the color of the button. | 0 = Red, 1 = Orange, 2 = Green, 3 = Blue, Anything else = Red |
ButtonEnableBlink | When enabled the button will light up periodically. | 0 = No blinking, 1 = Blinking |
To learn more about the usage of fields, consult these wiki pages: