technology auto guidebook (#21029)
* technology auto guidebook * boo-womp * boo-womp II
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Utility;
|
||||
@@ -15,10 +16,13 @@ public sealed partial class MiniTechnologyCardControl : Control
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
var discipline = prototypeManager.Index<TechDisciplinePrototype>(technology.Discipline);
|
||||
var discipline = prototypeManager.Index(technology.Discipline);
|
||||
Background.ModulateSelfOverride = discipline.Color;
|
||||
Texture.Texture = spriteSys.Frame0(technology.Icon);
|
||||
NameLabel.SetMessage(Loc.GetString(technology.Name));
|
||||
Main.ToolTip = description.ToString();
|
||||
|
||||
var tooltip = new Tooltip();
|
||||
tooltip.SetMessage(description);
|
||||
Main.TooltipSupplier = _ => tooltip;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user