Overwolf.games
Overwolf.games represents Overwolf’s games related information.
Properties
| Property | Type | Description |
|---|---|---|
|
.gameHeight
|
The gameHeight property returns the current running game’s height. | |
|
.gameWidth
|
The gameWidth property returns the current running game’s width. | |
|
.isGameInFocus
|
The isGameInFocus property indicates whether the game is in focus. When a game is in focus, Overwolf can interact with the game. | |
|
.isGameRunning
|
The isGameRunning property indicates if a supported game is currently running, not necessarily that the game is in focus and overlayed by Overwolf. | |
|
.runningGameId
|
The runningGameId property returns the Overwolf game ID of the current running game. | |
|
.runningGameTitle
|
The runningGameTitle property returns the current running game title. |
Events
| Event | Description |
|---|---|
|
.onGameResolutionChanged()
|
Occurs when the current running game resolution has changed.
|
|
.onGameInFocusChanged()
|
Occurs when the game gets focus or not. When the game is in focus Overwolf can interact with it. Happens whenever the user hits alt+tab or minimizes/restores the game.
|
|
.onRunningGameChanged()
|
Occurs when the current running game has changed, happens only when launching a game.
|
