Installera Steam
logga in
|
språk
简体中文 (förenklad kinesiska)
繁體中文 (traditionell kinesiska)
日本語 (japanska)
한국어 (koreanska)
ไทย (thailändska)
Български (bulgariska)
Čeština (tjeckiska)
Dansk (danska)
Deutsch (tyska)
English (engelska)
Español – España (spanska – Spanien)
Español – Latinoamérica (spanska – Latinamerika)
Ελληνικά (grekiska)
Français (franska)
Italiano (italienska)
Bahasa Indonesia (indonesiska)
Magyar (ungerska)
Nederlands (nederländska)
Norsk (norska)
Polski (polska)
Português (portugisiska – Portugal)
Português – Brasil (portugisiska – Brasilien)
Română (rumänska)
Русский (ryska)
Suomi (finska)
Türkçe (turkiska)
Tiếng Việt (vietnamesiska)
Українська (ukrainska)
Rapportera problem med översättningen
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);
}
}