Installa Steam
Accedi
|
Lingua
简体中文 (cinese semplificato)
繁體中文 (cinese tradizionale)
日本語 (giapponese)
한국어 (coreano)
ไทย (tailandese)
Български (bulgaro)
Čeština (ceco)
Dansk (danese)
Deutsch (tedesco)
English (inglese)
Español - España (spagnolo - Spagna)
Español - Latinoamérica (spagnolo dell'America Latina)
Ελληνικά (greco)
Français (francese)
Indonesiano
Magyar (ungherese)
Nederlands (olandese)
Norsk (norvegese)
Polski (polacco)
Português (portoghese - Portogallo)
Português - Brasil (portoghese brasiliano)
Română (rumeno)
Русский (russo)
Suomi (finlandese)
Svenska (svedese)
Türkçe (turco)
Tiếng Việt (vietnamita)
Українська (ucraino)
Segnala un problema nella traduzione
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);
}
}