public override void EnableGauges(GaugeSet set) { foreach (int id in set) { set.SetGaugeEnabled(id, true); } }
protected void SetGaugeEnabled(GaugeSet set, int windowId, bool enabled) { if (gauges.ContainsId(windowId)) { set.SetGaugeEnabled(windowId, enabled); if (set.IsCurrentGaugeSet()) { gauges.SetGaugeEnabled(windowId, enabled); } } }
private void ReadGaugesEnabled(BinaryReader reader, GaugeSet set) { Log.Info("loading window enabled/disabled states"); int count = reader.ReadInt16(); Log.Detail("loading " + count + " gauge states"); for (int i = 0; i < count; i++) { int id = reader.ReadInt32(); bool enabled = reader.ReadBoolean(); set.SetGaugeEnabled(id, enabled); } }
public override void EnableGauges(GaugeSet set) { foreach (int id in set) { set.SetGaugeEnabled(id, false); } // set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_SETS, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_INDICATOR, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_CAM, true); // set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_BIOME, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_LATITUDE, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_LONGITUDE, true); // set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_G, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_VACCL, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_HACCL, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_ACCL, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_ATM, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_ISPE, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_DISP, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_TWR, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_THRUST, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_MASS, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_TIMETOAPA, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_APA, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_VAI, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_VVI, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_MACH, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_SPD, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_VSI, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_ALTIMETER, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_VT, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_RADAR_ALTIMETER, true); // set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_FUEL, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_OXID, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_FLOW, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_SRB, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_AIRIN, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_AIRPCT, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_PROPELLANT, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_Q, true); }
public void SetGaugeEnabled(int id, bool enabled) { currentGaugeSet.SetGaugeEnabled(id, enabled); }
public override void EnableGauges(GaugeSet set) { foreach (int id in set) { set.SetGaugeEnabled(id, false); } // set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_BIOME, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_LATITUDE, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_LONGITUDE, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_SETS, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_INDICATOR, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_CAM, true); // set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_ORBIT, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_INCL, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_TIMETOPEA, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_TIMETOAPA, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_APA, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_PEA, true); // set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_FUEL, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_OXID, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_EVAMP, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_MONO, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_AMP, true); set.SetGaugeEnabled(Constants.WINDOW_ID_GAUGE_CHARGE, true); }