Add a warning dialog to the observe button. (#4794)

This commit is contained in:
moonheart08
2021-10-08 09:22:57 -05:00
committed by GitHub
parent cc7d4a40b8
commit a2b04482a4
5 changed files with 43 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
using JetBrains.Annotations;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
namespace Content.Client.Lobby.UI
{
[GenerateTypedNameReferences]
[UsedImplicitly]
internal sealed partial class ObserveWarningWindow : SS14Window
{
public ObserveWarningWindow()
{
Title = Loc.GetString("observe-warning-window-title");
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
ObserveButton.OnPressed += _ => { this.Close(); };
NevermindButton.OnPressed += _ => { this.Close(); };
}
}
}