mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Rcon Changes
Rcon Window - minor changes to the player list, online player count and server status. Online Player Count - fixed the online player count to display the correct value.
This commit is contained in:
parent
7c43821691
commit
74bad02b94
13 changed files with 454 additions and 341 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using ServerManagerTool.Common.Extensions;
|
||||
using ServerManagerTool.Common.Enums;
|
||||
using ServerManagerTool.Common.Extensions;
|
||||
using ServerManagerTool.Common.Lib;
|
||||
using ServerManagerTool.Common.Utils;
|
||||
using ServerManagerTool.Enums;
|
||||
|
|
@ -911,7 +912,7 @@ namespace ServerManagerTool
|
|||
ConsoleContent.Blocks.Add(b);
|
||||
}
|
||||
|
||||
private IEnumerable<Inline> FormatCommandInput(ServerRCON.ConsoleCommand command)
|
||||
private IEnumerable<Inline> FormatCommandInput(ConsoleCommand command)
|
||||
{
|
||||
if (command.command.Equals(ServerRCON.RCON_COMMAND_BROADCAST, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
|
|
@ -928,7 +929,7 @@ namespace ServerManagerTool
|
|||
}
|
||||
}
|
||||
|
||||
private IEnumerable<Inline> FormatCommandOutput(ServerRCON.ConsoleCommand command)
|
||||
private IEnumerable<Inline> FormatCommandOutput(ConsoleCommand command)
|
||||
{
|
||||
bool firstLine = true;
|
||||
|
||||
|
|
@ -1009,13 +1010,13 @@ namespace ServerManagerTool
|
|||
|
||||
private void RenderConnectionStateChange(DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var oldStatus = (ServerRCON.ConsoleStatus)e.OldValue;
|
||||
var newStatus = (ServerRCON.ConsoleStatus)e.NewValue;
|
||||
var oldStatus = (ConsoleStatus)e.OldValue;
|
||||
var newStatus = (ConsoleStatus)e.NewValue;
|
||||
|
||||
if(oldStatus != newStatus)
|
||||
{
|
||||
var p = new Paragraph();
|
||||
if (newStatus == ServerRCON.ConsoleStatus.Connected)
|
||||
if (newStatus == ConsoleStatus.Connected)
|
||||
{
|
||||
p.Inlines.Add(new RCONOutput_ConnectionChanged(true));
|
||||
}
|
||||
|
|
@ -1028,7 +1029,7 @@ namespace ServerManagerTool
|
|||
}
|
||||
}
|
||||
|
||||
private void RenderRCONCommandOutput(ServerRCON.ConsoleCommand command)
|
||||
private void RenderRCONCommandOutput(ConsoleCommand command)
|
||||
{
|
||||
//
|
||||
// Format output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue