* your commit? our commit. * skreee * show joined players before lobby players; comments * comments * playerinfo retains playtime data after disconnect * new connection status symbols
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
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 null)
|
|
{
|
|
Title = Loc.GetString("bwoink-title-none-selected");
|
|
return;
|
|
}
|
|
|
|
Title = $"{sel.CharacterName} / {sel.Username} | {Loc.GetString("generic-playtime-title")}: ";
|
|
|
|
Title += sel.OverallPlaytime != null ? sel.PlaytimeString : Loc.GetString("generic-unknown-title");
|
|
};
|
|
|
|
OnOpen += () =>
|
|
{
|
|
Bwoink.ChannelSelector.StopFiltering();
|
|
Bwoink.PopulateList();
|
|
};
|
|
}
|
|
}
|
|
}
|