From f60b54df3395d746cf439f7eab5a324ece5e61f1 Mon Sep 17 00:00:00 2001 From: Michal Kracik Date: Sun, 9 Feb 2020 09:25:43 -0500 Subject: [PATCH] Added bool parameter Active to event OnGameOverlayActivated to pass it from GameOverlayActivated_t. --- Facepunch.Steamworks/SteamFriends.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Facepunch.Steamworks/SteamFriends.cs b/Facepunch.Steamworks/SteamFriends.cs index df21149..bfffcca 100644 --- a/Facepunch.Steamworks/SteamFriends.cs +++ b/Facepunch.Steamworks/SteamFriends.cs @@ -42,7 +42,7 @@ internal static void InstallEvents() FriendStateChange_t.Install( x => OnPersonaStateChange?.Invoke( new Friend( x.SteamID ) ) ); GameRichPresenceJoinRequested_t.Install( x => OnGameRichPresenceJoinRequested?.Invoke( new Friend( x.SteamIDFriend), x.ConnectUTF8() ) ); GameConnectedFriendChatMsg_t.Install( OnFriendChatMessage ); - GameOverlayActivated_t.Install( x => OnGameOverlayActivated?.Invoke() ); + GameOverlayActivated_t.Install( x => OnGameOverlayActivated?.Invoke(x.Active == 0 ? false : true) ); GameServerChangeRequested_t.Install( x => OnGameServerChangeRequested?.Invoke( x.ServerUTF8(), x.PasswordUTF8() ) ); GameLobbyJoinRequested_t.Install( x => OnGameLobbyJoinRequested?.Invoke( new Lobby( x.SteamIDLobby ), x.SteamIDFriend ) ); FriendRichPresenceUpdate_t.Install( x => OnFriendRichPresenceUpdate?.Invoke( new Friend( x.SteamIDFriend ) ) ); @@ -70,7 +70,7 @@ internal static void InstallEvents() /// Posted when game overlay activates or deactivates /// the game can use this to be pause or resume single player games /// - public static event Action OnGameOverlayActivated; + public static event Action OnGameOverlayActivated; /// /// Called when the user tries to join a different game server from their friends list