private static void SetLoadingComplete() { PropertyInfo property = PAXTerrainController.main.GetType().GetProperty("isWorking"); property.SetValue(PAXTerrainController.main, false, null); WaitScreen waitScreen = (WaitScreen)ReflectionHelper.ReflectionGet <WaitScreen>(null, "main", false, true); waitScreen.ReflectionCall("Hide"); }
public static void SubnauticaLoadingCompleted() { if (Main.IsMultiplayer()) { Main.InitialSyncCompleted = false; Main.StartCoroutine(LoadAsync()); } else { PropertyInfo property = PAXTerrainController.main.GetType().GetProperty("isWorking"); property.SetValue(PAXTerrainController.main, false, null); WaitScreen waitScreen = (WaitScreen)typeof(WaitScreen).ReflectionGet("main", false, true); waitScreen.ReflectionCall("Hide"); } }
private static void SetLoadingComplete() { PropertyInfo property = PAXTerrainController.main.GetType().GetProperty("isWorking"); property.SetValue(PAXTerrainController.main, false, null); WaitScreen waitScreen = (WaitScreen)ReflectionHelper.ReflectionGet <WaitScreen>(null, "main", false, true); waitScreen.ReflectionCall("Hide"); List <WaitScreen.IWaitItem> items = (List <WaitScreen.IWaitItem>)waitScreen.ReflectionGet("items"); items.Clear(); PlayerManager remotePlayerManager = NitroxServiceLocator.LocateService <PlayerManager>(); DiscordController.Main.InitDRPDiving(Main.multiplayerSession.AuthenticationContext.Username, remotePlayerManager.GetTotalPlayerCount(), Main.multiplayerSession.IpAddress + ":" + Main.multiplayerSession.ServerPort); }
private static void SetLoadingComplete() { PropertyInfo property = PAXTerrainController.main.GetType().GetProperty("isWorking"); property.SetValue(PAXTerrainController.main, false, null); WaitScreen waitScreen = (WaitScreen)ReflectionHelper.ReflectionGet <WaitScreen>(null, "main", false, true); waitScreen.ReflectionCall("Hide"); List <WaitScreen.IWaitItem> items = (List <WaitScreen.IWaitItem>)waitScreen.ReflectionGet("items"); items.Clear(); PlayerManager remotePlayerManager = NitroxServiceLocator.LocateService <PlayerManager>(); LoadingScreenVersionText.DisableWarningText(); NitroxServiceLocator.LocateService <PlayerChatManager>().LoadChatKeyHint(); }
private static void SetLoadingComplete() { PropertyInfo property = PAXTerrainController.main.GetType().GetProperty("isWorking"); property.SetValue(PAXTerrainController.main, false, null); WaitScreen waitScreen = (WaitScreen)ReflectionHelper.ReflectionGet <WaitScreen>(null, "main", false, true); waitScreen.ReflectionCall("Hide"); List <WaitScreen.IWaitItem> items = (List <WaitScreen.IWaitItem>)waitScreen.ReflectionGet("items"); items.Clear(); PlayerManager remotePlayerManager = NitroxServiceLocator.LocateService <PlayerManager>(); LoadingScreenVersionText.DisableWarningText(); DiscordRPController.Main.InitializeInGame(Main.multiplayerSession.AuthenticationContext.Username, remotePlayerManager.GetTotalPlayerCount(), Main.multiplayerSession.SessionPolicy.MaxConnections, $"{Main.multiplayerSession.IpAddress}:{Main.multiplayerSession.ServerPort}"); NitroxServiceLocator.LocateService <PlayerChatManager>().LoadChatKeyHint(); }