public override void SetVisible(bool newValue) { base.SetVisible(newValue); if (!newValue) { settingsWindow.SetVisible(false); helpWindow.SetVisible(false); } }
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(); } } } }