コード例 #1
0
 private void UpdateActiveVessel()
 {
     _vessel = FlightGlobals.ActiveVessel.GetComponent <CLSVesselModule>().CLSVessel;
     if (!WindowVisable || WindowSelectedSpace <= -1)
     {
         return;
     }
     _vessel.Highlight(false);
     _vessel.Spaces[CLSAddon.WindowSelectedSpace].Highlight(true);
 }
コード例 #2
0
        void onAppLaunchToggleOff()
        {
            if (null != this.vessel)
            {
                vessel.Highlight(false);
            }
            this.selectedSpace = -1;
            this.stockToolbarButton.SetTexture((Texture)GameDatabase.Instance.GetTexture("ConnectedLivingSpace/assets/cls_icon_off", false));

            this.visable = false;
        }
コード例 #3
0
        internal void OnCLSButtonToggle()
        {
            Log.dbg("CLSAddon::OnCLSButtonToggle");
            WindowVisable = !WindowVisable;

            if (!WindowVisable && null != _vessel)
            {
                _vessel.Highlight(false);
            }

            this.toolbarButton.Active = WindowVisable;
        }
コード例 #4
0
        internal void OnCLSButtonToggle()
        {
            //Debug.Log("CLSAddon::OnCLSButtonToggle");
            WindowVisable = !WindowVisable;

            if (!WindowVisable && null != _vessel)
            {
                _vessel.Highlight(false);
            }

            if (EnableBlizzyToolbar)
            {
                BlizzyToolbarButton.TexturePath = WindowVisable ? "ConnectedLivingSpace/assets/cls_b_icon_on" : "ConnectedLivingSpace/assets/cls_b_icon_off";
            }
            else
            {
                _stockToolbarButton.SetTexture(GameDatabase.Instance.GetTexture(WindowVisable ? "ConnectedLivingSpace/assets/cls_icon_on" : "ConnectedLivingSpace/assets/cls_icon_off", false));
            }
        }