43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using System.Text;
|
|
using System.Threading;
|
|
using Content.Client.Administration.Managers;
|
|
using Content.Client.Administration.UI.CustomControls;
|
|
using Content.Client.Administration.UI.Tabs.AdminTab;
|
|
using Content.Client.Stylesheets;
|
|
using Content.Client.UserInterface.Systems.Bwoink;
|
|
using Content.Shared.Administration;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.Console;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.Network;
|
|
using Robust.Shared.Utility;
|
|
using Timer = Robust.Shared.Timing.Timer;
|
|
|
|
namespace Content.Client.Administration.UI.Bwoink
|
|
{
|
|
/// <summary>
|
|
/// This window connects to a BwoinkSystem channel. BwoinkSystem manages the rest.
|
|
/// </summary>
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class BwoinkWindow : DefaultWindow
|
|
{
|
|
public BwoinkWindow()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
Bwoink.ChannelSelector.OnSelectionChanged += sel =>
|
|
{
|
|
if (sel is not null)
|
|
{
|
|
Title = $"{sel.CharacterName} / {sel.Username}";
|
|
}
|
|
};
|
|
|
|
OnOpen += () => Bwoink.ChannelSelector.PopulateList();
|
|
}
|
|
}
|
|
}
|