diff --git a/Facepunch.Steamworks/Client.Overlay.cs b/Facepunch.Steamworks/Client.Overlay.cs index 66a635c..6bec828 100644 --- a/Facepunch.Steamworks/Client.Overlay.cs +++ b/Facepunch.Steamworks/Client.Overlay.cs @@ -24,17 +24,18 @@ public Overlay Overlay public class Overlay { internal Client client; - - public void OpenProfile( ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( "steamid", steamid ); } - public void OpenChat( ulong steamid ){ client.native.friends.ActivateGameOverlayToUser( "chat", steamid ); } - public void OpenTrade( ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( "jointrade", steamid ); } - public void OpenStats( ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( "stats", steamid ); } - public void OpenAchievements( ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( "achievements", steamid ); } - public void AddFriend( ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( "friendadd", steamid ); } - public void RemoveFriend( ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( "friendremove", steamid ); } - public void AcceptFriendRequest( ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( "friendrequestaccept", steamid ); } - public void IgnoreFriendRequest( ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( "friendrequestignore", steamid ); } + public void OpenUserPage( string name, ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( name, steamid ); } + + public void OpenProfile( ulong steamid ) { OpenUserPage( "steamid", steamid ); } + public void OpenChat( ulong steamid ){ OpenUserPage( "chat", steamid ); } + public void OpenTrade( ulong steamid ) { OpenUserPage( "jointrade", steamid ); } + public void OpenStats( ulong steamid ) { OpenUserPage( "stats", steamid ); } + public void OpenAchievements( ulong steamid ) { OpenUserPage( "achievements", steamid ); } + public void AddFriend( ulong steamid ) { OpenUserPage( "friendadd", steamid ); } + public void RemoveFriend( ulong steamid ) { OpenUserPage( "friendremove", steamid ); } + public void AcceptFriendRequest( ulong steamid ) { OpenUserPage( "friendrequestaccept", steamid ); } + public void IgnoreFriendRequest( ulong steamid ) { OpenUserPage( "friendrequestignore", steamid ); } public void OpenUrl( string url ) { client.native.friends.ActivateGameOverlayToWebPage( url ); } }