private void updateWindow(int id) { ReflectionManager manager = ReflectionManager.Instance; bool galaxy = manager.renderGalaxy; bool atmo = manager.renderAtmo; bool scaled = manager.renderScaled; bool scenery = manager.renderScenery; GUILayout.BeginVertical(); manager.reflectionsEnabled = addButtonRowToggle("Reflections Enabled", manager.reflectionsEnabled); manager.renderGalaxy = addButtonRowToggle("Render Galaxy", galaxy); manager.renderAtmo = addButtonRowToggle("Render Atmo", atmo); manager.renderScaled = addButtonRowToggle("Render Scaled", scaled); manager.renderScenery = addButtonRowToggle("Render Scenery", scenery); TexturesUnlimitedLoader.alternateRender = addButtonRowToggle("Alternate Render", TexturesUnlimitedLoader.alternateRender); manager.eveInstalled = addButtonRowToggle("Eve Fix", manager.eveInstalled); if (GUILayout.Button("Toggle Debug Sphere")) { manager.toggleDebugSphere(); } if (GUILayout.Button("Force Reflection Probe Update")) { manager.forceReflectionUpdate(); } if (GUILayout.Button("Export Debug Cube Maps")) { manager.renderDebugCubes(); } if (GUILayout.Button("Export Debug Cube Layer")) { manager.renderDebugLayers(); } if (GUILayout.Button("Dump world data")) { Utils.dumpWorldHierarchy(); } if (GUILayout.Button("Dump cam data")) { Utils.dumpCameraData(); } if (GUILayout.Button("Dump Stock Refl Data")) { Utils.dumpReflectionData(); } if (GUILayout.Button("Dump model UV Maps")) { TexturesUnlimitedLoader.dumpUVMaps(true); } if (GUILayout.Button("Calculate Normalization Data")) { NormMaskCreation.processBatch(); } GUILayout.EndVertical(); }
private void updateWindow(int id) { ReflectionManager manager = ReflectionManager.Instance; bool galaxy = manager.renderGalaxy; bool atmo = manager.renderAtmo; bool scaled = manager.renderScaled; bool scenery = manager.renderScenery; GUILayout.BeginVertical(); manager.reflectionsEnabled = addButtonRowToggle("Reflections Enabled", manager.reflectionsEnabled); manager.renderGalaxy = addButtonRowToggle("Render Galaxy", galaxy); manager.renderAtmo = addButtonRowToggle("Render Atmo", atmo); manager.renderScaled = addButtonRowToggle("Render Scaled", scaled); manager.renderScenery = addButtonRowToggle("Render Scenery", scenery); manager.eveInstalled = addButtonRowToggle("Eve Fix", manager.eveInstalled); if (GUILayout.Button("Toggle Debug Sphere")) { manager.toggleDebugSphere(); } if (GUILayout.Button("Force Reflection Probe Update")) { manager.forceReflectionUpdate(); } if (GUILayout.Button("Export Debug Cube Maps")) { manager.renderDebugCubes(); } if (GUILayout.Button("Export Debug Cube Layer")) { manager.renderDebugLayers(); } if (GUILayout.Button("Dump world data")) { manager.dumpWorldHierarchy(); } if (GUILayout.Button("Dump cam data")) { manager.dumpCameraData(); } GUILayout.EndVertical(); }
private void updateWindow(int id) { ReflectionManager manager = ReflectionManager.Instance; bool galaxy = manager.renderGalaxy; bool atmo = manager.renderAtmo; bool scaled = manager.renderScaled; bool scenery = manager.renderScenery; GUILayout.BeginVertical(); manager.reflectionsEnabled = addButtonRowToggle("Reflections Enabled", manager.reflectionsEnabled); manager.renderGalaxy = addButtonRowToggle("Render Galaxy", galaxy); manager.renderAtmo = addButtonRowToggle("Render Atmo", atmo); manager.renderScaled = addButtonRowToggle("Render Scaled", scaled); manager.renderScenery = addButtonRowToggle("Render Scenery", scenery); manager.eveInstalled = addButtonRowToggle("Eve Fix", manager.eveInstalled); int len = manager.renderStack.Count; ReflectionManager.ReflectionPass pass; int incIndex = -1; int decIndex = -1; for (int i = 0; i < len; i++) { pass = manager.renderStack[i]; bool minus = addButtonRow(pass.ToString(), "-"); if (minus) { decIndex = i; } bool plus = addButtonRow(pass.ToString(), "+"); if (plus) { incIndex = i; } } if (incIndex > 0) { pass = manager.renderStack[incIndex]; manager.renderStack.RemoveAt(incIndex); manager.renderStack.Insert(incIndex - 1, pass); } if (decIndex >= 0 && decIndex < len - 1) { pass = manager.renderStack[decIndex]; manager.renderStack.RemoveAt(decIndex); manager.renderStack.Insert(decIndex + 1, pass); } if (GUILayout.Button("Toggle Debug Sphere")) { manager.toggleDebugSphere(); } if (GUILayout.Button("Force Reflection Probe Update")) { manager.updateReflections(true); } if (GUILayout.Button("Export Debug Cube Maps")) { manager.renderDebugCubes(); } if (GUILayout.Button("Export Debug Cube Layer")) { manager.renderDebugLayers(); } if (GUILayout.Button("Dump world data")) { manager.dumpWorldHierarchy(); } if (GUILayout.Button("Dump cam data")) { manager.dumpCameraData(); } GUILayout.EndVertical(); }