예제 #1
0
        public void Awake()
        {
            GameEvents.onShowUI.Add(ShowUI);
            GameEvents.onHideUI.Add(HideUI);

            planeConfig  = Settings.CurrentPlaneConfig;
            landerConfig = Settings.CurrentLanderConfig;

            descentRateFactorExp     = (float)Math.Log10(planeConfig.DescentRateFactor);
            tooLowGearAltitudeString = planeConfig.TooLowGearAltitude.ToString();

            touchDownSpeedString = landerConfig.TouchDownSpeed.ToString();
            horizontalSpeedCheckAltitudeString = landerConfig.HorizontalSpeedCheckAltitude.ToString();

            showConfigs = Settings.showConfigs;

            vesselType = SimpleTypes.VesselType.NONE;
        }
예제 #2
0
        public void Awake()
        {
            GameEvents.onShowUI.Add(ShowUI);
            GameEvents.onHideUI.Add(HideUI);

            PlaneConfig = Settings.PlaneConfig;
            LanderConfig = Settings.LanderConfig;

            descentRateFactorExp = (float)Math.Log10(PlaneConfig.DescentRateFactor);
            tooLowGearAltitudeString = PlaneConfig.TooLowGearAltitude.ToString();

            touchDownSpeedString = LanderConfig.TouchDownSpeed.ToString();
            horizontalSpeedCheckAltitudeString = LanderConfig.HorizontalSpeedCheckAltitude.ToString();

            showConfigs = Settings.showConfigs;

            vesselType = SimpleTypes.VesselType.NONE;
        }
예제 #3
0
        private void WindowFunc(int windowID)
        {
            planeConfig  = Settings.CurrentPlaneConfig;
            landerConfig = Settings.CurrentLanderConfig;
            ConfigureStyles();

            // begin drawing
            GUILayout.BeginHorizontal();
            GUILayout.BeginVertical();
            {
                GUILayout.Box(Util.audio.GetKindOfSoundRTF(), boxStyle, GUILayout.Height(30));

                drawConfigUI();
            }
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();

            GUI.DragWindow();   // allow moving window
        }
예제 #4
0
        private void WindowFunc(int windowID)
        {
            planeConfig  = Settings.PlaneConfig;
            landerConfig = Settings.LanderConfig;

            // Following now done one time in the RegisterToolbar method
            //ConfigureStyles();

            // begin drawing
            GUILayout.BeginHorizontal();
            GUILayout.BeginVertical();
            {
                GUILayout.Box(Util.audio.GetKindOfSoundRTF(), boxStyle, GUILayout.Height(30));

                drawConfigUI();
            }
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();

            GUI.DragWindow();   // allow moving window
        }
예제 #5
0
        private void WindowFunc(int windowID)
        {
            PlaneConfig = Settings.PlaneConfig;
            LanderConfig = Settings.LanderConfig;
            ConfigureStyles();

            // begin drawing
            GUILayout.BeginHorizontal();
            GUILayout.BeginVertical();
            {
                GUILayout.Box(Util.audio.GetKindOfSoundRTF(), boxStyle, GUILayout.Height(30));

                drawConfigUI();
            }
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();

            GUI.DragWindow();   // allow moving window
        }