Пример #1
0
 public void setController(IGUIController controller)
 {
     this.controller = controller;
     m_CruiseControl.setController(controller);
     m_FBWControl.setController(controller);
     if (controller.currentAutopilot == Autopilots.DISABLED)
     {
         m_SpeedControlPanel.setTransparent();
         m_CruiseControl.hide();
         m_FBWControl.hide();
     }
     else if (controller.currentAutopilot == Autopilots.FLYBYWIRE)
     {
         m_CruiseControl.hide();
     }
     else if (controller.currentAutopilot == Autopilots.MOUSEDIR)
     {
         m_CruiseControl.hide();
         m_FBWControl.hide();
     }
     else if (controller.currentAutopilot == Autopilots.CRUISECTRL)
     {
         m_FBWControl.hide();
     }
     m_CruiseControl.m_AltitudeControlToggle.isOn  = false;
     m_CruiseControl.m_AltitudeControlSlider.value = Mathf.Clamp(Mathf.Round(controller.vesselAltitude / 500f), 0.0f, 50.0f);
     updateGUI();
 }
Пример #2
0
 internal void hide()
 {
     fader.setTransparent();
 }