mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Toggle roles enabled message properly
This commit is contained in:
1 parent
3bcc5139f3
commit
91c7ea8dda
1 file changed
+1
-4
@@ -653,10 +653,7 @@ public static class RoleGuidePatches
|
|||||||
}
|
}
|
||||||
|
|
||||||
var instance = MatchInfoGuide.Instance;
|
var instance = MatchInfoGuide.Instance;
|
||||||
if (num == 0)
|
instance.rolesEnabledMessage.SetActive(num == 0);
|
||||||
{
|
|
||||||
instance.rolesEnabledMessage.SetActive(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
instance.MatchInfoRoleScroller.SetYBoundsMax(Mathf.Clamp(Mathf.Ceil(num / 2f) * 1.3f - 1.5f, 0f, 999f));
|
instance.MatchInfoRoleScroller.SetYBoundsMax(Mathf.Clamp(Mathf.Ceil(num / 2f) * 1.3f - 1.5f, 0f, 999f));
|
||||||
instance.MatchInfoRoleScroller.SetYBoundsMax(Mathf.Clamp(Mathf.Ceil(num / 2f) * 1.3f - 1.5f, 0f, 999f));
|
instance.MatchInfoRoleScroller.SetYBoundsMax(Mathf.Clamp(Mathf.Ceil(num / 2f) * 1.3f - 1.5f, 0f, 999f));
|
||||||
|
|||||||
Reference in new issue
Block a user