Difference between revisions of "Buttons"
Jump to navigation
Jump to search
(→Device fields: changed buttonStyle description to be very specific) |
|||
Line 45: | Line 45: | ||
!'''ButtonStyle''' | !'''ButtonStyle''' | ||
| Controls the interaction style of the button | | Controls the interaction style of the button | ||
| '''0:''' Hold down and release '''1:''' Basic Toggle ( | | '''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") | ||
|} | |} | ||
[[Category:Devices and machines|Buttons]] | [[Category:Devices and machines|Buttons]] |
Revision as of 00:22, 30 October 2019
Summary
Universally there are two types of buttons that are commonly used; modular button panels and mechanical buttons with adjustable interaction style.
The latter type can also include a YOLOL screen and they are usually referred to as the "hybrid buttons".
Basic information
Configuring a button:
- Set the ButtonState field's name to match the device field you want to control.
- Set the On- and Off-state values.
- Pressing the mechanical button changes its state depending on ButtonStyle -field value.
- Modular button panels toggle between On and Off-state.
Device fields
To learn more about the usage of fields, consult these wiki pages:
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 style 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") |