last work before silksong

This commit is contained in:
Deserty0
2025-09-04 23:26:38 +10:00
parent dcecaded17
commit 0c44159c49

View File

@@ -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);
}
}