Toggle Config
Add a default toggle side config for any component
Some components have a config
property that you can define in the machine json.
Unlike the I/O config, the toggle config only support 2 states per sides : enabled
and disabled
.
Supported components :
This property will define the default toggle mode of the component for each side of the machine, but these toggle modes can be changed later in game by the player if you add a config element to the machine GUI.
Side modes
You can configure the toggle mode of a specific component for each sides of the machine.
Available sides are : top, bottom, front, back, right, left
The machine front
side is the side that faced the player when the machine was placed.
You can also use default
to configure each sides that aren't specified.
Available I/O modes :
enabled
disabled
Disabling gui config
By default any player can change the side mode of a component by using the config button (only if a config gui element is present in the machine GUI).
You can prevent player to config a specific component by adding in the config :
Example :
A component config that has the following properties :
Enable the left and right sides.
Disable all other sides.
The config can't be modified by the player with the gui config button.
All sides are optional.
default
will act for all sides that are not specified.
If default
is not specified enabled
mode will be used.
Last updated