From 0c44159c49d5732662dc77501bcc3acf4ed9e59d Mon Sep 17 00:00:00 2001 From: Deserty0 Date: Thu, 4 Sep 2025 23:26:38 +1000 Subject: [PATCH] last work before silksong --- .../_CP14/Fishing/CP14FishingSystem.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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); } }