Space Engineers

Space Engineers

Visual Information System (VIS)
eFFecX 15 Feb, 2020 @ 1:57am
showon
I have a setup with a piston group called "1-M". Now, I want a hollow square to be displayed only when the pistons are fully extended. I wrote this piece of code:

graphic:icon:position
check:piston:1-M:true
#showon:0.9:1
position:0.2,0.19:r
size:0.35,0.2:r
icon:SquareHollow
gradient:0.9:255,0,0
gradient:1:0,255,0

However, when I uncomment the showon line the code does not initialize. I tried a gradient then (so that the square changes its color). That doesn't seem to work either. It just stays green.

graphic:bar:position
check:piston:1-M:true
style:segments:false
position:0.55,0.2:r
size:0.3,0.1:r
gradient:0.0:255,0,0
gradient:1.1:0,255,0

A bar graphic however seems to work... what am I doing wrong?

Thanks for the help!
< >
Showing 1-5 of 5 comments
DMOrigin  [developer] 15 Feb, 2020 @ 3:30am 
The configuration "showon" is replaced by "visibility[github.com]". In your case you need to setup it as following: visibility:>=:0.98

You can check the value for the interface "position" by using the values. Maybe I have an issue here. So that the values aren't set properly. The variable is "ratiopos". Example

graphic:text:position
check:piston:1-M:true
text:Pos = %ratiopos%

I take a look on it :)
eFFecX 16 Feb, 2020 @ 3:47am 
Hi,
thanks for the reply! It works perfectly with this setting. Here is the full config in case you want to include it somewhere as an example:

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

display:0
usetemplate:Default_Transparent

#Header
graphic:text
position:0.0,0.05:r
size:0.7,0.09:r
alignment:left
text:Docking

graphic:icon
position:0.5,0.09:r
size:1.0,0.01:r
icon:SquareSimple

#1-M
graphic:icon:position
check:piston:Piston Medium Port 1
visibility:>=:0.98
color:0,88,151
position:0.21,0.22:r
size:0.37,0.2:r
icon:SquareHollow

graphic:text
check:piston:Piston Medium Port 1
position:0.05,0.18:r
size:0.7,0.1:r
alignment:left
text:1-M

graphic:text
check:piston:Piston Medium Port 1
position:0.05,0.28:r
size:0.7,0.1:r
alignment:left
text:%ratiopos%

graphic:bar:position
check:piston:Piston Medium Port 1
position:0.59,0.22:r
size:0.35,0.1:r
style:tiles:false:8:0.1:r
border:0.05:r:0,88,151
bgcolor:0,0,0
gradient:0.0:255,0,0
gradient:0.2:255,100,0
gradient:0.3:255,255,0
gradient:0.5:0,255,0

graphic:icon:status
icon:Circle
check:connector:Connector 1-M
position:0.9,0.22:r
size:0.08,0.08:r
gradient:0:255,0,0
gradient:0.5:255,255,0
gradient:1:0,255,0

#2-L
graphic:icon:position
check:piston:Large Port Piston 2.1
visibility:>=:0.98
color:0,88,151
position:0.21,0.43:r
size:0.37,0.2:r
icon:SquareHollow

graphic:text
check:piston:Large Port Piston 2.1
position:0.05,0.39:r
size:0.7,0.1:r
alignment:left
text:2-L

graphic:text
check:piston:Large Port Piston 2.1
position:0.05,0.49:r
size:0.7,0.1:r
alignment:left
text:%ratiopos%

graphic:bar:position
check:piston:Large Port Piston 2.1
position:0.59,0.43:r
size:0.35,0.1:r
style:tiles:false:8:0.1:r
border:0.05:r:0,88,151
bgcolor:0,0,0
gradient:0.0:255,0,0
gradient:0.2:255,100,0
gradient:0.3:255,255,0
gradient:0.5:0,255,0

graphic:icon:status
icon:Circle
check:connector:Connector 2-L
position:0.9,0.43:r
size:0.08,0.08:r
gradient:0:255,0,0
gradient:0.5:255,255,0
gradient:1:0,255,0

#3-S
graphic:icon:position
check:piston:Piston Small Port 3
visibility:>=:0.98
color:0,88,151
position:0.21,0.64:r
size:0.37,0.2:r
icon:SquareHollow

graphic:text
check:piston:Piston Small Port 3
position:0.05,0.6:r
size:0.7,0.1:r
alignment:left
text:3-S

graphic:text
check:piston:Piston Small Port 3
position:0.05,0.7:r
size:0.7,0.1:r
alignment:left
text:%ratiopos%

graphic:bar:position
check:piston:Piston Small Port 3
position:0.59,0.64:r
size:0.35,0.1:r
style:tiles:false:8:0.1:r
border:0.05:r:0,88,151
bgcolor:0,0,0
gradient:0.0:255,0,0
gradient:0.2:255,100,0
gradient:0.3:255,255,0
gradient:0.5:0,255,0

graphic:icon:status
icon:Circle
check:connector:Connector 1.3-S
position:0.85,0.64:r
size:0.08,0.08:r
gradient:0:255,0,0
gradient:0.5:255,255,0
gradient:1:0,255,0

graphic:icon:status
icon:Circle
check:connector:Connector 2.3-S
position:0.95,0.64:r
size:0.08,0.08:r
gradient:0:255,0,0
gradient:0.5:255,255,0
gradient:1:0,255,0

#4-M
graphic:icon:position
check:piston:Large Port Piston 4.1
visibility:>=:0.98
color:0,88,151
position:0.21,0.85:r
size:0.37,0.2:r
icon:SquareHollow

graphic:text
check:piston:Large Port Piston 4.1
position:0.05,0.81:r
size:0.7,0.1:r
alignment:left
text:4-M

graphic:text
check:piston:Large Port Piston 4.1
position:0.05,0.91:r
size:0.7,0.1:r
alignment:left
text:%ratiopos%

graphic:bar:position
check:piston:Large Port Piston 4.1
position:0.59,0.85:r
size:0.35,0.1:r
style:tiles:false:8:0.1:r
border:0.05:r:0,88,151
bgcolor:0,0,0
gradient:0.0:255,0,0
gradient:0.2:255,100,0
gradient:0.3:255,255,0
gradient:0.5:0,255,0

graphic:icon:status
icon:Circle
check:connector:Connector 4-M
position:0.9,0.85:r
size:0.08,0.08:r
gradient:0:255,0,0
gradient:0.5:255,255,0
gradient:1:0,255,0
DMOrigin  [developer] 17 Feb, 2020 @ 8:00am 
That looks realy nice :) I thank you to provide the hole configuration. I have added them to my howto list.
eFFecX 17 Feb, 2020 @ 11:45am 
Thanks for the credit :) very happy to contribute! In case I create another config I'd be happy to share it with you if you like.
DMOrigin  [developer] 26 Feb, 2020 @ 11:39am 
I'm very happy to see your ideas. Every example help other users to understand and to find his own creation :)
< >
Showing 1-5 of 5 comments
Per page: 1530 50