Пример #1
0
 public FlightPlanner(PrincipiaPluginAdapter adapter,
                      IntPtr plugin) : base(adapter)
 {
     adapter_            = adapter;
     plugin_             = plugin;
     window_rectangle_.x = UnityEngine.Screen.width / 2;
     window_rectangle_.y = UnityEngine.Screen.height / 3;
     final_time_         = new DifferentialSlider(
         label: "Plan length",
         unit: null,
         log10_lower_rate: Log10TimeLowerRate,
         log10_upper_rate: Log10TimeUpperRate,
         min_value: 10,
         max_value: double.PositiveInfinity,
         formatter: value =>
         FormatPositiveTimeSpan(
             TimeSpan.FromSeconds(
                 value - plugin_.FlightPlanGetInitialTime(
                     vessel_.id.ToString()))));
 }
Пример #2
0
 public FlightPlanner(PrincipiaPluginAdapter adapter,
            IntPtr plugin)
     : base(adapter)
 {
     adapter_ = adapter;
     plugin_ = plugin;
     window_rectangle_.x = UnityEngine.Screen.width / 2;
     window_rectangle_.y = UnityEngine.Screen.height / 3;
     final_time_ = new DifferentialSlider(
     label            : "Plan length",
     unit             : null,
     log10_lower_rate : Log10TimeLowerRate,
     log10_upper_rate : Log10TimeUpperRate,
     min_value        : 10,
     max_value        : double.PositiveInfinity,
     formatter        : value =>
         FormatPositiveTimeSpan(
             TimeSpan.FromSeconds(
                 value - plugin_.FlightPlanGetInitialTime(
                             vessel_.id.ToString()))));
 }