steam_is_overlay_activated

Check to see if the overlay is currently active.

Syntax:

steam_is_overlay_activated();


Returns: Boolean


Description

This function can be used to find out if the user has the Steam Overlay active or not. If the overlay is active and visible to the user the function will return true, and if it is not, then it will return false. An example of what this function can be used for would be for polling the Steam API for the overlay so that you can pause your game while the overlay is being shown.


Example:

if steam_is_overlay_activated()
   {
   global.Pause = true;
   }

The above code will check to see if the Steam overlay is active and if it is it will set the global variable "Pause" to true.


Back: Steam API
Next: steam_create_leaderboard
© Copyright YoYo Games Ltd. 2018 All Rights Reserved