
- Improved logging, logs now to go the Logs folder and aren't deleted on start - Fixed chat tab not enabling with -autostart - Fixed player list - Watchdog time-out is now configurable in TorchConfig.xml - Fixed infinario log spam - Fixed crash when sending empty message from chat tab - Fixed permissions on Torch commands - Changed plugin StoragePath to the current instance path (per-instance configs)
27 lines
1.3 KiB
XML
27 lines
1.3 KiB
XML
<UserControl x:Class="Torch.Server.PlayerListControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Torch.Server"
|
|
mc:Ignorable="d">
|
|
<DockPanel>
|
|
<StackPanel DockPanel.Dock="Bottom">
|
|
<Button x:Name="KickButton" Content="Kick" Margin="5,5,5,5" Click="KickButton_Click"/>
|
|
<Button x:Name="BanButton" Content="Ban" Margin="5,5,5,5" Click="BanButton_Click"/>
|
|
</StackPanel>
|
|
<ListView x:Name="PlayerList" ItemsSource="{Binding Players}" DockPanel.Dock="Top" Margin="5,5,5,5">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<WrapPanel>
|
|
<TextBlock Text="{Binding Value.Name}" FontWeight="Bold"/>
|
|
<TextBlock Text=" ("/>
|
|
<TextBlock Text="{Binding Value.State}"/>
|
|
<TextBlock Text=")"/>
|
|
</WrapPanel>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</DockPanel>
|
|
</UserControl>
|