protected override void ReadData(DataBuffer buf, FileFormat fmt) { WheelDamageEffect = buf.ReadFloat(); Engine = buf.ReadByte(); Wheels = buf.ReadArray <WheelStatus>(NumWheels); Doors = buf.ReadArray <DoorStatus>(NumDoors); buf.Skip(1); int lightStatus = buf.ReadInt32(); int panelStatus = buf.ReadInt32(); Field24h = buf.ReadInt32(); Lights.Clear(); for (int i = 0; i < NumLights; i++) { Lights.Add((LightStatus)(lightStatus & 0x3)); lightStatus >>= 2; } Panels.Clear(); for (int i = 0; i < NumPanels; i++) { Panels.Add((PanelStatus)(panelStatus & 0xF)); panelStatus >>= 4; } Debug.Assert(buf.Offset == SizeOfType <DamageManager>()); }
public void SetPanels() { Panels.Clear(); Panels.Add(MainPanel); //Panels.Add(HUDPanel); //Panels.Add(MessagePanel); }
public int Clear() { int count = Panels.Count(); Panels.Clear(); return(count); }
public void ClearDevices() { foreach (var panel in Panels) { panel.Stop(); } Panels.Clear(); }
private void FillPanels(IEnumerable <PanelAKR> panels) { Panels.Clear(); foreach (var item in panels) { PanelAkrView panelView = new PanelAkrView(item); Panels.Add(panelView); } }
// 销毁UI public override void DoDestroy() { base.DoDestroy(); BaseScreenMgr.Callback_OnSetPlayerBase -= OnSetPlayerBase; Panels.Clear(); Mutexers.Clear(); UpdateControls.Clear(); FixedUpdateControls.Clear(); }
public void Clear() { if (ObjectInspector != null) { foreach (var propertiesNode in PropertiesNodes) { ObjectInspector.DeleteNode(propertiesNode, true); } } PropertiesNodes.Clear(); Panels.Clear(); Controls.Clear(); }
private void OnDisable() { Panels.Clear(); }
internal void ResetPanels() { Panels.Clear(); }