mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 12:10:53 +01:00
* 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>
21 lines
477 B
C#
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);
|
|
}
|
|
}
|