Space Engineers

Space Engineers

Colourable LCD Signs Pack [Updated]
Netherspark  [developer] 13 Apr, 2020 @ 3:02pm
Custom Colouring via Blarg's Fancy Flight Info
BLARG'S FANCY FLIGHT INFO SCRIPT IS REQUIRED FOR CUSTOM COLOURING
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=907619446
DISCLAIMER: This is somewhat complicated to set up and use. It requires the use of scripts and programmable blocks, as well as for you to manually modify Custom Data in the Terminal of every single LCD screen. Though it's pretty simple to learn it's still a bit clunky and if you're not familiar with basic code and running scripts you're probably not going to have a good time with this.

NOTE: Since the images are White by default, if you prefer simple black & white signs you can just skip all this and use them like regular LCD images.

The colors on these signs can come through a bit overly vibrant so I find it's best to avoid using 'pure' colors. For example, if you want red use 255,20,20 instead of 255,0,0. If you want blue it's best add a little green to lighten it, so use 0,125,255 instead of 0,0,255. But it's all up to you anyway, any color is possible.


HOW TO USE:

Firstly, to properly use the color in these signs you must have Blarg's Fancy Flight Info Script loaded and running on a Programmable Block (only one is needed per grid). The sign must then be added to the LCD panel via the Custom Data field. If you try to add them in the [Text & Images] section like regular images they will not be colorable. Leave the LCD background color on black or ugliness will ensue (the code will set it black for you).

For single-color signs build your LCD panels and then paste this code into the Custom Data field in the screen's Terminal:

[FFI]
screen = 1
background = 0,0,0

[FFI SIGN]
type = sprite
size = 100%
sprite =
color =

In the blank space next to "sprite" enter the name of the sign you want. This will always be the same as the text on that sign and is Case Sensitive (eg. for medical center sign, type in Medical Center).

In the "color" space type in an RGB value separated by commas (255, 0, 0) The first number is the amount of RED, second GREEN, and third BLUE. Using these RGB values you can create any color, shade or brightness you desire. You can also add a forth number for 'alpha' (transparency) but this is not required.

Now enter "update" (all lower case and without quotes) into the Argument line on the Programmable Block and press 'Run'. This needs to be done every time changes are made to a sign's image or color, so it's best to set up a button panel for it (make sure it's set to Run with the update command).


ADDING A CUSTOM BORDER COLOUR:

To create a custom border color add this beneath the previous code in the Custom Data field. Leave a line between sections, do not replace the first section and do not change the order of the sections:


[FFI BORDER BLACKOUT - DO NOT ALTER]
type = sprite
size = 100%
sprite = #Blackout
color = 0,0,0

[FFI CUSTOM BORDER]
type = sprite
size = 100%
sprite = #Border
color =

Again, in the "color" space of the "CUSTOM BORDER" section type in the RGB values for the color border you want to use, and then Run the update command on the Programmable Block.

IMPORTANT - Do not alter anything in the "BORDER BLACKOUT" section. Only alter the "color =" line in the [CUSTOM BORDER] section. If you want to go back to single-color you can either match the RGB values to those in the first section or just delete the second and third sections entirely.

The specifics on how this works is that the first section (FFI SIGN) is the main image. The second section (FFI BORDER BLACKOUT) conceals the border if required. And then the third section (FFI CUSTOM BORDER) places a new border on top of it.


I'd like to heap much praise on Blarg for not only supplying the script to make this work, but also for giving me the idea and advice to create this version of the mod in the first place. I made the images but all the coloring comes from his script.
Last edited by Netherspark; 13 Apr, 2020 @ 6:41pm