Space Engineers

Space Engineers

295 个评价
HudLcd - Display your LCD text on your HUD!
   
奖励
收藏
已收藏
取消收藏
Type: Mod
标签: hud
文件大小
发表于
更新日期
223.839 KB
2017 年 4 月 22 日 下午 1:46
2022 年 5 月 5 日 上午 7:07
14 项改动说明 ( 查看 )

订阅以下载
HudLcd - Display your LCD text on your HUD!

描述
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
热门讨论 查看全部(4)
28
5 月 29 日 上午 8:01
置顶: What to check if it's not working.
Jawastew
7
2020 年 12 月 29 日 下午 5:42
Not working on Dedicated Server 1.197.73
szalkerous
3
2017 年 9 月 15 日 下午 3:50
Crash on world exit
PhoenixTheSage
115 条留言
J1k0 10 月 19 日 下午 6:16 
First of all - ty for this awesome mod !

Used it quite a bit :)

However is it possible that the mod doesnt like the blocks that have lcd´s builtin ?
For example a programmable block isnt an lcd but has an lcd in it. Would love to see their content while in cockpit AND use your mod.
Bunio 5 月 20 日 下午 4:19 
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  [作者] 1 月 1 日 下午 1:36 
@Snuggl Happy to hear it! Unfortunately there is no image support for the mod at this point.
Snuggl 2024 年 12 月 6 日 上午 5:11 
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 2024 年 11 月 9 日 下午 7:19 
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 2024 年 9 月 30 日 上午 7:47 
is there an option to toggle a hud overlay display on or off?
Braste84 2024 年 7 月 17 日 下午 12:24 
Can this be used with the LCDs in a cockpit?
Darian Stephens 2024 年 3 月 31 日 上午 10:44 
@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 2024 年 3 月 27 日 下午 7:08 
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 2024 年 1 月 6 日 下午 1:17 
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.