From 7cc4ce79e11f1b800dfc10f681d4e8c1198bc57b Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 20 Jun 2026 14:46:14 -0400 Subject: Scale width by font scale Signed-off-by: Andrew Opalach --- Config.cs | 2 +- Plugin.cs | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Config.cs b/Config.cs index 8367360..9c771a9 100755 --- a/Config.cs +++ b/Config.cs @@ -136,7 +136,7 @@ namespace WorldTuningTool return $"(Error: {stage})"; } - public static List OrderedStages = new List() + public static readonly StageExt[] OrderedStages = { StageExt.Astera, StageExt.AsteraHub, diff --git a/Plugin.cs b/Plugin.cs index e76d724..99d9bbc 100755 --- a/Plugin.cs +++ b/Plugin.cs @@ -2147,8 +2147,8 @@ namespace WorldTuningTool Assert(MemoryUtil.Read(0x142EE1A90) == 0x40000000); // 2.0. Assert(MemoryUtil.Read(0x142E4FE5C) == 0x40400000); // 3.0. Assert(MemoryUtil.Read(0x142F1FD4C) == 0x40800000); // 4.0. - Assert(MemoryUtil.Read(0x142F1FD50) == 0x40a00000); // 5.0. - Assert(MemoryUtil.Read(0x14321222C) == 0x40c00000); // 6.0. + Assert(MemoryUtil.Read(0x142F1FD50) == 0x40A00000); // 5.0. + Assert(MemoryUtil.Read(0x14321222C) == 0x40C00000); // 6.0. shadowRes1_2x = new Patch(addr + 0x8, [0x04, 0x1B, 0xAA, 0x02]); shadowRes1_3x = new Patch(addr + 0x8, [0xD0, 0xFE, 0xA0, 0x02]); shadowRes1_4x = new Patch(addr + 0x8, [0xC0, 0xFD, 0xAD, 0x02]); @@ -2211,8 +2211,8 @@ namespace WorldTuningTool volumeSars7 = new Patch(new IntPtr(0x1424D02C6), [0x90, 0x90]); volumeSars8 = new Patch(new IntPtr(0x1424D0321), [0x90, 0x90]); volumeSars9 = new Patch(new IntPtr(0x1424D034A), [0x90, 0x90]); - /* As far as I can tell this is limited by buffers created cpu-side, seems like it - * would be an extremely hard change. + /* As far as I can tell, this is limited by buffers created cpu-side. Seems like + * it would be an extremely hard change. froxelRes1 = new Patch(new IntPtr(0x142384F15) + 0x1, [0x02]); // 4 -> 2 froxelRes2 = new Patch(new IntPtr(0x142389711) + 0x1, [0x02]); // 4 -> 2 froxelRes3 = new Patch(new IntPtr(0x142389878) + 0x1, [0x02]); // 4 -> 2 @@ -2259,8 +2259,8 @@ namespace WorldTuningTool // it tries to access resources (shader, buffer, texture, etc.) that are not loaded. // Ex: MonsterHunterWorld.exe+228C4A7 - mov rdi,[rdi+00000120] # Attempted read. // MonsterHunterWorld.exe+259329B - lea rcx,[rdi+00000120] # Zero. - // The code that zero's these addresses looks like a shell of where they would be loaded. So my assumption - // is that it's compiled out and that this method of increasing the SSR resolution will not work. + // The code that zero's these addresses looks like a shell of where they would be loaded. My assumption + // is that it's compiled out and that this method of increasing the SSR resolution can't work. // Though, it may still be possible by finagling the parameters of the half res case. /* // Attempt to forcefully enable FULL_RES path for SSR. @@ -2992,7 +2992,7 @@ namespace WorldTuningTool public void OnImGuiRender() { float width = ImGui.GetWindowWidth(); - width /= width / 600.0f; + width /= width / (600.0f * ImGui.GetIO().FontGlobalScale); ImGui.Text($"Current Stage: {Config.StageToString(currentStage)}"); ImGui.PushItemWidth(width * 0.35f); -- cgit v1.2.3-101-g0448