Reagents localization (#7916)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Alex Evgrashin
2022-05-12 14:06:01 +03:00
committed by GitHub
parent 4ef8bfff46
commit 860db943e1
47 changed files with 1644 additions and 804 deletions

View File

@@ -61,7 +61,7 @@ namespace Content.Client.Chemistry.UI
{
if (_prototypeManager.TryIndex(entry.ID, out ReagentPrototype? proto))
{
ChemicalList.AddChild(new Button {Text = proto.Name});
ChemicalList.AddChild(new Button {Text = proto.LocalizedName});
}
else
{
@@ -167,7 +167,7 @@ namespace Content.Client.Chemistry.UI
//Try to the prototype for the given reagent. This gives us it's name.
if (_prototypeManager.TryIndex(reagent.ReagentId, out ReagentPrototype? proto))
{
name = proto.Name;
name = proto.LocalizedName;
}
//Check if the reagent is being moused over. If so, color it green.