Skip to content

feat: Implement game event and info listeners#1

Open
Slap555 wants to merge 1 commit intooverwolf:masterfrom
Slap555:feature/game-events-and-info
Open

feat: Implement game event and info listeners#1
Slap555 wants to merge 1 commit intooverwolf:masterfrom
Slap555:feature/game-events-and-info

Conversation

@Slap555
Copy link
Copy Markdown

@Slap555 Slap555 commented Oct 7, 2025

This change modifies the ads-sample application to listen for and display game events and game info from the Overwolf API.

  • Updated manifest.json to include Launch and GameInfo permissions and to specify a list of required game events.
  • Added "Events" and "Game Info" tabs to ingame.html to display the new data.
  • Implemented event listeners in ingame.js for onNewEvents and onInfoUpdates.
  • Refactored JavaScript to be runnable in a browser for testing by wrapping Overwolf-specific calls in conditional checks.

This change modifies the ads-sample application to listen for and display game events and game info from the Overwolf API.

- Updated `manifest.json` to include `Launch` and `GameInfo` permissions and to specify a list of required game events.
- Added "Events" and "Game Info" tabs to `ingame.html` to display the new data.
- Implemented event listeners in `ingame.js` for `onNewEvents` and `onInfoUpdates`.
- Refactored JavaScript to be runnable in a browser for testing by wrapping Overwolf-specific calls in conditional checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant