Overlay.Client
Like what your seeing?
Support us as a GitHub Sponsor and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our GitHub Sponsors ... become a sponsor today!
Introduction
The whole of the overlay system is only accessible from the Client API as a result you will always be using the form:
What can it do?
The overlay interface provides simplified access to Steam's overlay features. The Steam Overlay can be used to show web pages, access friends lists, clans,
Related Components
Overlay ManagerEvents
Event Game Overlay Activated
Called when the overlay activates or deactivates.
Handler takes the form of
Event Game Server Change Requested
Called when the user tries to join a different game server from there friends list while the game is running.
Handler takes the form of
Event Game Lobby Join Requested
Called when the user tries to join a lobby from there friends list or from an invite while the game is running.
Handler takes the form of
Event Game Rich Presence Join Requested
Called when the user tries to join a game from their friends list or after a user accepts an invite by a friend with userData.InviteToGame(connectString);
or API.Friends.Client.InviteUserToGame(user, connectString);
.
This callback is made when joining a game. If the user is attempting to join a lobby, then the callback Game Lobby Join Requested will be made.
Handler takes the form of
Fields and Attributes
Is Enabled
True if the overlay feature is enabled for this user on this app
Is Showing
True if the overlay is currently open
Notification Position
Can be set to adjust where the notificaiton position anchors from
Notification Inset
Offset from the position anchor
Methods
Activate
Open the overlay to the indicated target
or
or
or
or
Activate Invite Dialog
Opens the invite dialog
or
Activate Remote Play Invite Dialog
Opens the remote play invite dialog with respect to a given lobby
Activate Web Page
Opens the overlay to a given web page
How To
Enabled and showing
You can check if the Overlay is enabled ... that is ... is the overlay feature turned on for this app for this user.
To check if the overlay is currently open you can use
Notification positioning
The notification pop up that shows when a user unlocks and achievement or when friends join or leave games can be configured to show in different areas of the screen.
Activate the overlay
You can activate the overlay in a number of ways.
To a given dialog
To the lobby invite screen
To a game connection
To remote play
To an app store page
To a user dialog
To a web page
Last updated