@overlayed/app 0.24.1 → 0.24.3
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/dist/index.d.ts +375 -8
- package/dist/index.js +3 -3
- package/dist/native-interface/build/overlayed_native_interface_x64.node +0 -0
- package/dist/native-interface/dist/index.d.ts +141 -0
- package/dist/native-interface/dist/index.d.ts.map +1 -0
- package/dist/native-interface/dist/index.js +24 -0
- package/dist/native-interface/dist/index.js.map +1 -0
- package/dist/render-interface/build/overlayed_render_hook_x64.dll +0 -0
- package/dist/render-interface/build/overlayed_render_interface_x64.node +0 -0
- package/dist/render-interface/dist/index.d.ts +330 -0
- package/dist/render-interface/dist/index.d.ts.map +1 -0
- package/dist/render-interface/dist/index.js +214 -0
- package/dist/render-interface/dist/index.js.map +1 -0
- package/package.json +17 -17
- package/dist/native-interface/main.js +0 -13
- package/dist/render-interface/main.js +0 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="electron" />
|
|
1
3
|
import * as arktype0 from "arktype";
|
|
2
4
|
import { Module, Type } from "arktype";
|
|
3
5
|
import EventEmitter$1 from "events";
|
|
@@ -5,8 +7,6 @@ import "xior";
|
|
|
5
7
|
import * as electron0 from "electron";
|
|
6
8
|
import { BrowserWindow, BrowserWindowConstructorOptions } from "electron";
|
|
7
9
|
import * as arktype_internal_methods_object_ts0 from "arktype/internal/methods/object.ts";
|
|
8
|
-
import { Process } from "@overlayed-gg/native-interface";
|
|
9
|
-
import { AccessLevel, KeyboardKeyEvent, MouseButtonEvent, RenderInterface, RenderInterface as RenderInterface$1, RenderWindow, RenderWindow as RenderWindow$1, RenderWindowConstructorOptions, RenderWindowConstructorOptions as RenderWindowConstructorOptions$1, VirtualKey, WindowEvent } from "@overlayed-gg/render-interface";
|
|
10
10
|
|
|
11
11
|
//#region ../utils/dist/index.d.ts
|
|
12
12
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -227,7 +227,6 @@ declare class Manager {
|
|
|
227
227
|
init(): void;
|
|
228
228
|
destroy(): void;
|
|
229
229
|
}
|
|
230
|
-
/** This should be kept in sync with Manager */
|
|
231
230
|
//#endregion
|
|
232
231
|
//#region src/managers/keybindManager.d.ts
|
|
233
232
|
type KeybindPressedCallback = () => string | void;
|
|
@@ -259,11 +258,42 @@ interface GameModel {
|
|
|
259
258
|
//#region src/instances.d.ts
|
|
260
259
|
declare function setUpdaterTokenResolver(newTokenResolver: () => string | undefined): void;
|
|
261
260
|
//#endregion
|
|
261
|
+
//#region ../../node_modules/.pnpm/@overlayed-gg+native-interface@0.1.12/node_modules/@overlayed-gg/native-interface/dist/index.d.ts
|
|
262
|
+
//#region types.d.ts
|
|
263
|
+
|
|
264
|
+
declare class Process$1 {
|
|
265
|
+
constructor(id: number);
|
|
266
|
+
injectDll(path: string, options?: {
|
|
267
|
+
method?: InjectionMethod;
|
|
268
|
+
maxAttemptCount?: number;
|
|
269
|
+
attemptRate?: number;
|
|
270
|
+
windowPollRate?: number;
|
|
271
|
+
windowWaitTimeout?: number;
|
|
272
|
+
processHandlePollRate?: number;
|
|
273
|
+
processHandleTimeout?: number;
|
|
274
|
+
notifyWaitTimeout?: number;
|
|
275
|
+
}): Promise<void>; // defaults: { method: InjectionMethod.windowsHook, maxAttemptCount: 10, attemptRate: 500, windowPollRate: 100, windowWaitTimeout: 4294967295, processHandlePollRate: 1000, processHandleTimeout: 4294967295, notifyWaitTimeout: 3000 }, all times are declared in miliseconds
|
|
276
|
+
|
|
277
|
+
readonly id: number;
|
|
278
|
+
readonly name?: string;
|
|
279
|
+
readonly path?: string;
|
|
280
|
+
readonly createdAt?: Date;
|
|
281
|
+
readonly destroyedAt?: Date;
|
|
282
|
+
readonly exitCode?: number;
|
|
283
|
+
readonly isElevated?: boolean;
|
|
284
|
+
static readonly currentProcess: Process$1;
|
|
285
|
+
}
|
|
286
|
+
declare const Process: Process$1;
|
|
287
|
+
declare const enum InjectionMethod {
|
|
288
|
+
windowsHook = 0,
|
|
289
|
+
}
|
|
290
|
+
//#endregion
|
|
291
|
+
//#endregion
|
|
262
292
|
//#region src/managers/gameLaunchManager.d.ts
|
|
263
293
|
type GameLaunchManagerEvents = {
|
|
264
294
|
gameCloseInternal: (args: {
|
|
265
295
|
ravenGame: GameModel;
|
|
266
|
-
process: Process;
|
|
296
|
+
process: typeof Process;
|
|
267
297
|
}) => MaybePromise<void>;
|
|
268
298
|
gameLaunch: (args: {
|
|
269
299
|
game: string;
|
|
@@ -277,10 +307,338 @@ type GameLaunchManagerEvents = {
|
|
|
277
307
|
}) => MaybePromise<void>;
|
|
278
308
|
gameReadyInternal: (args: {
|
|
279
309
|
ravenGame: GameModel;
|
|
280
|
-
process: Process;
|
|
310
|
+
process: typeof Process;
|
|
281
311
|
}) => MaybePromise<void>;
|
|
282
312
|
};
|
|
283
313
|
//#endregion
|
|
314
|
+
//#region ../../node_modules/.pnpm/@overlayed-gg+render-interface@0.1.14/node_modules/@overlayed-gg/render-interface/dist/index.d.ts
|
|
315
|
+
//#region types.d.ts
|
|
316
|
+
|
|
317
|
+
declare class RenderInterface$1 {
|
|
318
|
+
constructor(name: string, options?: {
|
|
319
|
+
maxWindowCount?: number;
|
|
320
|
+
eventQueueSize?: number;
|
|
321
|
+
access?: AccessLevel;
|
|
322
|
+
}); // default: { maxWindowCount: 10, eventQueueSize: 200, access: AccessLevel.Default }
|
|
323
|
+
|
|
324
|
+
newWindowInternal(browserWindow: Electron.BrowserWindow, options?: RenderWindowConstructorOptions): RenderWindow;
|
|
325
|
+
getGlobalMouseBlock(): boolean;
|
|
326
|
+
getGlobalKeyboardBlock(): boolean;
|
|
327
|
+
getGlobalCursorOverride(): boolean;
|
|
328
|
+
getKeyInputBlock(key: VirtualKey): boolean;
|
|
329
|
+
setGlobalMouseBlock(block: boolean): void;
|
|
330
|
+
setGlobalKeyboardBlock(block: boolean): void;
|
|
331
|
+
setGlobalCursorOverride(show: boolean): void;
|
|
332
|
+
setKeyInputBlock(key: VirtualKey, block: boolean): void;
|
|
333
|
+
eventNames(): string[];
|
|
334
|
+
getMaxListeners(): number;
|
|
335
|
+
removeAllListeners(): this;
|
|
336
|
+
listeners(eventName: "keyDown"): Function[];
|
|
337
|
+
rawListeners(eventName: "keyDown"): Function[];
|
|
338
|
+
listenerCount(eventName: "keyDown", listener?: (event: KeyboardKeyEvent) => void): number;
|
|
339
|
+
on(eventName: "keyDown", listener: (event: KeyboardKeyEvent) => void): this;
|
|
340
|
+
once(eventName: "keyDown", listener: (event: KeyboardKeyEvent) => void): this;
|
|
341
|
+
addListener(eventName: "keyDown", listener: (event: KeyboardKeyEvent) => void): this;
|
|
342
|
+
prependListener(eventName: "keyDown", listener: (event: KeyboardKeyEvent) => void): this;
|
|
343
|
+
prependOnceListener(eventName: "keyDown", listener: (event: KeyboardKeyEvent) => void): this;
|
|
344
|
+
off(eventName: "keyDown", listener: (event: KeyboardKeyEvent) => void): this;
|
|
345
|
+
removeListener(eventName: "keyDown", listener: (event: KeyboardKeyEvent) => void): this;
|
|
346
|
+
removeAllListeners(eventName: "keyDown"): this;
|
|
347
|
+
listeners(eventName: "keyUp"): Function[];
|
|
348
|
+
rawListeners(eventName: "keyUp"): Function[];
|
|
349
|
+
listenerCount(eventName: "keyUp", listener?: (event: KeyboardKeyEvent) => void): number;
|
|
350
|
+
on(eventName: "keyUp", listener: (event: KeyboardKeyEvent) => void): this;
|
|
351
|
+
once(eventName: "keyUp", listener: (event: KeyboardKeyEvent) => void): this;
|
|
352
|
+
addListener(eventName: "keyUp", listener: (event: KeyboardKeyEvent) => void): this;
|
|
353
|
+
prependListener(eventName: "keyUp", listener: (event: KeyboardKeyEvent) => void): this;
|
|
354
|
+
prependOnceListener(eventName: "keyUp", listener: (event: KeyboardKeyEvent) => void): this;
|
|
355
|
+
off(eventName: "keyUp", listener: (event: KeyboardKeyEvent) => void): this;
|
|
356
|
+
removeListener(eventName: "keyUp", listener: (event: KeyboardKeyEvent) => void): this;
|
|
357
|
+
removeAllListeners(eventName: "keyUp"): this;
|
|
358
|
+
listeners(eventName: "mouseDown"): Function[];
|
|
359
|
+
rawListeners(eventName: "mouseDown"): Function[];
|
|
360
|
+
listenerCount(eventName: "mouseDown", listener?: (event: MouseButtonEvent) => void): number;
|
|
361
|
+
on(eventName: "mouseDown", listener: (event: MouseButtonEvent) => void): this;
|
|
362
|
+
once(eventName: "mouseDown", listener: (event: MouseButtonEvent) => void): this;
|
|
363
|
+
addListener(eventName: "mouseDown", listener: (event: MouseButtonEvent) => void): this;
|
|
364
|
+
prependListener(eventName: "mouseDown", listener: (event: MouseButtonEvent) => void): this;
|
|
365
|
+
prependOnceListener(eventName: "mouseDown", listener: (event: MouseButtonEvent) => void): this;
|
|
366
|
+
off(eventName: "mouseDown", listener: (event: MouseButtonEvent) => void): this;
|
|
367
|
+
removeListener(eventName: "mouseDown", listener: (event: MouseButtonEvent) => void): this;
|
|
368
|
+
removeAllListeners(eventName: "mouseDown"): this;
|
|
369
|
+
listeners(eventName: "mouseUp"): Function[];
|
|
370
|
+
rawListeners(eventName: "mouseUp"): Function[];
|
|
371
|
+
listenerCount(eventName: "mouseUp", listener?: (event: MouseButtonEvent) => void): number;
|
|
372
|
+
on(eventName: "mouseUp", listener: (event: MouseButtonEvent) => void): this;
|
|
373
|
+
once(eventName: "mouseUp", listener: (event: MouseButtonEvent) => void): this;
|
|
374
|
+
addListener(eventName: "mouseUp", listener: (event: MouseButtonEvent) => void): this;
|
|
375
|
+
prependListener(eventName: "mouseUp", listener: (event: MouseButtonEvent) => void): this;
|
|
376
|
+
prependOnceListener(eventName: "mouseUp", listener: (event: MouseButtonEvent) => void): this;
|
|
377
|
+
off(eventName: "mouseUp", listener: (event: MouseButtonEvent) => void): this;
|
|
378
|
+
removeListener(eventName: "mouseUp", listener: (event: MouseButtonEvent) => void): this;
|
|
379
|
+
removeAllListeners(eventName: "mouseUp"): this;
|
|
380
|
+
listeners(eventName: "resolution"): Function[];
|
|
381
|
+
rawListeners(eventName: "resolution"): Function[];
|
|
382
|
+
listenerCount(eventName: "resolution", listener?: (width: number, height: number) => void): number;
|
|
383
|
+
on(eventName: "resolution", listener: (width: number, height: number) => void): this;
|
|
384
|
+
once(eventName: "resolution", listener: (width: number, height: number) => void): this;
|
|
385
|
+
addListener(eventName: "resolution", listener: (width: number, height: number) => void): this;
|
|
386
|
+
prependListener(eventName: "resolution", listener: (width: number, height: number) => void): this;
|
|
387
|
+
prependOnceListener(eventName: "resolution", listener: (width: number, height: number) => void): this;
|
|
388
|
+
off(eventName: "resolution", listener: (width: number, height: number) => void): this;
|
|
389
|
+
removeListener(eventName: "resolution", listener: (width: number, height: number) => void): this;
|
|
390
|
+
removeAllListeners(eventName: "resolution"): this;
|
|
391
|
+
listeners(eventName: "keyboardFocus"): Function[];
|
|
392
|
+
rawListeners(eventName: "keyboardFocus"): Function[];
|
|
393
|
+
listenerCount(eventName: "keyboardFocus", listener?: (focus: boolean) => void): number;
|
|
394
|
+
on(eventName: "keyboardFocus", listener: (focus: boolean) => void): this;
|
|
395
|
+
once(eventName: "keyboardFocus", listener: (focus: boolean) => void): this;
|
|
396
|
+
addListener(eventName: "keyboardFocus", listener: (focus: boolean) => void): this;
|
|
397
|
+
prependListener(eventName: "keyboardFocus", listener: (focus: boolean) => void): this;
|
|
398
|
+
prependOnceListener(eventName: "keyboardFocus", listener: (focus: boolean) => void): this;
|
|
399
|
+
off(eventName: "keyboardFocus", listener: (focus: boolean) => void): this;
|
|
400
|
+
removeListener(eventName: "keyboardFocus", listener: (focus: boolean) => void): this;
|
|
401
|
+
removeAllListeners(eventName: "keyboardFocus"): this;
|
|
402
|
+
}
|
|
403
|
+
//#endregion
|
|
404
|
+
//#region index.d.ts
|
|
405
|
+
|
|
406
|
+
declare const RenderInterface: RenderInterface$1;
|
|
407
|
+
declare enum VirtualKey {
|
|
408
|
+
LeftButton = 1,
|
|
409
|
+
RightButton = 2,
|
|
410
|
+
Cancel = 3,
|
|
411
|
+
MiddleButton = 4,
|
|
412
|
+
ExtraButton1 = 5,
|
|
413
|
+
ExtraButton2 = 6,
|
|
414
|
+
Back = 8,
|
|
415
|
+
Tab = 9,
|
|
416
|
+
Clear = 12,
|
|
417
|
+
Return = 13,
|
|
418
|
+
Shift = 16,
|
|
419
|
+
Control = 17,
|
|
420
|
+
Menu = 18,
|
|
421
|
+
Pause = 19,
|
|
422
|
+
CapsLock = 20,
|
|
423
|
+
Kana = 21,
|
|
424
|
+
Hangeul = 21,
|
|
425
|
+
Hangul = 21,
|
|
426
|
+
Junja = 23,
|
|
427
|
+
Final = 24,
|
|
428
|
+
Hanja = 25,
|
|
429
|
+
Kanji = 25,
|
|
430
|
+
Escape = 27,
|
|
431
|
+
Convert = 28,
|
|
432
|
+
NonConvert = 29,
|
|
433
|
+
Accept = 30,
|
|
434
|
+
ModeChange = 31,
|
|
435
|
+
Space = 32,
|
|
436
|
+
Prior = 33,
|
|
437
|
+
Next = 34,
|
|
438
|
+
End = 35,
|
|
439
|
+
Home = 36,
|
|
440
|
+
Left = 37,
|
|
441
|
+
Up = 38,
|
|
442
|
+
Right = 39,
|
|
443
|
+
Down = 40,
|
|
444
|
+
Select = 41,
|
|
445
|
+
Print = 42,
|
|
446
|
+
Execute = 43,
|
|
447
|
+
Snapshot = 44,
|
|
448
|
+
Insert = 45,
|
|
449
|
+
Delete = 46,
|
|
450
|
+
Help = 47,
|
|
451
|
+
N0 = 48,
|
|
452
|
+
N1 = 49,
|
|
453
|
+
N2 = 50,
|
|
454
|
+
N3 = 51,
|
|
455
|
+
N4 = 52,
|
|
456
|
+
N5 = 53,
|
|
457
|
+
N6 = 54,
|
|
458
|
+
N7 = 55,
|
|
459
|
+
N8 = 56,
|
|
460
|
+
N9 = 57,
|
|
461
|
+
A = 65,
|
|
462
|
+
B = 66,
|
|
463
|
+
C = 67,
|
|
464
|
+
D = 68,
|
|
465
|
+
E = 69,
|
|
466
|
+
F = 70,
|
|
467
|
+
G = 71,
|
|
468
|
+
H = 72,
|
|
469
|
+
I = 73,
|
|
470
|
+
J = 74,
|
|
471
|
+
K = 75,
|
|
472
|
+
L = 76,
|
|
473
|
+
M = 77,
|
|
474
|
+
N = 78,
|
|
475
|
+
O = 79,
|
|
476
|
+
P = 80,
|
|
477
|
+
Q = 81,
|
|
478
|
+
R = 82,
|
|
479
|
+
S = 83,
|
|
480
|
+
T = 84,
|
|
481
|
+
U = 85,
|
|
482
|
+
V = 86,
|
|
483
|
+
W = 87,
|
|
484
|
+
X = 88,
|
|
485
|
+
Y = 89,
|
|
486
|
+
Z = 90,
|
|
487
|
+
LeftWindows = 91,
|
|
488
|
+
RightWindows = 92,
|
|
489
|
+
Application = 93,
|
|
490
|
+
Sleep = 95,
|
|
491
|
+
Numpad0 = 96,
|
|
492
|
+
Numpad1 = 97,
|
|
493
|
+
Numpad2 = 98,
|
|
494
|
+
Numpad3 = 99,
|
|
495
|
+
Numpad4 = 100,
|
|
496
|
+
Numpad5 = 101,
|
|
497
|
+
Numpad6 = 102,
|
|
498
|
+
Numpad7 = 103,
|
|
499
|
+
Numpad8 = 104,
|
|
500
|
+
Numpad9 = 105,
|
|
501
|
+
Multiply = 106,
|
|
502
|
+
Add = 107,
|
|
503
|
+
Separator = 108,
|
|
504
|
+
Subtract = 109,
|
|
505
|
+
Decimal = 110,
|
|
506
|
+
Divide = 111,
|
|
507
|
+
F1 = 112,
|
|
508
|
+
F2 = 113,
|
|
509
|
+
F3 = 114,
|
|
510
|
+
F4 = 115,
|
|
511
|
+
F5 = 116,
|
|
512
|
+
F6 = 117,
|
|
513
|
+
F7 = 118,
|
|
514
|
+
F8 = 119,
|
|
515
|
+
F9 = 120,
|
|
516
|
+
F10 = 121,
|
|
517
|
+
F11 = 122,
|
|
518
|
+
F12 = 123,
|
|
519
|
+
F13 = 124,
|
|
520
|
+
F14 = 125,
|
|
521
|
+
F15 = 126,
|
|
522
|
+
F16 = 127,
|
|
523
|
+
F17 = 128,
|
|
524
|
+
F18 = 129,
|
|
525
|
+
F19 = 130,
|
|
526
|
+
F20 = 131,
|
|
527
|
+
F21 = 132,
|
|
528
|
+
F22 = 133,
|
|
529
|
+
F23 = 134,
|
|
530
|
+
F24 = 135,
|
|
531
|
+
NumLock = 144,
|
|
532
|
+
ScrollLock = 145,
|
|
533
|
+
NEC_Equal = 146,
|
|
534
|
+
Fujitsu_Jisho = 146,
|
|
535
|
+
Fujitsu_Masshou = 147,
|
|
536
|
+
Fujitsu_Touroku = 148,
|
|
537
|
+
Fujitsu_Loya = 149,
|
|
538
|
+
Fujitsu_Roya = 150,
|
|
539
|
+
LeftShift = 160,
|
|
540
|
+
RightShift = 161,
|
|
541
|
+
LeftControl = 162,
|
|
542
|
+
RightControl = 163,
|
|
543
|
+
LeftMenu = 164,
|
|
544
|
+
RightMenu = 165,
|
|
545
|
+
BrowserBack = 166,
|
|
546
|
+
BrowserForward = 167,
|
|
547
|
+
BrowserRefresh = 168,
|
|
548
|
+
BrowserStop = 169,
|
|
549
|
+
BrowserSearch = 170,
|
|
550
|
+
BrowserFavorites = 171,
|
|
551
|
+
BrowserHome = 172,
|
|
552
|
+
VolumeMute = 173,
|
|
553
|
+
VolumeDown = 174,
|
|
554
|
+
VolumeUp = 175,
|
|
555
|
+
MediaNextTrack = 176,
|
|
556
|
+
MediaPrevTrack = 177,
|
|
557
|
+
MediaStop = 178,
|
|
558
|
+
MediaPlayPause = 179,
|
|
559
|
+
LaunchMail = 180,
|
|
560
|
+
LaunchMediaSelect = 181,
|
|
561
|
+
LaunchApplication1 = 182,
|
|
562
|
+
LaunchApplication2 = 183,
|
|
563
|
+
OEM1 = 186,
|
|
564
|
+
OEMPlus = 187,
|
|
565
|
+
OEMComma = 188,
|
|
566
|
+
OEMMinus = 189,
|
|
567
|
+
OEMPeriod = 190,
|
|
568
|
+
OEM2 = 191,
|
|
569
|
+
OEM3 = 192,
|
|
570
|
+
OEM4 = 219,
|
|
571
|
+
OEM5 = 220,
|
|
572
|
+
OEM6 = 221,
|
|
573
|
+
OEM7 = 222,
|
|
574
|
+
OEM8 = 223,
|
|
575
|
+
OEMAX = 225,
|
|
576
|
+
OEM102 = 226,
|
|
577
|
+
ICOHelp = 227,
|
|
578
|
+
ICO00 = 228,
|
|
579
|
+
ProcessKey = 229,
|
|
580
|
+
ICOClear = 230,
|
|
581
|
+
Packet = 231,
|
|
582
|
+
OEMReset = 233,
|
|
583
|
+
OEMJump = 234,
|
|
584
|
+
OEMPA1 = 235,
|
|
585
|
+
OEMPA2 = 236,
|
|
586
|
+
OEMPA3 = 237,
|
|
587
|
+
OEMWSCtrl = 238,
|
|
588
|
+
OEMCUSel = 239,
|
|
589
|
+
OEMATTN = 240,
|
|
590
|
+
OEMFinish = 241,
|
|
591
|
+
OEMCopy = 242,
|
|
592
|
+
OEMAuto = 243,
|
|
593
|
+
OEMENLW = 244,
|
|
594
|
+
OEMBackTab = 245,
|
|
595
|
+
ATTN = 246,
|
|
596
|
+
CRSel = 247,
|
|
597
|
+
EXSel = 248,
|
|
598
|
+
EREOF = 249,
|
|
599
|
+
Play = 250,
|
|
600
|
+
Zoom = 251,
|
|
601
|
+
Noname = 252,
|
|
602
|
+
PA1 = 253,
|
|
603
|
+
OEMClear = 254,
|
|
604
|
+
}
|
|
605
|
+
declare enum AccessLevel {
|
|
606
|
+
Default = 0,
|
|
607
|
+
Global = 1,
|
|
608
|
+
Admin = 2,
|
|
609
|
+
}
|
|
610
|
+
interface RenderWindow extends Electron.BrowserWindow {
|
|
611
|
+
getLayer(): number;
|
|
612
|
+
getInput(): boolean;
|
|
613
|
+
getInputBlock(): boolean;
|
|
614
|
+
getCursorOverride(): boolean;
|
|
615
|
+
setLayer(layer: number): void;
|
|
616
|
+
setInput(input: boolean): void;
|
|
617
|
+
setInputBlock(block: boolean): void;
|
|
618
|
+
setCursorOverride(override: boolean): void;
|
|
619
|
+
}
|
|
620
|
+
interface WindowEvent {
|
|
621
|
+
window?: RenderWindow;
|
|
622
|
+
}
|
|
623
|
+
interface MouseButtonEvent extends WindowEvent {
|
|
624
|
+
x: number;
|
|
625
|
+
y: number;
|
|
626
|
+
globalX: number;
|
|
627
|
+
globalY: number;
|
|
628
|
+
key: VirtualKey;
|
|
629
|
+
}
|
|
630
|
+
interface KeyboardKeyEvent extends WindowEvent {
|
|
631
|
+
key: VirtualKey;
|
|
632
|
+
}
|
|
633
|
+
interface RenderWindowConstructorOptions extends Electron.BrowserWindowConstructorOptions {
|
|
634
|
+
layer?: number;
|
|
635
|
+
createForeground?: boolean;
|
|
636
|
+
hasInput?: boolean;
|
|
637
|
+
hasInputBlock?: boolean;
|
|
638
|
+
hasCursorOverride?: boolean;
|
|
639
|
+
}
|
|
640
|
+
//#endregion
|
|
641
|
+
//#endregion
|
|
284
642
|
//#region src/utilities/publicTypes.d.ts
|
|
285
643
|
type ActiveGameInfo = {
|
|
286
644
|
isConnected: boolean;
|
|
@@ -411,9 +769,9 @@ type OverlayedAppKeybindModule<TKeybind extends string> = Record<TKeybind, {
|
|
|
411
769
|
*/
|
|
412
770
|
updateKeybinds: (keybinds: Partial<OverlayedAppKeybindsConfig<TKeybind>>) => void;
|
|
413
771
|
};
|
|
414
|
-
interface OverlayedAppWindowsModule extends Pick<RenderInterface
|
|
772
|
+
interface OverlayedAppWindowsModule extends Pick<typeof RenderInterface, "on" | "off" | "once" | "addListener" | "prependListener" | "prependOnceListener" | "removeListener" | "removeAllListeners"> {
|
|
415
773
|
createWindow(options: BrowserWindowConstructorOptions): BrowserWindow;
|
|
416
|
-
createInGameWindow(options: RenderWindowConstructorOptions
|
|
774
|
+
createInGameWindow(options: RenderWindowConstructorOptions): RenderWindow;
|
|
417
775
|
getActiveGameInfo: () => ActiveGameInfo;
|
|
418
776
|
}
|
|
419
777
|
type OverlayedAppInputModuleRaw = {
|
|
@@ -645,7 +1003,16 @@ declare function overlayed<TModule extends GameModule, TShortcut extends string>
|
|
|
645
1003
|
//#region src/managers/nativeModuleManager.d.ts
|
|
646
1004
|
declare function setFetchLatestTokenCallback(newFetchLatestToken: () => Promise<unknown> | undefined): void;
|
|
647
1005
|
//#endregion
|
|
648
|
-
|
|
1006
|
+
//#region src/index.d.ts
|
|
1007
|
+
/**
|
|
1008
|
+
* Add two numbers together
|
|
1009
|
+
* @param x - The first number
|
|
1010
|
+
* @param y - The second number
|
|
1011
|
+
* @returns The sum of x and y
|
|
1012
|
+
*/
|
|
1013
|
+
declare function add(x: number, y: number): number;
|
|
1014
|
+
//#endregion
|
|
1015
|
+
export { ActiveGameInfo, type BundleAppConfig, type BundleSiteConfig, type GameLaunchManagerEvents, type KeybindSchemaEntry as KeybindConfig, type KeyboardKeyEvent, type LoggerScope, type MouseButtonEvent, type OverlayedApp, type OverlayedConfig, OverridesManagerScope, RenderInterface, type RenderWindow, type RenderWindowConstructorOptions, VirtualKey, type WindowEvent, add, defineConfig, overlayed, setFetchLatestTokenCallback, setUpdaterTokenResolver };
|
|
649
1016
|
declare global {
|
|
650
1017
|
namespace Electron {
|
|
651
1018
|
interface BrowserWindow {
|