Barotrauma

Barotrauma

Not enough ratings
Suit Depth Meter
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
38.984 KB
4 Jan @ 9:20pm
1 Change Note ( view )

Subscribe to download
Suit Depth Meter

Description
The 3C circuit displays the current sub depth in a matching suit colour that is best placed near airlocks and diving suit lockers.

Use the item assembly or reference the circuit diagram and simply wire Navigation Terminal CURRENT_POSITION_Y -> Round Component -> Concatenation Component SIGNAL_IN_1 and SIGNAL_IN_2 -> Regex SIGNAL_IN. Round Component -> SET_TEXT. Regex SIGNAL_OUT -> SET_TEXT_COLOR. Then use the following component settings below:


Concatenation Separator:

;G:#33BF67;R:#C21E19;Y:#DAA520;B:#47ADFF;T:#97C3C3;

Regex Expression

^(?:([1-3]?.?.?.)|(4...|5[0-6]..|57[0-4].)|(575.|57[6-9].|5[89]..|6[01]..)|(6[2-5]..|66[0-4].)|(65..|6[6-9]..))[.;](.*;)*((?(1)G)|(?(2)R)|(?(3)Y)|(?(4)B)|(?(5)T)):(?<color>.*?);
Regex Output
color
Regex False Output
leave empty
Regex Use Capture Group
checked (True)