last work before silksong
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user