Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
A couple of things you could do, using the commands available in this script though.
1, Working command
Working {G:Group Name for your sorters}
This would provide a simple readout of your sorters showing if they are on or off
2, PropBool Command
PropBool {Name of Input Sorter} {OnOff} {Ore Sorting Input} {Enabled} {Disabled}
PropBool {Name of Output Sorter} {OnOff} {Ore Sorting Output} {Enabled} {Disabled}
This would display the text "Ore Sorting Input" and "Ore Sorting Output" for your sorter blocks along with toggling Enabled/Disabled based on their current on/off state.
It's maybe not quite as neat as you were hoping for, but without another script to change the commands listed in the custom data field, it's a workaround.
Just Run the Programmable Bock from a Button panel or something else with the text you want.
MyCommandLine _commandLine = new MyCommandLine();
public Program()
{
Runtime.UpdateFrequency = UpdateFrequency.Once;
}
public void Main(string argument)
{
if (_commandLine.TryParse(argument))
{
string lcdtext = _commandLine.Argument(0);
IMyTextPanel LCD = GridTerminalSystem.GetBlockWithName("LCDName") as IMyTextPanel;
LCD.ContentType = ContentType.TEXT_AND_IMAGE;
LCD.FontSize = 10;
LCD.Alignment = VRage.Game.GUI.TextPanel.TextAlignment.CENTER;
LCD.WriteText(lcdtext, false);
}
}
/* Simple Text to LCD script
* Just RUN this Script from any Timerblock etc. like this:
* LCDName LCDText
* or
* "LCD Name" "LCD Text"
* It's simple or not? :D */
MyCommandLine _commandLine = new MyCommandLine();
public Program()
{
Runtime.UpdateFrequency = UpdateFrequency.Once;
}
public void Main(string argument)
{
if (_commandLine.TryParse(argument))
{
string lcdname = _commandLine.Argument(0);
string lcdtext = _commandLine.Argument(1);
IMyTextPanel LCD = GridTerminalSystem.GetBlockWithName(lcdname) as IMyTextPanel;
LCD.ContentType = ContentType.TEXT_AND_IMAGE;
LCD.FontSize = 10;
LCD.Alignment = VRage.Game.GUI.TextPanel.TextAlignment.CENTER;
LCD.WriteText(lcdtext, false);
}
}