Updated OnGameOverlayActivated.

Updated to OnGameOverlayActivated?.Invoke( x.Active != 0 ) )
This commit is contained in:
Michal Kracik 2020-02-10 14:49:55 -05:00
parent f60b54df33
commit 841d665046

View File

@ -42,7 +42,7 @@ namespace Steamworks
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(x.Active == 0 ? false : true) );
GameOverlayActivated_t.Install( x => OnGameOverlayActivated?.Invoke( x.Active != 0 ) );
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 ) ) );