Skip to content

Commit 9352d92

Browse files
committed
Return sponsor window to character setup
1 parent c925c4c commit 9352d92

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Content.Client/Lobby/UI/CharacterSetupGui.xaml.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Content.Client.Info;
22
using Content.Client.Info.PlaytimeStats;
33
using Content.Client.Resources;
4+
using Content.Corvax.Interfaces.Client;
45
using Content.Shared.Preferences;
56
using Robust.Client.AutoGenerated;
67
using Robust.Client.Graphics;
@@ -65,6 +66,13 @@ public CharacterSetupGui(
6566
RulesButton.OnPressed += _ => new RulesAndInfoWindow().Open();
6667

6768
StatsButton.OnPressed += _ => new PlaytimeStatsWindow().OpenCentered();
69+
// Corvax-Sponsors-Start
70+
if (IoCManager.Instance!.TryResolveType<ISponsorWindowCreator>(out var creator))
71+
{
72+
SponsorButton.Visible = true;
73+
SponsorButton.OnPressed += _ => creator.OpenWindow();
74+
}
75+
// Corvax-Sponsors-End
6876
}
6977

7078
/// <summary>

0 commit comments

Comments
 (0)