From 6b5f8f7481a1d4a75d7c0068fe83b71791e37dae Mon Sep 17 00:00:00 2001 From: Daniel Menard Date: Tue, 20 Feb 2018 15:55:38 -0500 Subject: [PATCH] Added method to show friends invite overlay to Lobby class --- Facepunch.Steamworks/Client/Lobby.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Facepunch.Steamworks/Client/Lobby.cs b/Facepunch.Steamworks/Client/Lobby.cs index bcf8afe..df9c0a5 100644 --- a/Facepunch.Steamworks/Client/Lobby.cs +++ b/Facepunch.Steamworks/Client/Lobby.cs @@ -480,6 +480,14 @@ internal void OnUserInvitedToLobbyAPI( LobbyInvite_t callback ) } + /// + /// Activates the steam overlay to invite friends to the CurrentLobby the user is in. + /// + public void OpenFriendInviteOverlay() + { + client.native.friends.ActivateGameOverlayInviteDialog(CurrentLobby); + } + /// /// Called when a user invites the current user to a lobby. The first parameter is the lobby the user was invited to, the second is the CSteamID of the person who invited this user ///