diff --git a/Content.Client/_CP14/Fishing/CP14FishingSystem.cs b/Content.Client/_CP14/Fishing/CP14FishingSystem.cs index 0b6588f336..3e7c04984a 100644 --- a/Content.Client/_CP14/Fishing/CP14FishingSystem.cs +++ b/Content.Client/_CP14/Fishing/CP14FishingSystem.cs @@ -1,11 +1,18 @@ +using System.Numerics; using Content.Shared._CP14.Fishing; using Content.Shared._CP14.Fishing.Components; using Content.Shared.Interaction; +using Robust.Client.UserInterface; +using Robust.Client.UserInterface.Controls; namespace Content.Client._CP14.Fishing; public sealed class CP14FishingSystem : CP14SharedFishingSystem { + [Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!; + + private Popup? _fishingPopup; + public override void Initialize() { base.Initialize(); @@ -32,7 +39,14 @@ public sealed class CP14FishingSystem : CP14SharedFishingSystem private void OpenFishingPopup() { - + _fishingPopup = new Popup + { + CloseOnClick = false, + CloseOnEscape = false, + MinSize = new Vector2(41, 149), + MaxSize = new Vector2(41, 149) + }; + _userInterfaceManager.ModalRoot.AddChild(_fishingPopup); } }