From 067859b9fd900e90f020241232d2d5ec00da98a2 Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Wed, 31 Dec 2025 18:36:19 -0600 Subject: [PATCH] Fix scale factor not setting properly when changed --- MiraAPI/Patches/HudManagerPatches.cs | 2 ++ MiraAPI/Utilities/Helpers.cs | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/MiraAPI/Patches/HudManagerPatches.cs b/MiraAPI/Patches/HudManagerPatches.cs index c5340b2..2312e40 100644 --- a/MiraAPI/Patches/HudManagerPatches.cs +++ b/MiraAPI/Patches/HudManagerPatches.cs @@ -228,6 +228,8 @@ public static class HudManagerPatches var comp = buttonObj.GetComponent(); KeybindManager.VanillaKeybinds[comp.GetType()].Button = comp; } + MiraApiSettings.OldButtonScaleFactor = + LocalSettingsTabSingleton.Instance.ButtonUIFactorSlider.Value; Coroutines.Start(CoResizeUI()); } diff --git a/MiraAPI/Utilities/Helpers.cs b/MiraAPI/Utilities/Helpers.cs index c89fc74..b537ef0 100644 --- a/MiraAPI/Utilities/Helpers.cs +++ b/MiraAPI/Utilities/Helpers.cs @@ -546,10 +546,6 @@ public static class Helpers public static bool IsRoleBlacklisted(this RoleBehaviour role) { // This should be patchable by mods when a vanilla role is meant to be replaced by a custom role. - if (role.Role is RoleTypes.Engineer) - { - return true; - } return false; } }