Update MenuManager.cs

This commit is contained in:
JohnCorby 2022-02-05 18:52:31 -08:00
parent 2d75917f9a
commit 6e8c052ca8

View File

@ -1,5 +1,5 @@
using Mirror; using EpicTransport;
using Mirror.FizzySteam; using Mirror;
using QSB.Messaging; using QSB.Messaging;
using QSB.Player; using QSB.Player;
using QSB.Player.TransformSync; using QSB.Player.TransformSync;
@ -332,12 +332,12 @@ namespace QSB.Menus
if (!QSBCore.DebugSettings.UseKcpTransport) if (!QSBCore.DebugSettings.UseKcpTransport)
{ {
var steamId = ((FizzyFacepunch)Transport.activeTransport).SteamUserID.ToString(); var id = EOSSDKComponent.LocalUserProductIdString;
PopupOK += () => GUIUtility.systemCopyBuffer = steamId; PopupOK += () => GUIUtility.systemCopyBuffer = id;
OpenInfoPopup($"Hosting server.\r\nClients will connect using your steam id, which is :\r\n" + OpenInfoPopup($"Hosting server.\r\nClients will connect using your id, which is :\r\n" +
$"{steamId}\r\n" + $"{id}\r\n" +
"Do you want to copy this to the clipboard?" "Do you want to copy this to the clipboard?"
, "YES" , "YES"
, "NO"); , "NO");