Ejemplo n.º 1
0
 void InitializeGUI()
 {
     permaPruneWindow = this.gameObject.AddComponent <PermaPruneWindow>();
     modFilterWindow  = this.gameObject.AddComponent <ModFilterWindow>();
     showBlocked      = this.gameObject.AddComponent <ShowBlocked>();
     showRenamed      = this.gameObject.AddComponent <ShowRenamed>();
 }
Ejemplo n.º 2
0
        private void IconHover(EditorPartIcon icon, bool hover)
        {
            Log.Info("IconHover,  ExtendedInput.GetKey(GameSettings.MODIFIER_KEY.primary): " + ExtendedInput.GetKey(GameSettings.MODIFIER_KEY.primary).ToString());
            if (HighLogic.CurrentGame.Parameters.CustomParams <JanitorsClosetSettings>().showMod ||
                ExtendedInput.GetKey(GameSettings.MODIFIER_KEY.primary) || ExtendedInput.GetKey(GameSettings.MODIFIER_KEY.secondary))
            {
                string mod = ModFilterWindow.FindPartMod(icon.partInfo);

                drawTooltip = true;
                if (hover)
                {
                    tooltip = mod;
                }
                else
                {
                    tooltip = "";
                }
            }
            else
            {
                tooltip = "";
            }
        }