Adjust edit pane for self-adjusting role names

This commit is contained in:
Atony committed 2025-09-30 18:08:56 -05:00
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);