Space Engineers

Space Engineers

Not enough ratings
Razzun's LCD Image Switcher
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.941 KB
23 Aug, 2020 @ 3:00pm
24 Aug, 2020 @ 1:20pm
3 Change Notes ( view )

Subscribe to download
Razzun's LCD Image Switcher

In 1 collection by [VVAR] Razzun
Razzun's Fav Scripts
8 items
Description
This is a modified version from Meymo's Alert script. Instead of using it to switch LCD panels to different alert status, it changes between the images using the arguments field to identify which LCD display and the command (aka the image to switch to). The argument format is <LCD Tag>;<Stop or Go>. Notice the semicolon. The script uses this to parse between the two arguments.

EXAMPLE ARGUMENT:
  • Status;Go
  • Status;Stop

You can tag one or multiple LCD displays. To tag an LCD display add [tag-name] in the name of the LCD.

Refrain from using spaces in the tag name. There is currently a bug where the script does a pattern match on the tag name, not an exact lookup. Though at the same time this bug can be used to change multiple LCDs at the same time while still being able to change just one.

An example would be LCD displays with [status 1] & [status 2]. If you run the command status;go it would change both displays. If you run status 1;go it would change just the first LCD.


Currently, the script is configured with three images/commands. You can duplicate code segments to add as many arguments/images as you want.

string warText = "Warning"; //Update warText to your own variable name.
string[] warning = {"No Entry"}; //Update warning to your own variable name. Update "No Entry" to your own LCD image (custom images work too).
else if( "warning".Equals(argument, StringComparison.InvariantCultureIgnoreCase) ){ target = new List<string>(warning); text = warText; Echo("Display with tag: " + idText + ", updated to " + warText + " status"); //Update the variable warText to match what you set in the first code excerpt. //Update the variable warning to match what you set in the second code excerpt.

Join us on Discord[discord.gg] or find us online[vvarmachine.com].

As of June 22, 2023 this script is still working correctly.