コード例 #1
0
 public override void EnableGauges(GaugeSet set)
 {
     foreach (int id in set)
     {
         set.SetGaugeEnabled(id, true);
     }
 }
コード例 #2
0
 protected void SetGaugeEnabled(GaugeSet set, int windowId, bool enabled)
 {
     if (gauges.ContainsId(windowId))
     {
         set.SetGaugeEnabled(windowId, enabled);
         if (set.IsCurrentGaugeSet())
         {
             gauges.SetGaugeEnabled(windowId, enabled);
         }
     }
 }
コード例 #3
0
            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);
                }
            }
コード例 #4
0
ファイル: LaunchLayout.cs プロジェクト: cerebrate/NanoGauges
 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);
 }
コード例 #5
0
 public void SetGaugeEnabled(int id, bool enabled)
 {
     currentGaugeSet.SetGaugeEnabled(id, enabled);
 }
コード例 #6
0
 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);
 }