mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
Add RoleMedDescription for the role guide
This commit is contained in:
1 parent
7c7d184d1f
commit
f230cff5e5
2 files changed
+6
-1
No files matched your search
@@ -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()})";
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user