Beispiel #1
0
        void SetStockSettings()
        {
            if (activeToolbarType == ToolBarSelected.blizzy)
            {
                RemoveBlizzyButton();
            }
            // Blizzy toolbar not available, or Stock Toolbar selected Let's go stock :(
            GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady);
            GameEvents.onGUIApplicationLauncherDestroyed.Add(OnGUIAppLauncherDestroyed);
            OnGUIAppLauncherReady();

            this.toolbarIconActive   = StockToolbarIconActive;
            this.toolbarIconInactive = StockToolbarIconInactive;

            activeToolbarType = ToolBarSelected.stock;
            this.UpdateToolbarIcon();
        }
Beispiel #2
0
        void SetBlizzySettings()
        {
            if (activeToolbarType == ToolBarSelected.stock)
            {
                RemoveStockButton();
            }
            this.toolbarIconActive   = BlizzyToolbarIconActive;
            this.toolbarIconInactive = BlizzyToolbarIconInactive;

            this.engineIgnitorBlizzyButton            = ToolbarManager.Instance.add("EngineIgnitor", "engineIgnitorButton");
            this.engineIgnitorBlizzyButton.ToolTip    = ToolTip;
            this.engineIgnitorBlizzyButton.OnClick   += this.engineIgnitorButton_Click;
            this.engineIgnitorBlizzyButton.Visibility = new GameScenesVisibility(GameScenes.EDITOR, GameScenes.FLIGHT);


            activeToolbarType = ToolBarSelected.blizzy;
            this.UpdateToolbarIcon();
        }
Beispiel #3
0
        private void SetBlizzySettings()
        {
            Log.Info("SetBlizzySettings, namespace: " + nameSpace);
            if (activeToolbarType == ToolBarSelected.stock)
            {
                RemoveStockButton();
            }
            //this.toolbarIconActive = BlizzyToolbarIconActive;
            //this.toolbarIconInactive = BlizzyToolbarIconInactive;

            this.blizzyButton            = ToolbarManager.Instance.add(nameSpace, toolbarId);
            this.blizzyButton.ToolTip    = ToolTip;
            this.blizzyButton.OnClick   += this.button_Click;
            this.blizzyButton.Visibility = new TC_GameScenesVisibility(visibleInScenes);


            activeToolbarType = ToolBarSelected.blizzy;
            this.UpdateToolbarIcon();
        }