Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 private void updateWindow(int id)
 {
     GUILayout.BeginVertical();
     if (addButtonRow("Dump ReflectionData"))
     {
         Utils.dumpReflectionData();
     }
     if (addButtonRow("Export UV and Model Data"))
     {
         TexturesUnlimitedLoader.dumpUVMaps(true);
     }
     GUILayout.EndVertical();
 }