Instalează Steam
conectare
|
limbă
简体中文 (chineză simplificată)
繁體中文 (chineză tradițională)
日本語 (japoneză)
한국어 (coreeană)
ไทย (thailandeză)
български (bulgară)
Čeština (cehă)
Dansk (daneză)
Deutsch (germană)
English (engleză)
Español - España (spaniolă - Spania)
Español - Latinoamérica (spaniolă - America Latină)
Ελληνικά (greacă)
Français (franceză)
Italiano (italiană)
Bahasa Indonesia (indoneziană)
Magyar (maghiară)
Nederlands (neerlandeză)
Norsk (norvegiană)
Polski (poloneză)
Português (portugheză - Portugalia)
Português - Brasil (portugheză - Brazilia)
Русский (rusă)
Suomi (finlandeză)
Svenska (suedeză)
Türkçe (turcă)
Tiếng Việt (vietnameză)
Українська (ucraineană)
Raportează o problemă de traducere
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);
}
}