mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
Adjust edit pane for self-adjusting role names
This commit is contained in:
1 parent
67a5f0dd67
commit
99a275a97c
2 files changed
+2
-1
No files matched your search
@@ -344,7 +344,7 @@ public static class LobbyViewPanePatches
|
||||
}
|
||||
|
||||
viewSettingsInfoPanelRoleVariant.SetInfo(
|
||||
roleBehaviour.NiceName,
|
||||
roleBehaviour.GetRoleName(),
|
||||
numPerGame,
|
||||
chancePerGame,
|
||||
61,
|
||||
|
||||
@@ -579,6 +579,7 @@ public static class RoleSettingMenuPatches
|
||||
roleOptionSetting.transform.localPosition = new Vector3(-0.1f, ScrollerNum, -2f);
|
||||
|
||||
roleOptionSetting.SetRole(GameOptionsManager.Instance.CurrentGameOptions.RoleOptions, role, 20);
|
||||
roleOptionSetting.titleText.text = role.GetRoleName();
|
||||
roleOptionSetting.labelSprite.color = customRole.OptionsMenuColor;
|
||||
roleOptionSetting.OnValueChanged = new Action<OptionBehaviour>(ValueChanged);
|
||||
roleOptionSetting.SetClickMask(__instance.ButtonClickMask);
|
||||
|
||||
Reference in new issue
Block a user