summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-10-21 21:01:10 -0400
committerAndrew Opalach <andrew@akon.city> 2025-10-21 21:01:10 -0400
commit1dff361f177c8fb6fabdf699384986a7784486f4 (patch)
tree729dd4824f96eb2f6e35f52a66d3a0b352a78b65
parent2202728621dcae082c16a053442bbf5441243441 (diff)
downloadNewCamera-1dff361f177c8fb6fabdf699384986a7784486f4.tar.gz
NewCamera-1dff361f177c8fb6fabdf699384986a7784486f4.tar.bz2
NewCamera-1dff361f177c8fb6fabdf699384986a7784486f4.zip
Rearrange graphical options
Signed-off-by: Andrew Opalach <andrew@akon.city>
-rwxr-xr-xPlugin.cs112
1 files changed, 56 insertions, 56 deletions
diff --git a/Plugin.cs b/Plugin.cs
index 65423a1..864ac4e 100755
--- a/Plugin.cs
+++ b/Plugin.cs
@@ -1741,62 +1741,6 @@ namespace MHWNewCamera
ImGui.Separator();
- ImGui.InputFloat("Unknown LOD Factor 1", ref unknownLod1);
- if (ImGui.BeginItemTooltip())
- {
- ImGui.Text("Default: 1.0, Best Quality: 0.0.");
- ImGui.EndTooltip();
- }
- ImGui.InputFloat("Unknown LOD Factor 2", ref unknownLod2);
- if (ImGui.BeginItemTooltip())
- {
- ImGui.Text("Seems to control whether some objects are still drawn when very far from the camera.\nDefault: 1.0, Best Quality: 0.0.");
- ImGui.EndTooltip();
- }
- ImGui.InputFloat("Foliage LOD Factor", ref foliageLodFactor);
- if (ImGui.BeginItemTooltip())
- {
- ImGui.Text("This can sometimes look a bit off when set >1.0.\nDefault: 1.0, Best Quality: 64.0.");
- ImGui.EndTooltip();
- }
- ImGui.InputFloat("Terrain/Object LOD Factor", ref terrainLodFactor);
- if (ImGui.BeginItemTooltip())
- {
- ImGui.Text("Default: 1.0, Best Quality: 64.0.");
- ImGui.EndTooltip();
- }
- bool lodsSet = areLodFactorsSet();
- bool disableLodButton = lodsSet && areLodFactorsDefault();
- if (disableLodButton)
- {
- ImGui.PushItemFlag(ImGuiItemFlags.Disabled, true);
- ImGui.PushStyleVar(ImGuiStyleVar.Alpha, ImGui.GetStyle().Alpha * 0.5f);
- lodsSet = false;
- }
- if (ImGui.Checkbox("Apply LOD Factors", ref lodsSet))
- {
- setLodFactors(lodsSet);
- config.ApplyLodFactors = lodsSet && !areLodFactorsDefault();
- if (lodsSet)
- {
- config.LodFactor1 = unknownLod1;
- config.LodFactor2 = unknownLod2;
- config.FoliageLodFactor = foliageLodFactor;
- config.TerrainLodFactor = terrainLodFactor;
- }
- ConfigManager.SaveConfig<Config>(this);
- }
- if (disableLodButton)
- {
- ImGui.PopItemFlag();
- ImGui.PopStyleVar();
- }
- if (ImGui.BeginItemTooltip())
- {
- ImGui.Text("Credit to Otis_Inf.");
- ImGui.EndTooltip();
- }
-
if (ImGui.Checkbox("2x Shadow Resolution (Requires Reload)", ref doubleShadowRes))
{
if (doubleShadowRes)
@@ -1888,6 +1832,62 @@ namespace MHWNewCamera
ImGui.EndTooltip();
}
+ ImGui.InputFloat("Unknown LOD Factor 1", ref unknownLod1);
+ if (ImGui.BeginItemTooltip())
+ {
+ ImGui.Text("Default: 1.0, Best Quality: 0.0.");
+ ImGui.EndTooltip();
+ }
+ ImGui.InputFloat("Unknown LOD Factor 2", ref unknownLod2);
+ if (ImGui.BeginItemTooltip())
+ {
+ ImGui.Text("Seems to control whether some objects are still drawn when very far from the camera.\nDefault: 1.0, Best Quality: 0.0.");
+ ImGui.EndTooltip();
+ }
+ ImGui.InputFloat("Foliage LOD Factor", ref foliageLodFactor);
+ if (ImGui.BeginItemTooltip())
+ {
+ ImGui.Text("This can sometimes look a bit off when set >1.0.\nDefault: 1.0, Best Quality: 64.0.");
+ ImGui.EndTooltip();
+ }
+ ImGui.InputFloat("Terrain/Object LOD Factor", ref terrainLodFactor);
+ if (ImGui.BeginItemTooltip())
+ {
+ ImGui.Text("Default: 1.0, Best Quality: 64.0.");
+ ImGui.EndTooltip();
+ }
+ bool lodsSet = areLodFactorsSet();
+ bool disableLodButton = lodsSet && areLodFactorsDefault();
+ if (disableLodButton)
+ {
+ ImGui.PushItemFlag(ImGuiItemFlags.Disabled, true);
+ ImGui.PushStyleVar(ImGuiStyleVar.Alpha, ImGui.GetStyle().Alpha * 0.5f);
+ lodsSet = false;
+ }
+ if (ImGui.Checkbox("Apply LOD Factors", ref lodsSet))
+ {
+ setLodFactors(lodsSet);
+ config.ApplyLodFactors = lodsSet && !areLodFactorsDefault();
+ if (lodsSet)
+ {
+ config.LodFactor1 = unknownLod1;
+ config.LodFactor2 = unknownLod2;
+ config.FoliageLodFactor = foliageLodFactor;
+ config.TerrainLodFactor = terrainLodFactor;
+ }
+ ConfigManager.SaveConfig<Config>(this);
+ }
+ if (disableLodButton)
+ {
+ ImGui.PopItemFlag();
+ ImGui.PopStyleVar();
+ }
+ if (ImGui.BeginItemTooltip())
+ {
+ ImGui.Text("Credit to Otis_Inf.");
+ ImGui.EndTooltip();
+ }
+
if (ImGui.Checkbox("Larger Foliage Sway Range", ref largerFoliageSwayRange))
{
if (largerFoliageSwayRange)