Examine Groups (#12400)

* new version

* testy2

* working version

* new GroupExamineSystem

* restructure

* restructure again

* update icon

* adding group examine to prototypes

* change examine group title to a localized string

Co-authored-by: CommieFlowers <rasmus.cedergren@hotmail.com>
This commit is contained in:
rolfero
2022-12-20 03:53:36 +01:00
committed by GitHub
parent f09097ccd7
commit 7259acfb18
13 changed files with 303 additions and 28 deletions

View File

@@ -77,20 +77,11 @@ namespace Content.Server.Armor
if (armorModifiers == null)
return;
var verb = new ExamineVerb()
{
Act = () =>
{
var markup = GetArmorExamine(armorModifiers);
_examine.SendExamineTooltip(args.User, uid, markup, false, false);
},
Text = Loc.GetString("armor-examinable-verb-text"),
Message = Loc.GetString("armor-examinable-verb-message"),
Category = VerbCategory.Examine,
IconTexture = "/Textures/Interface/VerbIcons/dot.svg.192dpi.png"
};
var examineMarkup = GetArmorExamine(armorModifiers);
args.Verbs.Add(verb);
_examine.AddDetailedExamineVerb(args, component, examineMarkup, Loc.GetString("armor-examinable-verb-text"), "/Textures/Interface/VerbIcons/dot.svg.192dpi.png", Loc.GetString("armor-examinable-verb-message"));
return;
}
private static FormattedMessage GetArmorExamine(DamageModifierSet armorModifiers)