mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-20 23:17:43 +03:00
* 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
31 lines
879 B
C#
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;
|
|
}
|
|
|
|
}
|