private void RunLcd() { lcds.List.ForEach(delegate(IMyTextPanel lcd) { if (lcd.CustomData != null && !lcd.CustomData.Equals("")) { MyIniParseResult result; MyIni MyIni = new MyIni(); MyIni.TryParse(lcd.CustomData, out result); if (MyIni.ContainsSection("Inventory") || lcd.CustomData.Trim().Equals("prepare")) { DisplayLcd displayLcd; if (displayLcds.ContainsKey(lcd.EntityId)) { displayLcd = displayLcds[lcd.EntityId]; } else { displayLcd = new DisplayLcd(this, lcd); displayLcds.Add(lcd.EntityId, displayLcd); } displayLcd.Load(MyIni); displayLcd.Draw(); } } }); ForceUpdate = false; }
public DisplayShip(DisplayLcd DisplayLcd) { this.DisplayLcd = DisplayLcd; }
public DisplayMachine(DisplayLcd DisplayLcd) { this.DisplayLcd = DisplayLcd; }
public DisplayDrill(DisplayLcd DisplayLcd) { this.DisplayLcd = DisplayLcd; }
public DisplayTank(DisplayLcd DisplayLcd) { this.DisplayLcd = DisplayLcd; }
public DisplayPower(DisplayLcd DisplayLcd) { this.DisplayLcd = DisplayLcd; }
public DisplayInventory(DisplayLcd DisplayLcd) { this.DisplayLcd = DisplayLcd; }