asajs 4.1.4 → 4.1.6

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.
@@ -12,7 +12,7 @@ import { Parser } from "../bindings/Parser.js";
12
12
  async function buildUI() {
13
13
  const build = Memory.build();
14
14
  build.set("ui/_ui_defs.json", {
15
- ui_defs: Array.from(build.keys()),
15
+ ui_defs: Array.from(build.keys(), v => v.replace(/\\/g, "/")),
16
16
  });
17
17
  if (config.global_variables)
18
18
  build.set("ui/_global_variables.json", config.global_variables);
@@ -255,7 +255,7 @@ export function StackPanel(properties, namespace, name, allowObfuscate) {
255
255
  export function InputPanel(properties, namespace, name, allowObfuscate) {
256
256
  return new UI(Type.INPUT_PANEL, name, namespace, undefined, allowObfuscate).setProperties(properties || {});
257
257
  }
258
- export function Gird(properties, namespace, name, allowObfuscate) {
258
+ export function Grid(properties, namespace, name, allowObfuscate) {
259
259
  return new UI(Type.GRID, name, namespace, undefined, allowObfuscate).setProperties(properties || {});
260
260
  }
261
261
  export function Screen(properties, namespace, name, allowObfuscate) {
@@ -39,7 +39,7 @@ export declare function Panel(properties?: Panel, namespace?: string, name?: str
39
39
  export declare function CollectionPanel(properties?: CollectionPanel, namespace?: string, name?: string, allowObfuscate?: boolean): UI<Type.COLLECTION_PANEL, null>;
40
40
  export declare function StackPanel(properties?: StackPanel, namespace?: string, name?: string, allowObfuscate?: boolean): UI<Type.STACK_PANEL, null>;
41
41
  export declare function InputPanel(properties?: InputPanel, namespace?: string, name?: string, allowObfuscate?: boolean): UI<Type.INPUT_PANEL, null>;
42
- export declare function Gird(properties?: Grid, namespace?: string, name?: string, allowObfuscate?: boolean): UI<Type.GRID, null>;
42
+ export declare function Grid(properties?: Grid, namespace?: string, name?: string, allowObfuscate?: boolean): UI<Type.GRID, null>;
43
43
  export declare function Screen(properties?: Screen, namespace?: string, name?: string, allowObfuscate?: boolean): UI<Type.SCREEN, null>;
44
44
  export declare function Image(properties?: Image, namespace?: string, name?: string, allowObfuscate?: boolean): UI<Type.IMAGE, null>;
45
45
  export declare function Label(properties?: Label, namespace?: string, name?: string, allowObfuscate?: boolean): UI<Type.LABEL, null>;
@@ -1,5 +1,6 @@
1
1
  import { Value } from "../value.js";
2
- export interface Image {
2
+ import { Sprite } from "./Sprite.js";
3
+ export interface Image extends Sprite {
3
4
  fill?: Value<boolean>;
4
5
  texture_path?: Value<string>;
5
6
  texture?: Value<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asajs",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "description": "Create your Minecraft JSON-UI resource packs using JavaScript",
5
5
  "keywords": [
6
6
  "Minecraft",