@overwolf/ow-electron-packages-types 0.0.13 → 0.0.15
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/game-list.ts +2 -1
- package/overlay.d.ts +39 -14
- package/package.json +1 -1
package/game-list.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// game list version:
|
|
1
|
+
// game list version: 21
|
|
2
2
|
|
|
3
3
|
export const enum kLaunchersIds {
|
|
4
4
|
LOLLauncher = 10902,
|
|
@@ -60,6 +60,7 @@ export const enum kGameIds {
|
|
|
60
60
|
SpectreDivide = 24484,
|
|
61
61
|
SplitgateArenaWarfare = 21404,
|
|
62
62
|
StarCraftII = 5855,
|
|
63
|
+
StardewValley = 19054,
|
|
63
64
|
Starfield = 23222,
|
|
64
65
|
Stormgate = 23818,
|
|
65
66
|
TeamfightTactics = 21570,
|
package/overlay.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
BrowserWindowConstructorOptions,
|
|
4
4
|
Size,
|
|
5
5
|
WebContents,
|
|
6
|
+
Display,
|
|
7
|
+
Rectangle
|
|
6
8
|
} from 'electron';
|
|
7
9
|
import { EventEmitter } from 'events';
|
|
8
10
|
|
|
@@ -62,19 +64,25 @@ export interface OverlayOptions {
|
|
|
62
64
|
zOrder?: ZOrderType | number; // backwards compatible
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
OverlayOptions {
|
|
67
|
+
/** Overlay ow-electron options */
|
|
68
|
+
export interface OverlayOptions {
|
|
68
69
|
/**
|
|
69
|
-
*
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
* Controls how input events are handled by the overlay window
|
|
71
|
+
* @default 'noPassThrough'
|
|
72
|
+
*/
|
|
73
|
+
passthrough?: PassthroughType | number;
|
|
72
74
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Controls the Z-order (stacking order) of the overlay window relative to other window
|
|
77
|
+
* @default 'default'
|
|
78
|
+
*/
|
|
79
|
+
zOrder?: ZOrderType | number; // backwards compatible;
|
|
75
80
|
|
|
76
|
-
/**
|
|
77
|
-
|
|
81
|
+
/**
|
|
82
|
+
* If true, the overlay will not intercept keyboard input.
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
ignoreKeyboardInput?: boolean;
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
export interface IOverlayHotkey {
|
|
@@ -112,10 +120,27 @@ export interface InjectionError {
|
|
|
112
120
|
}
|
|
113
121
|
|
|
114
122
|
export interface GameWindowInfo {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
123
|
+
/** The dimensions of the game window. */
|
|
124
|
+
readonly size: Size;
|
|
125
|
+
|
|
126
|
+
/** The native window handle (HWND) of the game window. */
|
|
127
|
+
readonly nativeHandle: number;
|
|
128
|
+
|
|
129
|
+
/** Indicates whether the game window is currently focused. */
|
|
130
|
+
readonly focused: boolean;
|
|
131
|
+
|
|
132
|
+
/** The graphics API used by the game (e.g., Direct3D 9, 11, 12, Vulkan). */
|
|
133
|
+
readonly graphics: 'd3d9' | 'd3d12' | 'd3d11' | 'vulkan' | string | undefined;
|
|
134
|
+
|
|
135
|
+
/** Display information for the screen on which the game window resides.
|
|
136
|
+
* Available since version 1.5.11.
|
|
137
|
+
*/
|
|
138
|
+
readonly screen?: Display;
|
|
139
|
+
|
|
140
|
+
/** The bounding rectangle of the game window in screen coordinates.
|
|
141
|
+
* Available since version 1.5.11.
|
|
142
|
+
*/
|
|
143
|
+
readonly bounds?: Rectangle;
|
|
119
144
|
}
|
|
120
145
|
|
|
121
146
|
export interface GameInputInterception {
|
package/package.json
CHANGED