Exemple #1
0
 public GuiRenderer(GuiManager manager)
 {
     this.guiManager         = manager;
     GuiRenderer.windowStyle = new GUIStyle(HighLogic.get_Skin().get_window());
     GuiRenderer.tabStyle    = new GUIStyle(HighLogic.get_Skin().get_window());
     this.planetShine        = PlanetShine.PlanetShine.Instance;
 }
Exemple #2
0
 public void Awake()
 {
     if (Object.op_Inequality((Object)PlanetShine.PlanetShine.Instance, (Object)null))
     {
         Object.Destroy((Object)((Component)PlanetShine.PlanetShine.Instance).get_gameObject());
     }
     PlanetShine.PlanetShine.Instance = this;
 }
Exemple #3
0
 public bool Render(PlanetShine.PlanetShine planetShine)
 {
     // ISSUE: method pointer
     GuiRenderer.configWindowPosition = GUILayout.Window(143751300, GuiRenderer.configWindowPosition, new GUI.WindowFunction((object)this, __methodptr(OnConfigWindow)), "PlanetShine v" + PlanetShine.PlanetShine.CurVersion + " - Beta", GuiRenderer.windowStyle, new GUILayoutOption[0]);
     if (this.config.debug && Object.op_Inequality((Object)PlanetShine.PlanetShine.Instance, (Object)null))
     {
         // ISSUE: method pointer
         GuiRenderer.debugWindowPosition = GUILayout.Window(143751301, GuiRenderer.debugWindowPosition, new GUI.WindowFunction((object)this, __methodptr(OnDebugWindow)), "--- PLANETSHINE DEBUG ---", GuiRenderer.windowStyle, new GUILayoutOption[0]);
     }
     if (this.updateCounter % 100 == 0)
     {
         ConfigManager.Instance.SaveSettings();
     }
     ++this.updateCounter;
     return(true);
 }