Add description in lathe recipe mouseover tooltip (#22621)

* Add description in lathe recipe mouseover tooltip

* Remove old tooltip
This commit is contained in:
Justin
2023-12-16 18:06:38 -08:00
committed by GitHub
parent 432c87f7e2
commit 07f87f93d2
5 changed files with 52 additions and 1 deletions

View File

@@ -157,6 +157,9 @@ public sealed partial class LatheMenu : DefaultWindow
sb.Append(Loc.GetString("lathe-menu-tooltip-display", ("material", name), ("amount", amountText)));
}
sb.Append('\n');
sb.Append(Loc.GetString("lathe-menu-description-display", ("description", prototype.Description)));
var icon = prototype.Icon == null
? _spriteSystem.GetPrototypeIcon(prototype.Result).Default
: _spriteSystem.Frame0(prototype.Icon);