public override void PreClose() { base.PreClose(); console.OnDestroyed -= OnConsoleDestroyed; console = null; }
public static UI_PowerNetConsole Open(Building_PowerNetConsole cons) { var created = new UI_PowerNetConsole(cons); Find.WindowStack?.Add(created); return(created); }
private UI_PowerNetConsole(Building_PowerNetConsole cons) { this.console = cons; cons.OnDestroyed += OnConsoleDestroyed; resizeable = true; doCloseX = true; draggable = true; drawShadow = true; onlyOneOfTypeAllowed = true; absorbInputAroundWindow = false; preventCameraMotion = false; }