Exemple #1
0
        private void ChangeThemeToggle(object sender, EventArgs e)
        {
            if (!isBarOnScreen)
            {
                return;
            }

            if (theme1)
            {
                ChangeThemeButton1.FadeTo(0, 200);
                ChangeThemeButton2.FadeTo(1, 200);

                theme1 = false;
            }
            else
            {
                ChangeThemeButton2.FadeTo(0, 200);
                ChangeThemeButton1.FadeTo(1, 200);

                theme1 = true;
            }

            if (theme.Equals("image"))
            {
                theme = "imageHD";
            }
            else
            {
                theme = "image";
            }
        }
Exemple #2
0
        private void loadBottomBarTexture()
        {
            bottombartoggle.Source       = ImageSource.FromResource("Horizon.Assets.BottomBar.uparrow.png", typeof(Camera3D).GetTypeInfo().Assembly);
            ChangeThemeButton1.Source    = ImageSource.FromResource("Horizon.Assets.BottomBar.Theme1.png", typeof(Camera3D).GetTypeInfo().Assembly);
            ChangeThemeButton2.Source    = ImageSource.FromResource("Horizon.Assets.BottomBar.Theme2.png", typeof(Camera3D).GetTypeInfo().Assembly);
            rocketLabelImage.Source      = ImageSource.FromResource("Horizon.Assets.Rocket.rocketLaunch.png", typeof(Camera3D).GetTypeInfo().Assembly);
            SwitchJoystickButton1.Source = ImageSource.FromResource("Horizon.Assets.CustomButton.controllerSwitch.png", typeof(Camera3D).GetTypeInfo().Assembly);
            SwitchJoystickButton2.Source = ImageSource.FromResource("Horizon.Assets.CustomButton.controllerSwitch2.png", typeof(Camera3D).GetTypeInfo().Assembly);
            GPSMode1.Source          = ImageSource.FromResource("Horizon.Assets.BottomBar.gpsEnabled.png", typeof(Camera3D).GetTypeInfo().Assembly);
            GPSMode2.Source          = ImageSource.FromResource("Horizon.Assets.BottomBar.gpsDisabled.png", typeof(Camera3D).GetTypeInfo().Assembly);
            rocketButton.ImageSource = ImageSource.FromResource("Horizon.Assets.BottomBar.earth.png", typeof(Camera3D).GetTypeInfo().Assembly);

            bottombartoggle.ScaleTo(0.7);
            ChangeThemeButton1.ScaleTo(0.7);
            ChangeThemeButton2.ScaleTo(0.7);
            SwitchJoystickButton1.ScaleTo(0.7);
            SwitchJoystickButton2.ScaleTo(0.7);
            GPSMode1.ScaleTo(0.7);
            GPSMode2.ScaleTo(0.7);

            normalGPSRadio.FadeTo(0, 0);
            customGPSRadio.FadeTo(0, 0);

            normalGPSLabel.FadeTo(0, 0);
            customGPSLabel.FadeTo(0, 0);

            latitudeLabel.FadeTo(0, 0);
            longitudeLabel.FadeTo(0, 0);
            latitudeText.FadeTo(0, 0);
            longitudeText.FadeTo(0, 0);

            cancelLabel.FadeTo(0, 0);
            applyLabel.FadeTo(0, 0);

            ChangeThemeButton2.FadeTo(0, 0);
            if (positionLoaded)
            {
                GPSMode2.FadeTo(0, 0);
            }
            else
            {
                GPSMode1.FadeTo(0, 0);
            }
            if (sensorExists)
            {
                SwitchJoystickButton2.FadeTo(0, 0);
            }
            else
            {
                SwitchJoystickButton1.FadeTo(0, 0);
            }
        }
Exemple #3
0
 private void loadBottomBarTexture()
 {
     bottombartoggle.Source    = ImageSource.FromResource("Horizon.Assets.BottomBar.uparrow.png", typeof(Camera2D).GetTypeInfo().Assembly);
     backBtn.Source            = ImageSource.FromResource("Horizon.Assets.BottomBar.backarrow.png", typeof(Camera2D).GetTypeInfo().Assembly);
     stopBtn.Source            = ImageSource.FromResource("Horizon.Assets.BottomBar.pause.png", typeof(Camera2D).GetTypeInfo().Assembly);
     resetBtn.Source           = ImageSource.FromResource("Horizon.Assets.BottomBar.hourglass.png", typeof(Camera2D).GetTypeInfo().Assembly);
     forwardBtn.Source         = ImageSource.FromResource("Horizon.Assets.BottomBar.notbackarrow.png", typeof(Camera2D).GetTypeInfo().Assembly);
     ChangeThemeButton1.Source = ImageSource.FromResource("Horizon.Assets.BottomBar.Theme1.png", typeof(Camera2D).GetTypeInfo().Assembly);
     ChangeThemeButton2.Source = ImageSource.FromResource("Horizon.Assets.BottomBar.Theme2.png", typeof(Camera2D).GetTypeInfo().Assembly);
     bottombartoggle.ScaleTo(0.7);
     backBtn.ScaleTo(0.7);
     stopBtn.ScaleTo(0.7);
     resetBtn.ScaleTo(0.7);
     forwardBtn.ScaleTo(0.7);
     ChangeThemeButton1.ScaleTo(0.7);
     ChangeThemeButton2.ScaleTo(0.7);
     ChangeThemeButton2.FadeTo(0, 0);
 }