mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-28 19:43:55 +00:00
adjustment to role setting menu
This commit is contained in:
1 parent
25590242bc
commit
715d235bdc
1 file changed
+3
-2
@@ -341,12 +341,13 @@ public static class RoleSettingMenuPatches
|
||||
passiveButton.OnClick.AddListener((UnityAction)(() => { ChangeTab(role, __instance); }));
|
||||
}
|
||||
|
||||
if (customRole.Configuration.MaxRoleCount == 0 && customRole.Configuration.CanModifyChance)
|
||||
if (customRole.Configuration is { MaxRoleCount: 0 })
|
||||
{
|
||||
roleOptionSetting.CountMinusBtn.gameObject.SetActive(false);
|
||||
roleOptionSetting.CountPlusBtn.gameObject.SetActive(false);
|
||||
}
|
||||
else if (!customRole.Configuration.CanModifyChance)
|
||||
|
||||
if (!customRole.Configuration.CanModifyChance)
|
||||
{
|
||||
roleOptionSetting.ChanceMinusBtn.gameObject.SetActive(false);
|
||||
roleOptionSetting.ChancePlusBtn.gameObject.SetActive(false);
|
||||
|
||||
Reference in new issue
Block a user