From e88535ac57b574123f509424fa0da2c0e2fdeab6 Mon Sep 17 00:00:00 2001 From: David Salz Date: Tue, 13 Feb 2018 19:44:54 +0100 Subject: [PATCH] added client.Overlay.Enabled property (tells you whether the overlay is actually available) --- Facepunch.Steamworks/Client/Overlay.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Facepunch.Steamworks/Client/Overlay.cs b/Facepunch.Steamworks/Client/Overlay.cs index 6bec828..73da7fd 100644 --- a/Facepunch.Steamworks/Client/Overlay.cs +++ b/Facepunch.Steamworks/Client/Overlay.cs @@ -25,6 +25,11 @@ public class Overlay { 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 OpenProfile( ulong steamid ) { OpenUserPage( "steamid", steamid ); }