private void UpdateActiveVessel() { _vessel = FlightGlobals.ActiveVessel.GetComponent <CLSVesselModule>().CLSVessel; if (!WindowVisable || WindowSelectedSpace <= -1) { return; } _vessel.Highlight(false); _vessel.Spaces[CLSAddon.WindowSelectedSpace].Highlight(true); }
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; }
internal void OnCLSButtonToggle() { Log.dbg("CLSAddon::OnCLSButtonToggle"); WindowVisable = !WindowVisable; if (!WindowVisable && null != _vessel) { _vessel.Highlight(false); } this.toolbarButton.Active = WindowVisable; }
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)); } }