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>
This commit is contained in:
20
Content.Client/Tips/TipsSystem.cs
Normal file
20
Content.Client/Tips/TipsSystem.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user