Overlay Manager
The original
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
This tool simply exposes features present in the API to the inspector.
This is not required to use these features it is simply a helper tool allowing user's who are more comfortable working with editor inspectors and game object rather than classic C# objects and scripting to make use of the related feature.
The overlay manager provides access to overlay events such as activated and the lobby and game server join requests as well common methods such as opening the overlay to a target web page.
Everything done in this manage can be done via API.Overlay.
Events
evtOverlayActivated
Occurs when the overlay is activated
Example handler
evtGameLobbyJoinRequested
Called when the user tries to join a lobby from their friends list or from an invite. The game client should attempt to connect to specified lobby when this is received. If the game isn't running yet then the game will be automatically launched with the command line parameter +connect_lobby <64-bit lobby Steam ID>
instead.
Example handle
evtGameServerChangeRequested
Called when the user tries to join a different game server from their friends list. The game client should attempt to connect to specified server when this is received
evtRichPresenceJoinRequested
Called when the user accepts a Rich Precense invite such as API.Friends.Client.InviteToGame(...); This is not an invite to a lobby, this is an invite to a game.
Fields and Attributes
NotificationPosition
This discribes the position of the notification popups used by Steam client. options include
k_EPositionTopLeft
k_EPositionTopRight
k_EPositionBottomLeft
k_EPositionBottomRight
NotificationInset
This discribes the number of pixels to be offset from the indicated Notification Position
IsShowing
Is the overlay being displayed
IsEnabled
Is the overlay enabled i.e. can it be shown
Methods
Open Overlay
or
Opens the Steam client overlay to the indicated dialog
Opens the Steam client overlay to the invite dialog for the indicated lobby
Undocumented, Valve has not yet documented this feature, we are simply assuming
Open the Steam client overlay to an invite for a given Game Server
Undocumented, Valve has not yet documented this feature, we are simply assuming
Open the Steam client overlay to an invite for a given remote play session
Opens the Steam client overlay to the store page of the indicated app with flags to modify the behaviour.
or
Opens the Steam client overlay to the indicated user dialog
Opens the Steam client overlay to the indicated web page
Last updated