Space Engineers

Space Engineers

289 ratings
HudLcd - Display your LCD text on your HUD!
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Tags: hud
File Size
Posted
Updated
223.839 KB
22 Apr, 2017 @ 1:46pm
5 May, 2022 @ 7:07am
14 Change Notes ( view )

Subscribe to download
HudLcd - Display your LCD text on your HUD!

Description
HudLcd displays the Text of selected LCDs on your HUD!

Now with multiple LCDs, and lots of colour options!

This Mod is written with little C# experience (mainly C++, Java) and I haven't had the time to do extensive Bug tests. (I will Hotfix as soon as bugs come to my attention.)

Requires the Text HUD API!

Features:
- Display multiple LCDs on your HUD
- Configure Position, Fontsize and Colour!
- Debug and Monospace font support (thanks to Text HUD API v2)

ToDo:
- figure out how to make Text HUD API use custom Fonts (not a Monofont version; this helps display Automatic LCDs Scripts/etc) semi fixed with Debug and Monospace Font support.

How do I display my LCD?

To display an LCD on your HUD write a line in the LCD Custom Data tagged with "hudlcd". The LCD has to be on the same grid you are controlling! (Not connected via landing gear or connectors). Controlling a grid means you are sitting in a cockpit, remote controlling or viewing through a camera.
If you already have something in your Custom Data for a Script (like Automatic LCDs 2) you can also prepend the hudlcd with // so the script treats the line as a comment (the Script must support some sort of comment system).
For Automatic LCDs this can be achieved by beginning a line with "// hudlcd".

It is also possible to use the LCD Title but it is currently unreliable due to a current bug[support.keenswh.com] in SE. Meaning it works well to finetune your formatting because you can see the changes you are making in realtime if you have your UI background opacity turned down. Unfortunately due to this bug you have to refresh (change) the Title every time you reload your save. So I encourage you to make the finetuning of the formatting in the Title and then save the final tag in your Custom Data.

The Title is evaluated before Custom Data.

You can adjust the positioning, fontsize, colour, shadow of the LCD Text on your HUD by adding the following to the tag:

Format:

hudlcd:{PosX}:{PosY}:{Fontsize}:{Colour}:{Shadow}

If you want to use the default value of any of the Parameters just leave it blank.
Example:
Only changing the colour would look like so: hudlcd::::Red
Only changing the position: hudlcd:-1:1

Posx/PosY
The middle of your screen is 0:0.
PosX adjusts the horizontal alignment, PosY the vertical.
Both values have to be between -1 and 1.
PosX: (left) -1 <- 0 -> 1 (right)
PosY: (bottom) -1 <- 0 -> 1 (top)
+----------+ | 1 | | | | |-1 --0-- 1| | | | | -1 | +----------+
Examples:
Top-Left: hudlcd:-1:1
Above your Hotbar: hudlcd:-0.35:-0.65
Default: hudlcd:-0.98:-0.2 (this places the text over your left HUD elements as seen in the first screenshot)

Fontsize
1 is normal size
2 is double size
0.5 is half size

You can flip the Text on it's head by making this value negative, ¯\_(ツ)_/¯

Example:
Half Fontsize: hudlcd:::0.5
Default: uses the LCD Font Size

Colour
By default HudLcd will try and get the Font Colour of the LCD Panel.
If you don't like that then you have several options of changing this:
The following formats work for the Colour option:

{Colourname}, taken from the long list below
Example:
Red: hudlcd::::red

{r,g,b} or {r,g,b,a}
where r = red [0-255], b = blue [0-255], g = green [0-255], a = alpha [0-255]
Example:
pink: hudlcd::::255,0,255
white with reduced alpha: hudlcd::::255,255,255,150

At any point in the Text of your LCD you can use the tag <color={Colour}> to change the following text.


Shadow
You can apply a shadow to the text by setting this to 1.
Example: hudlcd::::red:1


Footnotes
Featured in the Screenshot: Automatic LCDs 2
Thanks to Cheetah for suggesting to hook the mod into the LCD Panels instead of using the ControlledEntityChanged Event.
If you have any suggestions or similar you can open a pull request here: https://github.com/Jawastew/HudLcd

All Colours supported by the Text HUD API:
aliceblue ,antiquewhite ,aqua ,aquamarine ,azure ,badetblue ,beige ,bisque ,black ,blanchedalmond ,blue ,blueviolet ,brown ,burlywood ,chartreuse ,chocolate ,coral ,cornflowerblue ,cornsilk ,crimson ,cyan ,darkblue ,darkcyan ,darkgoldenrod ,darkgray ,darkgreen ,darkkhaki ,darkmagenta ,darkoliveGreen ,darkorange ,darkorchid ,darkred ,darksalmon ,darkseagreen ,darkslateblue ,darkslategray ,darkturquoise ,darkviolet ,deeppink ,deepskyblue ,dimgray ,dodgerblue ,doneydew ,firebrick ,floralwhite ,forestgreen ,fuchsia ,gainsboro ,ghostwhite ,gold ,goldenrod ,gray ,green ,greenyellow ,hotpink ,indianred ,indigo ,ivory ,khaki ,lavender ,lavenderblush ,lawngreen ,lemonchiffon ,lightblue ,lightcoral ,lightcyan ,lightgoldenrodyellow ,lightgray ,lightgreen ,lightpink ,lightsalmon ,lightseagreen ,lightskyblue ,lightslategray ,lightsteelblue ,lightyellow ,lime ,limegreen ,linen ,magenta ,maroon ,mediumaquamarine ,mediumblue ,mediumorchid ,mediumpurple ,mediumseagreen ,mediumslateblue ,mediumspringgreen ,mediumturquoise ,mediumvioletred ,midnightblue ,mintcream ,mistyrose ,moccasin ,navajowhite ,navy ,oldlace ,olive ,olivedrab ,orange ,orangered ,orchid ,palegoldenrod ,palegreen ,paleturquoise ,palevioletred ,papayawhip ,peachpuff ,peru ,pink ,plum ,powderblue ,purple ,red ,rosybrown ,royalblue ,saddlebrown ,salmon ,sandybrown ,seagreen ,seashell ,sienna ,silver ,skyblue ,slateblue ,slategray ,snow ,springgreen ,steelblue ,tan ,teal ,thistle ,tomato ,turquoise ,violet ,wheat ,white ,whitesmoke ,yellow ,yellowgreen
Popular Discussions View All (4)
28
29 May @ 8:01am
PINNED: What to check if it's not working.
Jawastew
7
29 Dec, 2020 @ 5:42pm
Not working on Dedicated Server 1.197.73
szalkerous
3
15 Sep, 2017 @ 3:50pm
Crash on world exit
PhoenixTheSage
114 Comments
Bunio 20 May @ 4:19pm 
https://prnt.sc/YfNjafzLru1_

I have a problem, suddenly it doesn't matter where I set it to display on the hub, I have all of them at the bottom in the corner
Jawastew  [author] 1 Jan @ 1:36pm 
@Snuggl Happy to hear it! Unfortunately there is no image support for the mod at this point.
Snuggl 6 Dec, 2024 @ 5:11am 
Love this!

It seems to only work with test based LCDs though. Is there a way to make it work with image based ones, like the Shield HUD when you use Energy Shields / Defensive Shields mods?
Jormoongandr 9 Nov, 2024 @ 7:19pm 
There is another lcd mod I use called SIMPL to show the status of my ships, but it uses the content: apps instead of content: test and images. is there any plan on having this be compatible with those modes? Other then that this works great :)
Squeech 30 Sep, 2024 @ 7:47am 
is there an option to toggle a hud overlay display on or off?
Braste84 17 Jul, 2024 @ 12:24pm 
Can this be used with the LCDs in a cockpit?
Darian Stephens 31 Mar, 2024 @ 10:44am 
@jokerace45
Yes, this cannot work client-side nor as a programmable block; SE just doesn't have the functionality needed.

On the right side of a workshop submission's page, you can see whether it's a 'Mod' or an 'Ingame Script'.
The latter is a programmable block script, while the former is the sort of thing you add to a world before you load.
You can also filter by these things when searching the workshop via the dropdown and tick boxes on the right when browsing.
jokerace45 27 Mar, 2024 @ 7:08pm 
I am guessing this is a server side script. Because I do not see it in scripts area to install to a programming block.
bobblehead 6 Jan, 2024 @ 1:17pm 
MrFox, looking at the format layout as described above the Font Size would land in the third position in the command. Your command as written in your question is missing two more full colons. Thus it should be hudlcd:::2.

Hope that helps.
MrFox 17 Oct, 2023 @ 6:39pm 
How to do the size thing? hudlcd:2