Add description in lathe recipe mouseover tooltip (#22621)
* Add description in lathe recipe mouseover tooltip * Remove old tooltip
This commit is contained in:
20
Content.Client/Lathe/UI/RecipeTooltip.xaml.cs
Normal file
20
Content.Client/Lathe/UI/RecipeTooltip.xaml.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Content.Shared.Research.Prototypes;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Graphics;
|
||||
|
||||
namespace Content.Client.Lathe.UI;
|
||||
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class RecipeTooltip : Control
|
||||
{
|
||||
|
||||
public RecipeTooltip(string tooltip)
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
RecipeTooltipLabel.SetMessage(tooltip);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user