コード例 #1
0
        public override void SetVisible(bool newValue)
        {
            base.SetVisible(newValue);

            if (!newValue)
            {
                settingsWindow.SetVisible(false);
                helpWindow.SetVisible(false);
            }
        }
コード例 #2
0
 public override void SetVisible(bool newValue)
 {
     base.SetVisible(newValue);
     if (!newValue)
     {
         settingsWindow.SetVisible(false);
         helpWindow.SetVisible(false);
         foreach (ResourcePartMap part in EnumerateSelectedParts()) // hide automatic highlights when the window is closed
         {
             if (!part.isHighlighted)
             {
                 part.part.SetHighlightDefault();
             }
         }
     }
 }