From 1dff361f177c8fb6fabdf699384986a7784486f4 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 21 Oct 2025 21:01:10 -0400 Subject: Rearrange graphical options Signed-off-by: Andrew Opalach --- Plugin.cs | 112 +++++++++++++++++++++++++++++++------------------------------- 1 file 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(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(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) -- cgit v1.2.3-101-g0448