@s2script/sdk 0.25.0 → 0.25.1
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/menu.d.ts +6 -2
- package/package.json +1 -1
package/menu.d.ts
CHANGED
|
@@ -80,8 +80,12 @@ export declare class Menu {
|
|
|
80
80
|
display(slot: number, seconds?: number): void;
|
|
81
81
|
/** Close an open menu for `slot` early. */
|
|
82
82
|
close(slot: number): void;
|
|
83
|
-
/**
|
|
84
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Register a display backend under a MenuStyle value (used by the CS2 center renderer).
|
|
85
|
+
* Returns the previous renderer, or undefined if none was registered, so a replacement can
|
|
86
|
+
* delegate to the previous backend when its own display is unavailable.
|
|
87
|
+
*/
|
|
88
|
+
static registerRenderer(name: string, renderer: MenuRenderer): MenuRenderer | undefined;
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
/** A live display of one menu to one slot, passed to a {@link MenuRenderer}. Owns the page/cursor state and exposes the input verbs a renderer drives. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s2script/sdk",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"license": "MIT OR Apache-2.0",
|
|
5
5
|
"description": "s2script SDK — the builtin capability types (imported as @s2script/sdk/entity, …) plus the `s2s` CLI for building Source 2 / CS2 plugins.",
|
|
6
6
|
"type": "module",
|