Fix scale factor not setting properly when changed

This commit is contained in:
Atony committed 2025-12-31 18:36:19 -06:00
1 parent 5d01462a32
commit 067859b9fd
2 files changed
+2 -4

No files matched your search

+2
View File
@@ -228,6 +228,8 @@ public static class HudManagerPatches
var comp = buttonObj.GetComponent<ActionButton>();
KeybindManager.VanillaKeybinds[comp.GetType()].Button = comp;
}
MiraApiSettings.OldButtonScaleFactor =
LocalSettingsTabSingleton<MiraApiSettings>.Instance.ButtonUIFactorSlider.Value;
Coroutines.Start(CoResizeUI());
}
-4
View File
@@ -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;
}
}