* Xenoarch feedback print out reports, weight node traversal, dialog for destroy menu, slight effect tweaks * make the popup not bad * the popup, jimbo...
27 lines
711 B
C#
27 lines
711 B
C#
using Content.Client.Stylesheets;
|
|
using Content.Client.UserInterface.Controls;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client.Xenoarchaeology.Ui;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class AnalysisDestroyWindow : FancyWindow
|
|
{
|
|
public event Action<BaseButton.ButtonEventArgs>? OnYesButton;
|
|
|
|
public AnalysisDestroyWindow()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
YesButton.AddStyleClass(StyleBase.ButtonCaution);
|
|
YesButton.OnPressed += a =>
|
|
{
|
|
OnYesButton?.Invoke(a);
|
|
Close();
|
|
};
|
|
NoButton.OnPressed += _ => Close();
|
|
}
|
|
}
|