@overwolf/ow-electron-packages-types 1.1.10-beta.1 → 1.1.11-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types.d.ts +31 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@overwolf/ow-electron-packages-types",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11-beta.0",
|
|
4
4
|
"description": "Type definition file for autocompletion and documentation purposes for ow-electron packages",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "types.d.ts",
|
package/types.d.ts
CHANGED
|
@@ -5467,6 +5467,11 @@ interface OverlayWindowOptions
|
|
|
5467
5467
|
* ignored when either condition is not met, falling back to the
|
|
5468
5468
|
* shared-memory (CPU copy) path.
|
|
5469
5469
|
*
|
|
5470
|
+
* There is no need to wait for {@link GameWindowInfo.isSharedTextureAvailable} before
|
|
5471
|
+
* creating the window. While the game's support is still unknown the window starts on the
|
|
5472
|
+
* shared-texture path, and switches to the CPU copy path if the game turns out not to
|
|
5473
|
+
* support it.
|
|
5474
|
+
*
|
|
5470
5475
|
* The rendering path follows the active game: when the overlay moves to a
|
|
5471
5476
|
* different game, a shared-texture window automatically falls back to the
|
|
5472
5477
|
* shared-memory (CPU copy) path on a game that does not support shared
|
|
@@ -5774,6 +5779,11 @@ interface InjectionError {
|
|
|
5774
5779
|
* - Screen display information.
|
|
5775
5780
|
* - Bounding rectangle of the game window.
|
|
5776
5781
|
*
|
|
5782
|
+
* Not available at injection time: the injected client reports the window only once the
|
|
5783
|
+
* game's graphics device initializes, a few seconds after `game-injected`. Until then
|
|
5784
|
+
* {@link ActiveGameInfo.gameWindowInfo} is `undefined`. The first `game-window-changed`
|
|
5785
|
+
* event delivers it and is the earliest point where every field below holds a real value.
|
|
5786
|
+
*
|
|
5777
5787
|
* @example
|
|
5778
5788
|
* ```ts
|
|
5779
5789
|
* overlay.on('game-window-changed', (windowInfo, gameInfo, reason) => {
|
|
@@ -5842,7 +5852,8 @@ interface GameWindowInfo {
|
|
|
5842
5852
|
* This is a capability probe only — to decide whether the path can actually be used
|
|
5843
5853
|
* on this machine, gate on {@link GameWindowInfo.isSharedTextureAvailable} instead.
|
|
5844
5854
|
*
|
|
5845
|
-
* `undefined` until the game
|
|
5855
|
+
* `undefined` until the game's graphics device initializes, a few seconds after
|
|
5856
|
+
* `game-injected`; the first `game-window-changed` event carries the resolved value.
|
|
5846
5857
|
*
|
|
5847
5858
|
* @since 2.0.0
|
|
5848
5859
|
*/
|
|
@@ -5850,7 +5861,11 @@ interface GameWindowInfo {
|
|
|
5850
5861
|
|
|
5851
5862
|
/**
|
|
5852
5863
|
* Indicates whether shared-texture (GPU) overlay rendering can actually be used with this
|
|
5853
|
-
* game
|
|
5864
|
+
* game.
|
|
5865
|
+
*
|
|
5866
|
+
* Not a precondition for creating a window: a `useSharedTexture` window may be created
|
|
5867
|
+
* before this value resolves, and the overlay corrects the rendering path on its own. Read
|
|
5868
|
+
* it to observe the outcome, or to branch when the window behaves differently on each path.
|
|
5854
5869
|
*
|
|
5855
5870
|
* `true` when the game's graphics API supports it
|
|
5856
5871
|
* ({@link GameWindowInfo.isSharedTextureSupported}), no GPU adapter mismatch was detected,
|
|
@@ -5859,7 +5874,8 @@ interface GameWindowInfo {
|
|
|
5859
5874
|
* `false` mid-game: the copy-failure verdict is reached only after frames were sent and
|
|
5860
5875
|
* repeatedly failed to draw.
|
|
5861
5876
|
*
|
|
5862
|
-
* `undefined` until the game
|
|
5877
|
+
* `undefined` until the game's graphics device initializes, a few seconds after
|
|
5878
|
+
* `game-injected`; the first `game-window-changed` event carries the resolved value.
|
|
5863
5879
|
*
|
|
5864
5880
|
* @see {@link https://dev.overwolf.com/ow-electron/reference/examples/overlay | Overlay examples}
|
|
5865
5881
|
*
|
|
@@ -5917,6 +5933,10 @@ interface ActiveGameInfo {
|
|
|
5917
5933
|
readonly gameInfo: GameInfo;
|
|
5918
5934
|
/**
|
|
5919
5935
|
* Window-specific details for the running game.
|
|
5936
|
+
*
|
|
5937
|
+
* `undefined` between injection and the first `game-window-changed` event: the injected
|
|
5938
|
+
* client reports the window only once the game's graphics device initializes.
|
|
5939
|
+
*
|
|
5920
5940
|
* @see {@link GameWindowInfo}.
|
|
5921
5941
|
*/
|
|
5922
5942
|
readonly gameWindowInfo: GameWindowInfo;
|
|
@@ -6450,6 +6470,11 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6450
6470
|
/**
|
|
6451
6471
|
* Fires when the game window focus state changes.
|
|
6452
6472
|
*
|
|
6473
|
+
* Also fires for a game whose injection was dismissed
|
|
6474
|
+
* ({@link GameLaunchEvent.dismiss}). That window info carries position, size and focus
|
|
6475
|
+
* only, with no graphics or shared-texture fields, so it is not a substitute for the first
|
|
6476
|
+
* `game-window-changed`.
|
|
6477
|
+
*
|
|
6453
6478
|
* @param eventName - `game-focus-changed`
|
|
6454
6479
|
* @param listener - Callback with window info, game info, and focus state.
|
|
6455
6480
|
* @see {@link GameWindowInfo}.
|
|
@@ -6465,7 +6490,9 @@ interface IOverwolfOverlayApi extends EventEmitter {
|
|
|
6465
6490
|
): this;
|
|
6466
6491
|
|
|
6467
6492
|
/**
|
|
6468
|
-
* Fires when the game window is resized or changes position
|
|
6493
|
+
* Fires when the game window is resized or changes position, and once when the injected
|
|
6494
|
+
* client first reports the window. That first event is the earliest point where
|
|
6495
|
+
* {@link GameWindowInfo} is available.
|
|
6469
6496
|
*
|
|
6470
6497
|
* @param eventName - `game-window-changed`
|
|
6471
6498
|
* @param listener - Callback with window info, game info, and optional reason.
|