Add RoleMedDescription for the role guide

This commit is contained in:
Atony committed 2026-08-19 23:28:00 -05:00
1 parent 7c7d184d1f
commit f230cff5e5
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ public static class RoleGuidePatches
if (role is ICustomRole customRole)
{
__instance.roleName.text = customRole.RoleName;
__instance.roleDescription.text = $"<size=60%>{customRole.RoleFactionTitle}</size>\n" + customRole.RoleDescription;
__instance.roleDescription.text = $"<size=60%>{customRole.RoleFactionTitle}</size>\n" + customRole.RoleMedDescription;
__instance.roleIcon.sprite = customRole.Configuration.Icon?.LoadAsset();
__instance.roleCount.text += $" ({customRole.ParentMod.MiraPlugin.GetAbbreviatedModName()})";
}
+5
View File
@@ -23,6 +23,11 @@ public interface ICustomRole : IOptionable
/// </summary>
string RoleDescription { get; }
/// <summary>
/// Gets the medium description of the role. Used in the role guide.
/// </summary>
string RoleMedDescription => RoleDescription;
/// <summary>
/// Gets the long description of the role. Used in the Role Tab and Role Options.
/// </summary>