示例#1
0
 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;
 }
示例#2
0
 public DisplayShip(DisplayLcd DisplayLcd)
 {
     this.DisplayLcd = DisplayLcd;
 }
示例#3
0
 public DisplayMachine(DisplayLcd DisplayLcd)
 {
     this.DisplayLcd = DisplayLcd;
 }
示例#4
0
 public DisplayDrill(DisplayLcd DisplayLcd)
 {
     this.DisplayLcd = DisplayLcd;
 }
示例#5
0
 public DisplayTank(DisplayLcd DisplayLcd)
 {
     this.DisplayLcd = DisplayLcd;
 }
示例#6
0
 public DisplayPower(DisplayLcd DisplayLcd)
 {
     this.DisplayLcd = DisplayLcd;
 }
示例#7
0
 public DisplayInventory(DisplayLcd DisplayLcd)
 {
     this.DisplayLcd = DisplayLcd;
 }