Seamless rework
This commit is contained in:
41
Components/PlayersWindowComponent.cs
Normal file
41
Components/PlayersWindowComponent.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using HarmonyLib;
|
||||
using Sandbox.Game;
|
||||
using Sandbox.Game.Gui;
|
||||
using Sandbox.Game.World;
|
||||
using SeamlessClient.Messages;
|
||||
using SeamlessClient.Utilities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SeamlessClient.OnlinePlayersWindow
|
||||
{
|
||||
|
||||
public class PlayersWindowComponent : ComponentBase
|
||||
{
|
||||
|
||||
public override void Patch(Harmony patcher)
|
||||
{
|
||||
patcher.CreateClassProcessor(typeof(OnlineNexusPlayersWindow)).Patch();
|
||||
}
|
||||
|
||||
|
||||
public override void Initilized()
|
||||
{
|
||||
MyPerGameSettings.GUI.PlayersScreen = typeof(OnlineNexusPlayersWindow);
|
||||
}
|
||||
|
||||
public static void ApplyRecievedPlayers(List<OnlineServer> servers, int CurrentServer)
|
||||
{
|
||||
Seamless.TryShow($"Recieved {CurrentServer} - {servers.Count}");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user