Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

Difference between revisions of "Buttons"

From Starbase wiki
Jump to navigation Jump to search
(→‎Device fields: Added simple button colour fields and added titles for the device fields)
Line 5: Line 5:
|ru=Кнопки
|ru=Кнопки
|ua=Кнопка
|ua=Кнопка
}}{{SB Infobox Begin
|{{SB Infobox Header
  |image=[[Image:Control_Devices.png]]
  |factionLogo=
  |caption=A variety of buttons for your most pressing requirements
  |name=Buttons
  |border=none
}}
|{{SB Infobox Device General Information
  |type=Input devices
  |function=Toggles device fields
  |availability=[[Luxury Items]]
  |size=12×12 to 30×30×36
  |mass=~3.7-127.4 kg
  |volume=~0.43-12.8 kv
  |corrosionResistance=340-540
  |suppressUnitsKg=1
  |suppressUnitsKv=1
}}
|{{SB Infobox Device IO
  |electricIn=Passive
  |electricOut=
  |coolantIn=
  |coolantOut=
  |propellantIn=
  |propellantOut=
  |fuelIn=
  |fuelOut=
  |sockets=1 (small button)
  |YOLOLchips=
  |modInterfaces=1 (hybrid button, safety lid button, simple buttons, warning light button, switch, twist handle)
  |deviceInterfaces=
}}
}}
}}
== Summary ==
Buttons come in many different shapes, sizes, and colors, but all serve the same purpose: Toggling [[Device fields|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.
<br>
<br>
[[File:Starbase_buttons.png|400px]]
<br>
<br>
Universally there are two types of buttons that are commonly used; hybrid buttons and small buttons. Both have adjustable interaction styles.<br> 
Hybrid buttons are modular, and can connect to adjacent [[modular displays]]. Small buttons have their own cable port.


== Basic information ==
== 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|propellant tanks]].


Configuring a button:
Configuring a button:
* Set the '''ButtonState''' field's name to match the device field you want to control.<br>
* Set the '''ButtonState''' field name to match the device field you want to control.
* Set the On- and Off-state values.<br>
* Set the On- and Off-state values.
* Pressing the button changes its state depending on '''ButtonStyle''' -field value.<br>
* Pressing the button changes its state depending on '''ButtonStyle''' -field value.
* Buttons with the "ButtonColor" field can have a different buttoncolor depending on the value of this field. <br>
* Buttons with the "ButtonColor" field can have a different button color depending on the value of this field.
* There are different types of buttons with varrying size. However they all share most of their fields and behavior. <br>


== Device fields ==
== Device fields ==
To learn more about the usage of fields, consult these wiki pages:
* [[Universal tool|Universal Tool]]
* [[Data networks|Data networks]]
* [[YOLOL|YOLOL]]
{|class="wikitable"
{|class="wikitable"
! YOLOL field
! YOLOL field
Line 79: Line 114:
| 0 = blue; 1 = red; 2 = green; 3= white; any other number = blue
| 0 = blue; 1 = red; 2 = green; 3= white; any other number = blue
|}
|}
To learn more about the usage of fields, consult these wiki pages:
* [[Universal tool|Universal Tool]]
* [[Data networks|Data networks]]
* [[YOLOL|YOLOL]]
[[Category:Devices and machines|Buttons]]
[[Category:Devices and machines|Buttons]]

Revision as of 04:22, 20 May 2021

Deutsch Français Русский Українська 简体中文
Control Devices.png
A variety of buttons for your most pressing requirements
Buttons
Type Input devices
Function Toggles device fields
Availability Luxury Items
Size 12×12 to 30×30×36
Mass ~3.7-127.4 kg
Volume ~0.43-12.8 kv
Corrosion resistance 340-540

Input / Output
Electric input Passive

Sockets 1 (small button)

Modular interfaces 1 (hybrid button, safety lid button, simple buttons, warning light button, switch, twist handle)

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.

Device fields

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")

Some Buttons have additional fields, which are listed below.

Warning Light Button 12x12 cm
YOLOL field description range
ButtonColor Depending on this field the Button will appear in a different color. 0 = red; 1 = orange; 2 = green; 3= blue; any other number = red
ButtonEnableBlink When enabled the button will light up periodicaly. 0 = no blinking; 1 = blinking.
Simple Button 12x12 cm
YOLOL field description range
ButtonColor Depending on this field the Button will appear in a different color. 0 = blue; 1 = red; 2 = green; 3= white; any other number = blue

To learn more about the usage of fields, consult these wiki pages:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.