Пример #1
0
        public ConfigurationWindow(
            NavballSettings navballSettings)
        {
            var screenSafeUi = References.Instance.ScreenSafeUi;
            var rightX = screenSafeUi.rightAnchor.bottom.position.x;
            var leftX = screenSafeUi.leftAnchor.bottom.position.x;
            _navballRightLimit = rightX - (rightX / 5);
            _navballLeftLimit = leftX + (rightX / 6f);

            _settings = navballSettings;

            _windowPos = new Rect(
                _windowPos.x + _windowPos.width,
                _windowPos.y,
                _windowWidth,
                _windowHeight);

            //BuildColourPickerTexture();
        }
Пример #2
0
        public ConfigurationWindow(
            NavballSettings navballSettings)
        {
            var screenSafeUi = References.Instance.ScreenSafeUi;
            var rightX       = screenSafeUi.rightAnchor.bottom.position.x;
            var leftX        = screenSafeUi.leftAnchor.bottom.position.x;

            _navballRightLimit = rightX - (rightX / 5);
            _navballLeftLimit  = leftX + (rightX / 6f);

            _settings = navballSettings;

            _windowPos = new Rect(
                _windowPos.x + _windowPos.width,
                _windowPos.y,
                _windowWidth,
                _windowHeight);

            //BuildColourPickerTexture();
        }
Пример #3
0
        public void Start()
        {
            _navballSettings = new NavballSettings();
            _navballSettings.Load();

            _calculationStore = new CalculationStore();

            //BuildEnhancedNavBall();
            CreateManueverPlane();
            BuildGhostingLayer();

            _configWindow = new ConfigurationWindow(_navballSettings);
            LoadFromSettings();

            _configWindow.BuildIcon();

            //TestPlane();
        }