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)
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Otherlang2
{{Otherlang2
|fr=Buttons/fr
|fr=Buttons:fr
|de=Buttons:de
|de=Buttons:de
|zh-cn=按钮
|zh-cn=按钮
|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
 
}}
}}
}}
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.
== Summary ==
<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 tank|propellant tanks]].


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


== Types ==
== Device fields ==
{{SB Mini Infobox Wrap
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Hybrid button.png]]
|name=Hybrid button
  }}


  |{{SB Infobox Device General Information
To learn more about the usage of fields, consult these wiki pages:
|size=24×24×6 cm
* [[Universal tool|Universal Tool]]
|mass=16.6
* [[Data networks|Data networks]]
|volume=1.67
* [[YOLOL|YOLOL]]
|corrosionResistance=489
|primaryMaterial=Bastium
  }}


  |{{SB Infobox Device IO
|modInterfaces=24×24 cm
  }}
  |{{SB Infobox Device Construction
|bastium=35.3%
|ajatite=29.94%
|vokarium=19.89%
|nhurgite=14.87%
  }}
}}
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Simple button 12x12.png]]
|name=Simple button 12×12 cm
  }}
  |{{SB Infobox Device General Information
|size=12×12×6 cm
|mass=4.27
|volume=0.43
|corrosionResistance=420
|primaryMaterial=Bastium
  }}
  |{{SB Infobox Device IO
|modInterfaces=12×12 cm
  }}
  |{{SB Infobox Device Construction
|bastium=40%
|ajatite=40%
|vokarium=20%
  }}
}}
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Simple button 12x24.png]]
|name=Simple button 12×24 cm
  }}
  |{{SB Infobox Device General Information
|size=12×24×6 cm
|mass=8.66
|volume=0.87
|corrosionResistance=420
|primaryMaterial=Bastium
  }}
  |{{SB Infobox Device IO
|modInterfaces=12×24 cm
  }}
  |{{SB Infobox Device Construction
|bastium=40.22%
|ajatite=39.85%
|vokarium=19.93%
  }}
}}
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Small button.png]]
|name=Small button
  }}
  |{{SB Infobox Device General Information
|size=30×30×36 cm
|mass=127.36
|volume=12.80
|corrosionResistance=360
|primaryMaterial=Bastium
  }}
  |{{SB Infobox Device IO
|sockets=1
  }}
  |{{SB Infobox Device Construction
|bastium=70%
|vokarium=30%
  }}
}}
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Switch 12x24.png]]
|name=Switch 12×24
  }}
  |{{SB Infobox Device General Information
|size=24×12×12 cm
|mass=786
|volume=0.79
|corrosionResistance=360
|primaryMaterial=Bastium
  }}
  |{{SB Infobox Device IO
|modInterfaces=12×24 cm
  }}
  |{{SB Infobox Device Construction
|bastium=70.07%
|vokarium=29.93%
  }}
}}
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Twist handle.png]]
|name=Twist handle
  }}
  |{{SB Infobox Device General Information
|size=24×24×30 cm
|mass=64.1
|volume=6.44
|corrosionResistance=300
|primaryMaterial=Bastium
  }}
  |{{SB Infobox Device IO
|modInterfaces=24×24 cm
  }}
  |{{SB Infobox Device Construction
|bastium=100%
  }}
}}
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Safety lid button (round).png]]
|name=Safety lid button (round)
  }}
  |{{SB Infobox Device General Information
|size=24×24×12 cm
|mass=22.8
|volume=2.29
|corrosionResistance=480
|primaryMaterial=Bastium
  }}
  |{{SB Infobox Device IO
|modInterfaces=24×24 cm
  }}
  |{{SB Infobox Device Construction
|bastium=10.22%
|ajatite=59.85%
|vokarium=29.93%
  }}
}}
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Safety lid button (square).png]]
|name=Safety lid button (square)
  }}
  |{{SB Infobox Device General Information
|size=24×24×12 cm
|mass=22.6
|volume=2.27
|corrosionResistance=480
|primaryMaterial=Bastium
  }}
  |{{SB Infobox Device IO
|modInterfaces=24×24 cm
  }}
  |{{SB Infobox Device Construction
|bastium=10.22%
|ajatite=59.85%
|vokarium=29.93%
  }}
}}
|{{SB Mini Infobox Begin
  |{{SB Infobox Header
|image=[[Image:Warning light button 12x12.png]]
|name=Warning light button 12×12
  }}
  |{{SB Infobox Device General Information
|size=24×24×12 cm
|mass=4.28
|volume=0.43
|corrosionResistance=300
|primaryMaterial=Bastium
  }}
  |{{SB Infobox Device IO
|modInterfaces=12×12 cm
  }}
  |{{SB Infobox Device Construction
|bastium=100%
  }}
}}
}}
== Device fields ==
<section begin=deviceFields/>
=== Small button, Hybrid button & Twist handle ===
{|class="wikitable"
{|class="wikitable"
! YOLOL field
! YOLOL field
Line 277: Line 37:
|-
|-
! '''ButtonState'''
! '''ButtonState'''
| The name of the field of which value the button modifies.
| The name of the field of which value the button modifies
| ButtonOnStateValue / ButtonOffStateValue
|  
|-  
|-  
! '''ButtonOnStateValue'''
! '''ButtonOnStateValue'''
Line 289: Line 49:
|-
|-
!'''ButtonStyle'''
!'''ButtonStyle'''
| Controls the interaction type of the button
| 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")
| '''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 ===
 
{|class="wikitable"
{|class="wikitable"
! colspan="3" style="text-align: center" |Warning Light Button 12x12 cm
|-
! YOLOL field
! YOLOL field
! description
! description
! range
! range
|-
|-
! '''ButtonState'''
| The name of the field of which value the button modifies.
| 0/1
|-
!'''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.
| Depending on this field the Button will appear in a different color.  
| '''0''' = Red, '''1''' = Orange, '''2''' = Green, '''3''' = Blue, Anything else = Red
| 0 = red; 1 = orange; 2 = green; 3= blue; any other number = red
|-  
|-  
! '''ButtonEnableBlink'''
! '''ButtonEnableBlink'''
| When enabled the button will light up periodically.  
| When enabled the button will light up periodicaly.  
| '''0''' = No blinking, '''1''' = Blinking (Number sets the interval)
| 0 = no blinking; 1 = blinking.
|}
 
=== Simple buttons ===
 
{|class="wikitable"
! YOLOL field
! description
! range
|-
! '''ButtonState'''
| The name of the field of which value the button modifies.
| 0/1
|-
!'''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
|}
|}
=== Switch ===
{|class="wikitable"
{|class="wikitable"
! YOLOL field
! colspan="3" style="text-align: center" |Simple Button 12x12 cm
! description
! range
|-
! '''SwitchState'''
| The name of the field of which value the button modifies.
| -1/0/1
|-
|-
!'''SwitchStyle'''
| Controls the interaction type of the button
|'''0:''' Hold down and release '''1:''' Toggle (-1/0/1) '''2:''' Toggle (-1/1)
|-
! '''SwitchColor'''
| Sets the color of the button.
| '''0''' = Black, '''1''' = Red, '''2''' = Orange, '''3''' = Green, '''4''' = Blue, Anything else = Black
|}
=== Safety lid buttons ===
{|class="wikitable"
! YOLOL field
! YOLOL field
! description
! description
! range
! range
|-
|-
! '''ButtonState'''
| The name of the field of which value the button modifies.
| ButtonOnStateValue / ButtonOffStateValue
|-
! '''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'''
! '''ButtonColor'''
| Sets the color of the button.
| Depending on this field the Button will appear in a different color.  
| '''0''' = Red, '''1''' = Orange, '''2''' = Green, '''3''' = Blue, Anything else = Red
| 0 = blue; 1 = red; 2 = green; 3= white; any other number = blue
|-
! '''ButtonEnableBlink'''
| When enabled the button will light up periodically.
| '''0''' = No blinking, '''1''' = Blinking (Number sets the interval)
|}
|}
<section end=deviceFields/>
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 12:10, 17 March 2021

Deutsch Français Русский Українська 简体中文

Summary



Starbase buttons.png

Universally there are two types of buttons that are commonly used; hybrid buttons and small buttons. Both have adjustable interaction styles.
Hybrid buttons are modular, and can connect to adjacent modular displays. Small buttons have their own cable port.

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 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.
  • There are different types of buttons with varrying size. However they all share most of their fields and behavior.

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

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.