29 lines
806 B
C#
29 lines
806 B
C#
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|