Space Engineers

Space Engineers

202 ratings
HudLcd - Display your LCD text on your HUD!
Type: Mod
Tags: Hud
File Size
5.975 MB
Apr 22, 2017 @ 1:46pm
Jun 4 @ 11:17am
12 Change Notes ( view )

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

Updated and Working again :)

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!

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

- 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[] 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:



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

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 | +----------+
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)

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, ¯\_(ツ)_/¯

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

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
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]
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.

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

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:

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 (3)
Jun 6, 2017 @ 12:39pm
PINNED: What to check if it's not working.
Sep 15, 2017 @ 3:50pm
Crash on world exit
Nov 8, 2017 @ 5:46pm
Text too long
< >
Jawastew  [author] Jun 4 @ 12:06pm 
Finally an update after close to 3 years :)
Please let me know if you have any issues.
Jawastew  [author] Jun 4 @ 6:36am 
Heya, sorry for the long silence. I'm currently looking into getting the mod working again and setting up a public github repo to allow for pull requests of features and to consolidate changes into one mod again (as there is now an unofficial v2). The first update should be in a little bit, just to get the mod working again with the Text HUD API v2, as support for v1 was dropped 3 months ago.
Kapitan Oczywisty Feb 16 @ 7:40pm 
I've made update for Text HUD API v2, which produces better texts. I've also added background and Monospace font.

I'd like to update this to support Cockpit LCDs/Programable blocks and add some more options.

For anyone having troubles: There is a bug with GetPublicTitle which is empty until player makes any change. It's better to use Custom Data. With "Automatic LCDs 2" you can write this as "// hudapi:...." to avoid "Unknown command"
Orixus The Paladin Feb 8 @ 5:29pm 
Hey, me and a friend was wondering if we can try and update as well as upkeep this mod. We wanted to talk to you first to get your permission to take it over. Unfortunately, I have no way to message you other than just the comments section here currently. If you are interested in us taking it over, just shoot me a message and we can discuss it.

Orixus the Paladin
Darian Stephens Feb 5 @ 12:20pm 
While this mod still works, it has become very difficult to read anything with it.
This isn't aided by the fact that it never had a background implemented, so you needed to view it against the right-colored surface to not strain your eyes to read.

My guess is it hasn't implemented the new TextHudAPI feature that lets it ignore post-processing, so the text ends up blurry. That alone would solve the biggest issues, with the only one remaining being to add a background.
It would also be nice to have monospace so the text doesn't end up misaligned compared to the LCD, but that's a small issue.
julekBombon Dec 11, 2019 @ 8:40pm 
Hi, this hud info mod work in this time ?
Espiritu Sep 30, 2019 @ 2:04pm 
Using Automatic LCD2; I set the LCD's text padding to 25% and adjusted hudlcd ratio to 1:1 to display cargo amount and ores on my mining ship with great results. (Squishing the empty spaces.)

LCD Title: hudlcd:-0.98:-0.2:1
LCD settings: Padding to 25%, and colors I like.
LCD Custom data:

CargoX {T:*}
InventoryXS {T:*} +ore
Darian Stephens Jun 3, 2019 @ 9:08pm 
Huh, I could have sworn that it specifically said to put this in the Custom Data somewhere in the instructions.
I guess it says that it works both ways, though:
'To display an LCD on your HUD either tag the LCD Title or the LCD custom Data (Not the Name) with "hudlcd"'
Skallabjorn Jun 3, 2019 @ 5:06pm 
Fixed it myself...problem only happens when using the title line to tag... using custom data its fine
Skallabjorn Jun 3, 2019 @ 4:37pm 
anyone else having the issue of the hud not showing untill you re-enter the title, example in cockpit, works fine, exit and re-enter... no hud untill you retype the info