Space Engineers

Space Engineers

Visual Information System (VIS)
Helmann 23 Oct, 2021 @ 6:44pm
Sci-Fi 4 button panel On/Off
Hi. This is what I have created and wanted to share. Took me about 4 hours to create as I had to learn how to use the script.
Add this code block for each individual screen you want to display.
This is for the individual screens for the SciFi 4 button panel. It will display the On/Off status of a blocks or groups of blocks. The On will be green with Off in grey when on. The On will be grey and the Off red when off. You change the blockname and isgroup in the variables and the text in the first graphic:text block. You can add a second text line below this if needed.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2635673345

screen:0
$blockname:Console Block - Command Centre
$isgroup:false
$texton:On
$textoff:Off

bgcolor:0,0,0
refresh:1

graphic:text
text:Holo Table
font:DEBUG:0.8:255,0,0
alignment:c
position:0.5,0.4:r

graphic:text:on
check:onoff:$(blockname):$(isgroup)
visibility:equal:1
text:$(texton)
font:DEBUG:0.75:0,255,0
position:0.28,0.8:r

graphic:text:on
check:onoff:$(blockname):$(isgroup)
visibility:equal:1
text:/Off
font:DEBUG:0.75:45,45,45
position:0.468,0.8:r

graphic:text:off
check:onoff:$(blockname):$(isgroup)
visibility:equal:1
text:On/
font:DEBUG:0.75:45,45,45
position:0.275,0.8:r

graphic:text:off
check:onoff:$(blockname):$(isgroup)
visibility:equal:1
text:$(textoff)
font:DEBUG:0.75:255,0,0
position:0.531,0.8:r