@modlock/modlock 0.1.89 → 0.1.91
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/bystander.d.ts +23 -0
- package/chat.d.ts +28 -0
- package/index.d.ts +11 -2
- package/index.js +2153 -2015
- package/package.json +6 -6
- package/ui.d.ts +24 -2
package/package.json
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"name": "@modlock/modlock",
|
|
9
9
|
"optionalDependencies": {
|
|
10
|
-
"@modlock/darwin-arm64": "0.1.
|
|
11
|
-
"@modlock/darwin-x64": "0.1.
|
|
12
|
-
"@modlock/linux-arm64": "0.1.
|
|
13
|
-
"@modlock/linux-x64": "0.1.
|
|
14
|
-
"@modlock/win32-x64": "0.1.
|
|
10
|
+
"@modlock/darwin-arm64": "0.1.91",
|
|
11
|
+
"@modlock/darwin-x64": "0.1.91",
|
|
12
|
+
"@modlock/linux-arm64": "0.1.91",
|
|
13
|
+
"@modlock/linux-x64": "0.1.91",
|
|
14
|
+
"@modlock/win32-x64": "0.1.91"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"type": "module",
|
|
22
22
|
"types": "index.d.ts",
|
|
23
|
-
"version": "0.1.
|
|
23
|
+
"version": "0.1.91"
|
|
24
24
|
}
|
package/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Player, type Wheel } from './host.gen.js';
|
|
1
|
+
import { type ChatEvent, type Player, type Wheel } from './host.gen.js';
|
|
2
2
|
/**
|
|
3
3
|
* Length is a size: pixels, a percentage of the parent, 'fit' to size to the
|
|
4
4
|
* children, or 'fill' to share the space left in the parent's flow.
|
|
@@ -436,6 +436,12 @@ export declare function show(player: Player, root: Child): boolean;
|
|
|
436
436
|
* an empty list shows them all again.
|
|
437
437
|
*/
|
|
438
438
|
export declare function hideHud(player: Player, parts: readonly HudPart[]): boolean;
|
|
439
|
+
/**
|
|
440
|
+
* hideHudForAll hides parts of the game's own HUD from every player, now and
|
|
441
|
+
* as each joins, until the next call; an empty list shows them all again. A
|
|
442
|
+
* player's own hideHud list adds to it.
|
|
443
|
+
*/
|
|
444
|
+
export declare function hideHudForAll(parts: readonly HudPart[]): void;
|
|
439
445
|
/**
|
|
440
446
|
* freeCursor shows player's mouse cursor without Tab held while free is true,
|
|
441
447
|
* so they can click the mod's panels, such as a pick screen; false gives the
|
|
@@ -510,8 +516,24 @@ export declare function sheet(path: string): boolean;
|
|
|
510
516
|
* and returns false.
|
|
511
517
|
*/
|
|
512
518
|
export declare function route(player: Player, name: string, value: unknown): boolean;
|
|
513
|
-
/**
|
|
519
|
+
/**
|
|
520
|
+
* hide removes the interface, the routes and the notices the mod shows
|
|
521
|
+
* player. What the mod shows every player, such as hideHudForAll's parts,
|
|
522
|
+
* stays.
|
|
523
|
+
*/
|
|
514
524
|
export declare function hide(player: Player): boolean;
|
|
525
|
+
/**
|
|
526
|
+
* joined draws what the mod shows every player for a player who joined,
|
|
527
|
+
* such as hideHudForAll's parts.
|
|
528
|
+
*/
|
|
529
|
+
export declare function joined(player: Player): void;
|
|
530
|
+
/**
|
|
531
|
+
* left forgets what the mod showed the player who left, so the next person
|
|
532
|
+
* in the slot starts with nothing of theirs, and takes down their chat line.
|
|
533
|
+
*/
|
|
534
|
+
export declare function left(player: Player): void;
|
|
535
|
+
/** heard shows a chat line to every player who may read it, if the mod shows chat lines. */
|
|
536
|
+
export declare function heard(line: ChatEvent): void;
|
|
515
537
|
/**
|
|
516
538
|
* toast shows player text in a notice at the lower left for seconds.
|
|
517
539
|
* Notices stack, newest last, slide in, and fade as they expire.
|