private void OnGUI() { if (KCT_Utilities.CurrentGameIsMission()) { return; } try { if (!GUIExceptionThrown) { KCT_GUI.SetGUIPositions(); } else { DateTime CurrentTime = DateTime.Now; if (CurrentTime > GUIExceptionTime.AddSeconds(10)) { GUIExceptionThrown = false; } } } catch (Exception e) { Log.Error(e.Message); Log.Error(e.StackTrace); GUIExceptionThrown = true; GUIExceptionTime = DateTime.Now; } }
private void OnGUI() { if (KCT_Utilities.CurrentGameIsMission()) { return; } KCT_GUI.SetGUIPositions(); }
private void OnGUI() { /* 1.4 Addition * if (KCT_Utilities.CurrentGameIsMission()) * { * return; * } */ KCT_GUI.SetGUIPositions(); }
private void OnGUI() { #if KSP1_4 // 1.4 Addition if (KCT_Utilities.CurrentGameIsMission()) { return; } #endif KCT_GUI.SetGUIPositions(); }
private void OnGUI() { if (KCT_Utilities.CurrentGameIsMission()) { return; } if (!GuiInit) { KCT_GUI.InitBuildListVars(); KCT_GUI.InitBuildPlans(); GuiInit = true; } KCT_GUI.SetGUIPositions(); }
internal void OnGUI() { if (Utilities.CurrentGameIsMission()) { return; } if (!_isGUIInitialized) { KCT_GUI.InitBuildListVars(); KCT_GUI.InitBuildPlans(); KCT_GUI.InitDevPartsToggle(); _isGUIInitialized = true; } KCT_GUI.SetGUIPositions(); }
private void OnGUI() { #if KSP1_4 // 1.4 Addition if (KCT_Utilities.CurrentGameIsMission()) { return; } #endif if (!GuiInit) { KCT_GUI.InitBuildListVars(); KCT_GUI.InitBuildPlans(); GuiInit = true; } KCT_GUI.SetGUIPositions(); }
private void OnDraw() { KCT_GUI.SetGUIPositions(OnWindow); }