Files
ss14-wega/Content.Client/Tips/TipsSystem.cs
SlamBamActionman 373c368b94 Tippy, the helpful hint clown! (#26767)
* Tippy is BACK

* Clean up clippy from aprils fools

* Changed names from clippy to tippy, added localization, removed local_clippy command, made it easier to target a specific player

* Rename clippy.yml to tippy.yml

---------

Co-authored-by: Kara <lunarautomaton6@gmail.com>
2024-04-28 21:38:16 -07:00

21 lines
477 B
C#

using Content.Shared.Tips;
using Robust.Client.UserInterface;
namespace Content.Client.Tips;
public sealed class TipsSystem : EntitySystem
{
[Dependency] private readonly IUserInterfaceManager _uiMan = default!;
public override void Initialize()
{
base.Initialize();
SubscribeNetworkEvent<TippyEvent>(OnClippyEv);
}
private void OnClippyEv(TippyEvent ev)
{
_uiMan.GetUIController<TippyUIController>().AddMessage(ev);
}
}