private static Rect UpdateList(int id, Rect rect, string text) { #if !DUMMY win = null; if (!winList.TryGetValue(id, out win)) { win = new CTBWin(id, rect, text, text); winList.Add(id, win); } if (HighLogic.LoadedSceneIsEditor) win.PreventEditorClickthrough(rect); if (HighLogic.LoadedSceneIsFlight || HighLogic.LoadedSceneHasPlanetarium) win.PreventInFlightClickthrough(rect); win.lastUpdated = CBTMonitor.timeTics; // Planetarium.GetUniversalTime(); #endif return rect; }
static CTBWin UpdateList(int id, Rect r, string text) { CTBWin win = null; if (!winList.TryGetValue(id, out win)) { win = new CTBWin(id, r, text, text); winList.Add(id, win); } if (HighLogic.LoadedSceneIsEditor) { win.PreventEditorClickthrough(); } if (HighLogic.LoadedSceneIsFlight || HighLogic.LoadedSceneHasPlanetarium) { win.PreventInFlightClickthrough(); } win.rect = r; return(win); }