Files
wwdpublic/Content.Client/_White/UserInterface/Windows/PremiumPassWindow.xaml.cs
RedFoxIV 50b19259b8 Re: ghost (#849)
* it just works

* why hasn't it catastrophically failed yet

* not just gotta do the ui

oh god the ui

* that was easier than expected

* a devious misdirection

* touchups

* svin

* loc+fix

* touchups

* shitfix

* touchups x3

* for further use

* i hate this piece of shit engine

* touchups x4

* ribbit

also i'm retarded x2

* big tard energy

* bb

* rabbitson

* ?

* forgor

* k

* whoops

* fug
2025-09-27 08:38:24 +03:00

31 lines
879 B
C#

using Content.Shared._White.CCVar;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Configuration;
using Robust.Shared.Network;
namespace Content.Client._White.UserInterface.Windows;
[GenerateTypedNameReferences]
public sealed partial class PremiumPassWindow : DefaultWindow
{
[Dependency] private readonly IConfigurationManager _cfg = default!;
public PremiumPassWindow()
{
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
PurchaseButton.OnPressed += OnButtonPress;
}
private void OnButtonPress(Button.ButtonEventArgs args)
{
_cfg.SetCVar(WhiteCVars.PremiumActive, true);
PurchaseButton.Visible = false;
PurchasedButton.Visible = true;
}
}