added client.Overlay.Enabled property (tells you whether the overlay is actually available)

This commit is contained in:
David Salz 2018-02-13 19:44:54 +01:00
parent 9a9a310b5f
commit e88535ac57

View File

@ -25,6 +25,11 @@ public class Overlay
{ {
internal Client client; internal Client client;
public bool Enabled
{
get { return client.native.utils.IsOverlayEnabled(); }
}
public void OpenUserPage( string name, ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( name, steamid ); } public void OpenUserPage( string name, ulong steamid ) { client.native.friends.ActivateGameOverlayToUser( name, steamid ); }
public void OpenProfile( ulong steamid ) { OpenUserPage( "steamid", steamid ); } public void OpenProfile( ulong steamid ) { OpenUserPage( "steamid", steamid ); }