Barotrauma

Barotrauma

View Stats:
TH3SA1NT45 Apr 1, 2024 @ 1:48am
Wanting to know a bit more about text displays
I'm in the process of wiring a new sub. I'm trying to make it so I can physically place a text display behind something but have the text show over the thing I placed it behind. Anyone know how I could do this, I've been struggling with it for a few days now
Originally posted by Buggy Boy:
You need to play with the colours of the text display item (there are two colour sets - the display itself and the text that gets displayed... maybe three now I think about it, the backlight too). You need to set the item to be transparent, and you'll also want to play with the background / backlight of the text part of the display. Check the displays I've used in my Yellow Submarine, as an example there are two in the medbay (forward compartment) which I've overlaid on a static 'monitor' unit, makes it look like the text is part of that monitor.

https://steamcommunity.com/sharedfiles/filedetails/?id=2796225129

(just in case that version on the workshop isn't what I think it is...)
Basically you want to set the Sprite Colour A (Alpha) to 0, Light Component Range to 0.0 and A to 0, the Item Label colour to whatever you want the display text to be. As an example, mine is set to R 30, G 255, B 200, A 200, Text Scale 0.6. You can enter the Text here if it's going to be static or send text to the display's input (e.g. dynamically updating). Remember that the display length is very limited (if you don't want it to scroll) so make use of rounding components for numbers and the concat component to combine stuff.
< >
Showing 1-2 of 2 comments
The author of this thread has indicated that this post answers the original topic.
Buggy Boy Apr 1, 2024 @ 2:00am 
You need to play with the colours of the text display item (there are two colour sets - the display itself and the text that gets displayed... maybe three now I think about it, the backlight too). You need to set the item to be transparent, and you'll also want to play with the background / backlight of the text part of the display. Check the displays I've used in my Yellow Submarine, as an example there are two in the medbay (forward compartment) which I've overlaid on a static 'monitor' unit, makes it look like the text is part of that monitor.

https://steamcommunity.com/sharedfiles/filedetails/?id=2796225129

(just in case that version on the workshop isn't what I think it is...)
Basically you want to set the Sprite Colour A (Alpha) to 0, Light Component Range to 0.0 and A to 0, the Item Label colour to whatever you want the display text to be. As an example, mine is set to R 30, G 255, B 200, A 200, Text Scale 0.6. You can enter the Text here if it's going to be static or send text to the display's input (e.g. dynamically updating). Remember that the display length is very limited (if you don't want it to scroll) so make use of rounding components for numbers and the concat component to combine stuff.
Last edited by Buggy Boy; Apr 1, 2024 @ 2:13am
TH3SA1NT45 Apr 1, 2024 @ 2:19am 
Ty Im gonna give this a try
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Apr 1, 2024 @ 1:48am
Posts: 2