asajs 4.0.4-preview → 4.0.5-indev

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/config.d.ts CHANGED
@@ -7,6 +7,7 @@ export interface Config {
7
7
  importToPreview?: boolean
8
8
  autoEnable?: boolean
9
9
  gdkUserId?: string
10
+ fixInventoryItemRenderer?: boolean
10
11
  }
11
12
  packinfo?: {
12
13
  name?: string
@@ -1,4 +1,6 @@
1
1
  import { AnimationKeyframe } from "../components/AnimationKeyframe.js";
2
+ import { BagBinding } from "../types/enums/BagBinding.js";
3
+ import { config } from "./Configuration.js";
2
4
  export function FormatProperties(properties) {
3
5
  const property_bag = {};
4
6
  for (const key in properties) {
@@ -8,6 +10,9 @@ export function FormatProperties(properties) {
8
10
  delete properties[key];
9
11
  }
10
12
  }
13
+ if (config.compiler?.fixInventoryItemRenderer && property_bag[BagBinding.ITEM_ID_AUX]) {
14
+ property_bag[BagBinding.ITEM_ID_AUX] = `(${property_bag[BagBinding.ITEM_ID_AUX]} / 1)`;
15
+ }
11
16
  if (properties.anchor) {
12
17
  properties.anchor_from = properties.anchor_to = properties.anchor;
13
18
  delete properties.anchor;
@@ -2,7 +2,7 @@ import { RandomBindingString } from "../../components/Utils.js";
2
2
  import { defaultFunctions } from "./Function.js";
3
3
  export function intToBin(input) {
4
4
  const { abs, negabs } = defaultFunctions;
5
- const ret = RandomBindingString(16);
5
+ const ret = RandomBindingString();
6
6
  const bindings = [];
7
7
  // negative bit
8
8
  bindings.push({
@@ -15,7 +15,7 @@ export function intToBin(input) {
15
15
  };
16
16
  }
17
17
  export function binToInt(input) {
18
- const ret = RandomBindingString(16);
18
+ const ret = RandomBindingString();
19
19
  const bindings = [];
20
20
  const nevBind = (input + "0");
21
21
  // Is reverse to positive
@@ -1,8 +1,5 @@
1
1
  import { RandomBindingString } from "../../components/Utils.js";
2
2
  export const FunctionMap = new Map();
3
- function callFn(name, ...args) {
4
- return FunctionMap.get(name)(...args);
5
- }
6
3
  export const defaultFunctions = {
7
4
  /**
8
5
  * Returns the absolute value of a number (the value without regard to whether it is positive or negative). For example, the absolute value of -5 is the same as the absolute value of 5.
@@ -10,7 +7,7 @@ export const defaultFunctions = {
10
7
  * @returns
11
8
  */
12
9
  abs: number => {
13
- const randomBinding = RandomBindingString(16);
10
+ const randomBinding = RandomBindingString();
14
11
  return {
15
12
  genBindings: [{ source: `((-1 + (${number} > 0) * 2) * ${number})`, target: randomBinding }],
16
13
  value: randomBinding,
@@ -22,7 +19,7 @@ export const defaultFunctions = {
22
19
  * @returns
23
20
  */
24
21
  negabs: number => {
25
- const randomBinding = RandomBindingString(16);
22
+ const randomBinding = RandomBindingString();
26
23
  return {
27
24
  genBindings: [{ source: `((-1 + (${number} < 0) * 2) * ${number})`, target: randomBinding }],
28
25
  value: randomBinding,
@@ -34,37 +31,88 @@ export const defaultFunctions = {
34
31
  * @returns
35
32
  */
36
33
  new: expression => {
37
- const randomBinding = RandomBindingString(16);
34
+ const randomBinding = RandomBindingString();
38
35
  return {
39
36
  genBindings: [{ source: expression, target: randomBinding }],
40
37
  value: randomBinding,
41
38
  };
42
39
  },
43
- /**
44
- * Returns the square root of a number.
45
- * @param number
46
- * @returns
47
- */
48
- sqrt: number => {
49
- const rtn = RandomBindingString(16), $1 = RandomBindingString(16), $2 = RandomBindingString(16);
50
- const { genBindings: absValue, value: absRtn } = callFn("abs", number);
40
+ sqrt: input => {
41
+ const ret = RandomBindingString();
42
+ const isNegative = RandomBindingString();
43
+ const isLowerThanTwo = RandomBindingString();
44
+ const next = RandomBindingString();
45
+ const nextEqualOrGreaterThan = RandomBindingString();
46
+ const isNextEqualOrGreaterThanRet = `(${nextEqualOrGreaterThan} * ${ret})`;
47
+ const isNotNextEqualOrGreaterThanRet = `((not ${nextEqualOrGreaterThan}) * ${next})`;
48
+ const lowerThanTwoPart = `(${isLowerThanTwo} * ${input})`;
49
+ const notLowerThanTwoPart = `((not ${isLowerThanTwo}) * (${isNextEqualOrGreaterThanRet} + ${isNotNextEqualOrGreaterThanRet}))`;
50
+ const negativePart = `(${isNegative} * -1)`;
51
+ const notNegativePart = `((not ${isNegative}) * (${lowerThanTwoPart} + ${notLowerThanTwoPart}))`;
52
+ return {
53
+ genBindings: [
54
+ {
55
+ source: `(${input} < 0)`,
56
+ target: isNegative,
57
+ },
58
+ {
59
+ source: `(${input} < 2)`,
60
+ target: isLowerThanTwo,
61
+ },
62
+ {
63
+ source: input,
64
+ target: ret,
65
+ },
66
+ {
67
+ source: `(${ret} + ${input} / ${ret}) / 2`,
68
+ target: next,
69
+ },
70
+ {
71
+ source: `(${next} = ${ret}) or (${next} > ${ret})`,
72
+ target: nextEqualOrGreaterThan,
73
+ },
74
+ {
75
+ source: `${negativePart} + ${notNegativePart}`,
76
+ target: ret,
77
+ },
78
+ ],
79
+ value: ret,
80
+ };
81
+ },
82
+ cache_value: (cache_binding, override_binding, is_read) => {
83
+ return {
84
+ value: `((${is_read} * ${cache_binding}) + ((not ${is_read}) * ${override_binding}))`,
85
+ };
86
+ },
87
+ vector_length: (x, y, z) => {
88
+ const newBind = defaultFunctions.new(`${y} * ${y} + ${x} * ${x} + ${z} * ${z}`);
89
+ const sqrtBind = defaultFunctions.sqrt(newBind.value);
90
+ return {
91
+ genBindings: [newBind.genBindings[0], ...sqrtBind.genBindings],
92
+ value: sqrtBind.value,
93
+ };
94
+ },
95
+ strlen: str => {
96
+ if (!/\#\w+/.test(str))
97
+ throw new Error("Invalid string");
98
+ const count = RandomBindingString();
99
+ const inputStr = RandomBindingString();
51
100
  return {
52
101
  genBindings: [
53
102
  {
54
- source: `${number} * 100 / 2`,
55
- target: $1,
103
+ source: `0 * (${str} = 'a')`,
104
+ target: count,
56
105
  },
57
- ...absValue,
58
106
  {
59
- source: `${absRtn} > 1`,
60
- target: $2,
107
+ source: `'a' + ${str}`,
108
+ target: inputStr,
61
109
  },
62
110
  {
63
- source: `(${number} < 0) * -1 + (${number} > -1) * (${$2} * ((${rtn} + ${number} / ${rtn}) / 2) + (not ${$2}) * ${rtn})`,
64
- target: rtn,
111
+ source: `${count} + (not ((('%.' + (${count} + 1) + 's') * ${inputStr}) = ${inputStr}))`,
112
+ target: count,
65
113
  },
66
114
  ],
67
- value: rtn,
115
+ value: count,
68
116
  };
69
117
  },
70
118
  /**
@@ -74,6 +122,7 @@ export const defaultFunctions = {
74
122
  */
75
123
  translatable: key => {
76
124
  return {
125
+ genBindings: [],
77
126
  value: `'%' + ${key}`,
78
127
  };
79
128
  },
@@ -96,7 +145,7 @@ export const defaultFunctions = {
96
145
  * @returns
97
146
  */
98
147
  bind: (value, bait) => {
99
- const ret = RandomBindingString(16);
148
+ const ret = RandomBindingString();
100
149
  if (!bait) {
101
150
  throw new Error("Bait is required");
102
151
  }
@@ -111,7 +160,7 @@ export const defaultFunctions = {
111
160
  * @returns
112
161
  */
113
162
  int: input => {
114
- const ret = RandomBindingString(16);
163
+ const ret = RandomBindingString();
115
164
  return {
116
165
  genBindings: [{ source: `${input}`, target: ret }],
117
166
  value: ret,
@@ -26,7 +26,7 @@ export class Parser {
26
26
  }
27
27
  static intToBin(input) {
28
28
  const bindings = [];
29
- const rtn = RandomBindingString(16);
29
+ const rtn = RandomBindingString();
30
30
  for (let i = 0; i < 30; i++) {
31
31
  bindings.push({
32
32
  source: `(${input} / ${2 ** i} - (${input} / ${2 ** (i + 1)}) * 2)`,
@@ -126,7 +126,7 @@ export class Parser {
126
126
  if (this.cache.has(cacheStr)) {
127
127
  return (left = this.cache.get(cacheStr));
128
128
  }
129
- const ret = RandomBindingString(16);
129
+ const ret = RandomBindingString();
130
130
  this.genBindings.push({
131
131
  source: `(${left} - (${left} / ${right} * ${right}))`,
132
132
  target: ret,
@@ -56,7 +56,7 @@ export function ResolveBinding(cache, ...bindings) {
56
56
  };
57
57
  }
58
58
  else {
59
- const ret = RandomBindingString(16);
59
+ const ret = RandomBindingString();
60
60
  cache.set(mapkey, ret);
61
61
  result.push({
62
62
  source_property_name: token.value,
@@ -127,7 +127,7 @@ export function RandomString(length, base = 32) {
127
127
  }
128
128
  return out.join("");
129
129
  }
130
- export function RandomBindingString(length, base = 32) {
130
+ export function RandomBindingString(length = 16, base = 32) {
131
131
  return `#${RandomString(length, base)}`;
132
132
  }
133
133
  export function GetItemByAuxID(auxID) {
@@ -558,7 +558,6 @@ export var ItemAuxID;
558
558
  ItemAuxID[ItemAuxID["GOLDEN_BOOTS"] = 25296896] = "GOLDEN_BOOTS";
559
559
  ItemAuxID[ItemAuxID["GOLDEN_CARROT"] = 20447232] = "GOLDEN_CARROT";
560
560
  ItemAuxID[ItemAuxID["GOLDEN_CHESTPLATE"] = 25165824] = "GOLDEN_CHESTPLATE";
561
- ItemAuxID[ItemAuxID["GOLDEN_DANDELION"] = -71499776] = "GOLDEN_DANDELION";
562
561
  ItemAuxID[ItemAuxID["GOLDEN_HELMET"] = 25100288] = "GOLDEN_HELMET";
563
562
  ItemAuxID[ItemAuxID["GOLDEN_HOE"] = 23920640] = "GOLDEN_HOE";
564
563
  ItemAuxID[ItemAuxID["GOLDEN_HORSE_ARMOR"] = 37421056] = "GOLDEN_HORSE_ARMOR";
@@ -1090,20 +1090,10 @@ export const paths = {
1090
1090
  "keyboard_image_panel": "ui/chat_screen.json",
1091
1091
  "keyboard_image_panel/keyboard_image": "ui/chat_screen.json",
1092
1092
  "keyboard_image_panel/down_arrow_image": "ui/chat_screen.json",
1093
- "new_messages": "ui/chat_screen.json",
1094
- "new_messages/focus_border": "ui/chat_screen.json",
1095
- "new_messages/focus_border/stack": "ui/chat_screen.json",
1096
- "new_messages/focus_border/stack/arrow_icon": "ui/chat_screen.json",
1097
- "new_messages/focus_border/stack/separator": "ui/chat_screen.json",
1098
- "new_messages/focus_border/stack/tooltip_text": "ui/chat_screen.json",
1099
1093
  "small_button": "ui/chat_screen.json",
1100
1094
  "keyboard_button": "ui/chat_screen.json",
1101
1095
  "chat_settings_button": "ui/chat_screen.json",
1102
1096
  "send_button": "ui/chat_screen.json",
1103
- "new_messages_button": "ui/chat_screen.json",
1104
- "new_messages_button/default": "ui/chat_screen.json",
1105
- "new_messages_button/pressed": "ui/chat_screen.json",
1106
- "new_messages_button/hover": "ui/chat_screen.json",
1107
1097
  "messages_text": "ui/chat_screen.json",
1108
1098
  "messages_text/text": "ui/chat_screen.json",
1109
1099
  "message_tts_wrapper": "ui/chat_screen.json",
@@ -1163,7 +1153,6 @@ export const paths = {
1163
1153
  "chat_screen_content/messages_panel": "ui/chat_screen.json",
1164
1154
  "chat_screen_content/chat_bottom_panel": "ui/chat_screen.json",
1165
1155
  "chat_screen_content/chat_top_panel": "ui/chat_screen.json",
1166
- "chat_screen_content/new_messages_button": "ui/chat_screen.json",
1167
1156
  "chat_screen_content/autocomplete_commands_panel": "ui/chat_screen.json",
1168
1157
  "chat_screen_content/host_main_panel": "ui/chat_screen.json",
1169
1158
  "chat_screen_content/popup_factory": "ui/chat_screen.json",
@@ -6212,7 +6201,6 @@ export const paths = {
6212
6201
  "frame_label": "ui/invite_screen.json",
6213
6202
  "friend_panel": "ui/invite_screen.json",
6214
6203
  "scrolling_content_stack": "ui/invite_screen.json",
6215
- "scrolling_content_stack/invite_party_panel": "ui/invite_screen.json",
6216
6204
  "scrolling_content_stack/message": "ui/invite_screen.json",
6217
6205
  "scrolling_content_stack/message/frame_label": "ui/invite_screen.json",
6218
6206
  "scrolling_content_stack/online_platform": "ui/invite_screen.json",
@@ -6240,12 +6228,6 @@ export const paths = {
6240
6228
  "scrolling_content_stack/offline_xbox_live_friend_list_category": "ui/invite_screen.json",
6241
6229
  "scrolling_content_stack/no_xbox_live_friends": "ui/invite_screen.json",
6242
6230
  "scrolling_content_stack/no_xbox_live_friends/no_friends_tts_wrapper": "ui/invite_screen.json",
6243
- "invite_party_panel": "ui/invite_screen.json",
6244
- "invite_party_panel/frame_label": "ui/invite_screen.json",
6245
- "invite_party_panel/frame_description": "ui/invite_screen.json",
6246
- "invite_party_panel/our_toggle": "ui/invite_screen.json",
6247
- "invite_party_panel/border_outline": "ui/invite_screen.json",
6248
- "friend_button_test": "ui/invite_screen.json",
6249
6231
  "progress_bar_and_scrolling_content_panel": "ui/invite_screen.json",
6250
6232
  "progress_bar_and_scrolling_content_panel/progress_loading_bars": "ui/invite_screen.json",
6251
6233
  "progress_bar_and_scrolling_content_panel/invite_scrolling_area": "ui/invite_screen.json",
@@ -7216,35 +7198,16 @@ export const paths = {
7216
7198
  "invite_players_button": "ui/pause_screen.json",
7217
7199
  "buy_button": "ui/pause_screen.json",
7218
7200
  "quit_button": "ui/pause_screen.json",
7219
- "icon_button_hover_text": "ui/pause_screen.json",
7220
- "icon_button_hover_text/tooltip_text": "ui/pause_screen.json",
7221
- "icon_button_tooltip_trigger": "ui/pause_screen.json",
7222
- "icon_button_tooltip_trigger/default": "ui/pause_screen.json",
7223
- "icon_button_tooltip_trigger/pressed": "ui/pause_screen.json",
7224
- "icon_button_tooltip_trigger/hover": "ui/pause_screen.json",
7225
7201
  "feedback_button": "ui/pause_screen.json",
7226
7202
  "feedback_icon_button": "ui/pause_screen.json",
7227
7203
  "feedback_icon_button/feedback_button": "ui/pause_screen.json",
7228
- "feedback_icon_button/tooltip_trigger": "ui/pause_screen.json",
7229
7204
  "take_screenshot_gamepad_button_content": "ui/pause_screen.json",
7230
7205
  "take_screenshot_gamepad_button_content/button_y": "ui/pause_screen.json",
7231
7206
  "take_screenshot_gamepad_button_content/take_screenshot_icon": "ui/pause_screen.json",
7232
7207
  "take_screenshot_gamepad_button": "ui/pause_screen.json",
7233
7208
  "achievements_button_small": "ui/pause_screen.json",
7234
- "achievements_button_small_with_tooltip": "ui/pause_screen.json",
7235
- "achievements_button_small_with_tooltip/button": "ui/pause_screen.json",
7236
- "achievements_button_small_with_tooltip/tooltip_trigger": "ui/pause_screen.json",
7237
7209
  "settings_button_small": "ui/pause_screen.json",
7238
- "settings_button_small_with_tooltip": "ui/pause_screen.json",
7239
- "settings_button_small_with_tooltip/button": "ui/pause_screen.json",
7240
- "settings_button_small_with_tooltip/tooltip_trigger": "ui/pause_screen.json",
7241
7210
  "take_screenshot_button": "ui/pause_screen.json",
7242
- "take_screenshot_button_with_tooltip": "ui/pause_screen.json",
7243
- "take_screenshot_button_with_tooltip/button": "ui/pause_screen.json",
7244
- "take_screenshot_button_with_tooltip/tooltip_trigger": "ui/pause_screen.json",
7245
- "take_screenshot_gamepad_button_with_tooltip": "ui/pause_screen.json",
7246
- "take_screenshot_gamepad_button_with_tooltip/button": "ui/pause_screen.json",
7247
- "take_screenshot_gamepad_button_with_tooltip/tooltip_trigger": "ui/pause_screen.json",
7248
7211
  "pause_screen": "ui/pause_screen.json",
7249
7212
  "pause_screen_content": "ui/pause_screen.json",
7250
7213
  "pause_screen_content/pause_screen_main_panels": "ui/pause_screen.json",
@@ -7754,13 +7717,15 @@ export const paths = {
7754
7717
  "summary_content_left_side/full_content/top/info": "ui/pdp_screen.json",
7755
7718
  "summary_content_left_side/full_content/top/info/summary_title_and_author_panel": "ui/pdp_screen.json",
7756
7719
  "summary_content_left_side/full_content/top/info/pad_fill": "ui/pdp_screen.json",
7757
- "summary_content_left_side/full_content/top/info/info_buttons_factory": "ui/pdp_screen.json",
7720
+ "summary_content_left_side/full_content/top/info/glyph_section": "ui/pdp_screen.json",
7721
+ "summary_content_left_side/full_content/top/info/glyph_section/glyph_section_panel": "ui/pdp_screen.json",
7722
+ "summary_content_left_side/full_content/top/info/ratings_summary": "ui/pdp_screen.json",
7723
+ "summary_content_left_side/full_content/top/info/ratings_summary/ratings_display": "ui/pdp_screen.json",
7724
+ "summary_content_left_side/full_content/top/info/ratings_summary/ratings_display/rating_stars_panel": "ui/pdp_screen.json",
7725
+ "summary_content_left_side/full_content/top/info/ratings_summary/ratings_display/rating_stars_panel/rating": "ui/pdp_screen.json",
7726
+ "summary_content_left_side/full_content/top/info/ratings_summary/ratings_display/summary_rating_button": "ui/pdp_screen.json",
7727
+ "summary_content_left_side/full_content/top/info/vibrant_visuals_badge_and_hover": "ui/pdp_screen.json",
7758
7728
  "summary_content_left_side/full_content/bottom": "ui/pdp_screen.json",
7759
- "info_buttons_factory": "ui/pdp_screen.json",
7760
- "ratings_summary": "ui/pdp_screen.json",
7761
- "ratings_summary/ratings_display": "ui/pdp_screen.json",
7762
- "ratings_summary/ratings_display/rating": "ui/pdp_screen.json",
7763
- "ratings_summary/ratings_display/summary_rating_button": "ui/pdp_screen.json",
7764
7729
  "offer_title_label": "ui/pdp_screen.json",
7765
7730
  "title_and_author_panel": "ui/pdp_screen.json",
7766
7731
  "title_and_author_panel/title_panel": "ui/pdp_screen.json",
@@ -7803,12 +7768,21 @@ export const paths = {
7803
7768
  "mashup_glyph_tooltip_content/mashup_text_row/info_icon": "ui/pdp_screen.json",
7804
7769
  "mashup_glyph_tooltip_content/mashup_text_row/mashup_line_one": "ui/pdp_screen.json",
7805
7770
  "mashup_glyph_tooltip_content/mashup_line_two": "ui/pdp_screen.json",
7806
- "mashup_glyph_tooltip_content/basic_vertical_glyphs": "ui/pdp_screen.json",
7771
+ "mashup_glyph_tooltip_content/offset_panel": "ui/pdp_screen.json",
7772
+ "mashup_glyph_tooltip_content/offset_panel/basic_vertical_glyph_section_panel": "ui/pdp_screen.json",
7807
7773
  "glyph_section_mashup": "ui/pdp_screen.json",
7808
7774
  "glyph_section_skin": "ui/pdp_screen.json",
7809
7775
  "glyph_section_resource_pack": "ui/pdp_screen.json",
7810
7776
  "glyph_section_world": "ui/pdp_screen.json",
7811
7777
  "glyph_section_addon": "ui/pdp_screen.json",
7778
+ "basic_vertical_glyph_section_panel": "ui/pdp_screen.json",
7779
+ "basic_vertical_glyph_section_panel/glyph_section_skin": "ui/pdp_screen.json",
7780
+ "basic_vertical_glyph_section_panel/glyph_section_world": "ui/pdp_screen.json",
7781
+ "basic_vertical_glyph_section_panel/glyph_section_resource_pack": "ui/pdp_screen.json",
7782
+ "basic_vertical_glyph_section_panel/glyph_section_addon": "ui/pdp_screen.json",
7783
+ "vertical_glyph_section_panel": "ui/pdp_screen.json",
7784
+ "vertical_glyph_section_panel/glyph_section_mashup": "ui/pdp_screen.json",
7785
+ "vertical_glyph_section_panel/basic_vertical_glyph_section_panel": "ui/pdp_screen.json",
7812
7786
  "summary_text_panel": "ui/pdp_screen.json",
7813
7787
  "summary_text_panel/top_interact_button_stack": "ui/pdp_screen.json",
7814
7788
  "summary_text_panel/top_interact_button_stack/top_interact": "ui/pdp_screen.json",
@@ -9722,11 +9696,6 @@ export const paths = {
9722
9696
  "modal_button_panel_with_retry/retry_button": "ui/progress_screen.json",
9723
9697
  "modal_ok_button_panel": "ui/progress_screen.json",
9724
9698
  "modal_ok_button_panel/ok_button": "ui/progress_screen.json",
9725
- "modal_ok_button_panel_with_retry": "ui/progress_screen.json",
9726
- "modal_ok_button_panel_with_retry/left_ok_button": "ui/progress_screen.json",
9727
- "modal_ok_button_panel_with_retry/center_cancel_button": "ui/progress_screen.json",
9728
- "modal_ok_button_panel_with_retry/center_ok_button": "ui/progress_screen.json",
9729
- "modal_ok_button_panel_with_retry/right_retry_button": "ui/progress_screen.json",
9730
9699
  "gamepad_helpers": "ui/progress_screen.json",
9731
9700
  "gamepad_helpers/gamepad_helper_a": "ui/progress_screen.json",
9732
9701
  "world_image": "ui/progress_screen.json",
@@ -9810,21 +9779,16 @@ export const paths = {
9810
9779
  "modal_screen_content/modal_progress_panel": "ui/progress_screen.json",
9811
9780
  "world_modal_progress_panel": "ui/progress_screen.json",
9812
9781
  "world_modal_progress_panel/common_panel": "ui/progress_screen.json",
9813
- "world_modal_progress_panel/content_wrapper": "ui/progress_screen.json",
9814
- "world_modal_progress_panel/content_wrapper/base_content": "ui/progress_screen.json",
9815
- "world_modal_progress_panel/content_wrapper/base_content/vertical_title_padding": "ui/progress_screen.json",
9816
- "world_modal_progress_panel/content_wrapper/base_content/title_text_panel": "ui/progress_screen.json",
9817
- "world_modal_progress_panel/content_wrapper/base_content/title_text_panel/progress_title_text": "ui/progress_screen.json",
9818
- "world_modal_progress_panel/content_wrapper/base_content/vertical_text_padding": "ui/progress_screen.json",
9819
- "world_modal_progress_panel/content_wrapper/base_content/progress_text_panel": "ui/progress_screen.json",
9820
- "world_modal_progress_panel/content_wrapper/base_content/progress_text_panel/progress_bar_text": "ui/progress_screen.json",
9821
- "world_modal_progress_panel/content_wrapper/inside_content": "ui/progress_screen.json",
9822
- "world_modal_progress_panel/content_wrapper/inside_content/loading_bar_panel": "ui/progress_screen.json",
9823
- "world_modal_progress_panel/content_wrapper/inside_content/loading_bar_panel/fancy_progress_loading_bars": "ui/progress_screen.json",
9824
- "world_modal_progress_panel/content_wrapper/inside_content/loading_bar_panel/progress_loading_bars": "ui/progress_screen.json",
9825
- "world_modal_progress_panel/content_wrapper/inside_content/vertical_padding": "ui/progress_screen.json",
9826
- "world_modal_progress_panel/content_wrapper/inside_content/modal_button_panel": "ui/progress_screen.json",
9827
- "world_modal_progress_panel/content_wrapper/inside_content/vertical_padding_2": "ui/progress_screen.json",
9782
+ "world_modal_progress_panel/base_content": "ui/progress_screen.json",
9783
+ "world_modal_progress_panel/base_content/progress_title_text": "ui/progress_screen.json",
9784
+ "world_modal_progress_panel/base_content/progress_bar_text": "ui/progress_screen.json",
9785
+ "world_modal_progress_panel/inside_content": "ui/progress_screen.json",
9786
+ "world_modal_progress_panel/inside_content/loading_bar_panel": "ui/progress_screen.json",
9787
+ "world_modal_progress_panel/inside_content/loading_bar_panel/fancy_progress_loading_bars": "ui/progress_screen.json",
9788
+ "world_modal_progress_panel/inside_content/loading_bar_panel/progress_loading_bars": "ui/progress_screen.json",
9789
+ "world_modal_progress_panel/inside_content/vertical_padding": "ui/progress_screen.json",
9790
+ "world_modal_progress_panel/inside_content/modal_button_panel": "ui/progress_screen.json",
9791
+ "world_modal_progress_panel/inside_content/vertical_padding_2": "ui/progress_screen.json",
9828
9792
  "cloud_upload_panel": "ui/progress_screen.json",
9829
9793
  "cloud_upload_panel/common_panel": "ui/progress_screen.json",
9830
9794
  "cloud_upload_panel/base_content": "ui/progress_screen.json",
@@ -12298,7 +12262,6 @@ export const paths = {
12298
12262
  "general_tab_section/pause_label_header": "ui/settings_sections/general_section.json",
12299
12263
  "general_tab_section/paddingPauseFeature": "ui/settings_sections/general_section.json",
12300
12264
  "general_tab_section/pause_toggle": "ui/settings_sections/general_section.json",
12301
- "general_tab_section/pause_menu_on_focus_lost": "ui/settings_sections/general_section.json",
12302
12265
  "general_tab_section/paddingLinkEduSupport": "ui/settings_sections/general_section.json",
12303
12266
  "general_tab_section/link_button": "ui/settings_sections/general_section.json",
12304
12267
  "general_tab_section/paddingDividerSustainability": "ui/settings_sections/general_section.json",
@@ -12487,13 +12450,6 @@ export const paths = {
12487
12450
  "debugger_toggles_panel/primary_panel/all_options_panel/host_and_port_panel/spacer": "ui/settings_sections/general_section.json",
12488
12451
  "debugger_toggles_panel/primary_panel/all_options_panel/host_and_port_panel/port_input": "ui/settings_sections/general_section.json",
12489
12452
  "debugger_toggles_panel/primary_panel/all_options_panel/auto_attach_timeout_slider": "ui/settings_sections/general_section.json",
12490
- "editor_toggles_panel": "ui/settings_sections/general_section.json",
12491
- "editor_toggles_panel/section_panel_1": "ui/settings_sections/general_section.json",
12492
- "editor_toggles_panel/section_panel_1/section_divider": "ui/settings_sections/general_section.json",
12493
- "editor_toggles_panel/primary_panel": "ui/settings_sections/general_section.json",
12494
- "editor_toggles_panel/primary_panel/content_log_section_label": "ui/settings_sections/general_section.json",
12495
- "editor_toggles_panel/primary_panel/content_log_section_label_spacer": "ui/settings_sections/general_section.json",
12496
- "editor_toggles_panel/primary_panel/clipboard_setting": "ui/settings_sections/general_section.json",
12497
12453
  "diagnostics_toggles_panel": "ui/settings_sections/general_section.json",
12498
12454
  "diagnostics_toggles_panel/section_panel_1": "ui/settings_sections/general_section.json",
12499
12455
  "diagnostics_toggles_panel/section_panel_1/section_divider": "ui/settings_sections/general_section.json",
@@ -12546,7 +12502,6 @@ export const paths = {
12546
12502
  "creator_section/debugger_toggles_panel": "ui/settings_sections/general_section.json",
12547
12503
  "creator_section/diagnostics_toggle_panel": "ui/settings_sections/general_section.json",
12548
12504
  "creator_section/watchdog_toggles_panel": "ui/settings_sections/general_section.json",
12549
- "creator_section/editor_toggles_panel": "ui/settings_sections/general_section.json",
12550
12505
  "creator_section/device_info_toggles_panel": "ui/settings_sections/general_section.json",
12551
12506
  "creator_section/content_log_panel": "ui/settings_sections/general_section.json",
12552
12507
  "video_button": "ui/settings_sections/general_section.json",
@@ -12663,8 +12618,6 @@ export const paths = {
12663
12618
  "video_section/spacer_35": "ui/settings_sections/general_section.json",
12664
12619
  "video_section/texel_anti_aliasing_toggle": "ui/settings_sections/general_section.json",
12665
12620
  "video_section/spacer_36": "ui/settings_sections/general_section.json",
12666
- "video_section/texture_streaming_toggle": "ui/settings_sections/general_section.json",
12667
- "video_section/spacer_37": "ui/settings_sections/general_section.json",
12668
12621
  "video_section/reset_button": "ui/settings_sections/general_section.json",
12669
12622
  "max_framerate_slider": "ui/settings_sections/general_section.json",
12670
12623
  "max_framerate_slider/option_generic_core": "ui/settings_sections/general_section.json",
@@ -12923,9 +12876,13 @@ export const paths = {
12923
12876
  "debug_override_treatments_panel/override_treatments_panel_background/override_treatment_options_panel/treatment_cache_management_panel/clear_treatments": "ui/settings_sections/general_section.json",
12924
12877
  "debug_override_treatments_panel/override_treatments_panel_background/treatments_label_panel": "ui/settings_sections/general_section.json",
12925
12878
  "debug_override_treatments_panel/override_treatments_panel_background/treatments_label_panel/treatments_label": "ui/settings_sections/general_section.json",
12879
+ "debug_override_treatments_panel/override_treatments_panel_background/progress_spinner_1": "ui/settings_sections/general_section.json",
12880
+ "debug_override_treatments_panel/override_treatments_panel_background/progress_spinner_1/progress_loading_spinner_1": "ui/settings_sections/general_section.json",
12926
12881
  "debug_override_treatments_panel/override_treatments_panel_background/treatment_grid": "ui/settings_sections/general_section.json",
12927
12882
  "debug_override_treatments_panel/override_treatments_panel_background/unused_treatments_label_panel": "ui/settings_sections/general_section.json",
12928
12883
  "debug_override_treatments_panel/override_treatments_panel_background/unused_treatments_label_panel/treatments_label": "ui/settings_sections/general_section.json",
12884
+ "debug_override_treatments_panel/override_treatments_panel_background/progress_spinner_2": "ui/settings_sections/general_section.json",
12885
+ "debug_override_treatments_panel/override_treatments_panel_background/progress_spinner_2/progress_loading_spinner_2": "ui/settings_sections/general_section.json",
12929
12886
  "debug_override_treatments_panel/override_treatments_panel_background/unused_treatment_grid": "ui/settings_sections/general_section.json",
12930
12887
  "debug_override_treatments_panel/override_treatments_panel_background/spacer_1": "ui/settings_sections/general_section.json",
12931
12888
  "debug_override_configurations_panel": "ui/settings_sections/general_section.json",
@@ -13127,7 +13084,6 @@ export const paths = {
13127
13084
  "debug_section/reset_authentication_option": "ui/settings_sections/general_section.json",
13128
13085
  "debug_section/reset_report_timer_option": "ui/settings_sections/general_section.json",
13129
13086
  "debug_section/reset_online_safety_option": "ui/settings_sections/general_section.json",
13130
- "debug_section/reset_show_hardcore_warning_option": "ui/settings_sections/general_section.json",
13131
13087
  "debug_section/reset_low_ping_warning_option": "ui/settings_sections/general_section.json",
13132
13088
  "debug_section/reset_ip_safety_option": "ui/settings_sections/general_section.json",
13133
13089
  "debug_section/padding_graphics_options": "ui/settings_sections/general_section.json",
@@ -13285,18 +13241,6 @@ export const paths = {
13285
13241
  "ui_debug_section/ui_feature_toggles_spacer": "ui/settings_sections/general_section.json",
13286
13242
  "ui_debug_section/option_show_touch_control_selection_screen": "ui/settings_sections/general_section.json",
13287
13243
  "ui_debug_section/option_reset_on_start": "ui/settings_sections/general_section.json",
13288
- "ui_debug_section/end_of_other_options_divider": "ui/settings_sections/general_section.json",
13289
- "ui_debug_section/end_of_other_options_divider/section_divider": "ui/settings_sections/general_section.json",
13290
- "ui_debug_section/end_of_other_options_spacer": "ui/settings_sections/general_section.json",
13291
- "ui_debug_section/debug_data_label": "ui/settings_sections/general_section.json",
13292
- "ui_debug_section/debug_data_label_spacer": "ui/settings_sections/general_section.json",
13293
- "ui_debug_section/option_continuous_repaint": "ui/settings_sections/general_section.json",
13294
- "ui_debug_section/option_show_paint_rects": "ui/settings_sections/general_section.json",
13295
- "ui_debug_section/option_show_element_aabb": "ui/settings_sections/general_section.json",
13296
- "ui_debug_section/option_emulate_touch_events": "ui/settings_sections/general_section.json",
13297
- "ui_debug_section/end_of_debug_data_divider": "ui/settings_sections/general_section.json",
13298
- "ui_debug_section/end_of_debug_data_divider/section_divider": "ui/settings_sections/general_section.json",
13299
- "ui_debug_section/end_of_debug_data_spacer": "ui/settings_sections/general_section.json",
13300
13244
  "ui_debug_section/option_slider_drag_dwell": "ui/settings_sections/general_section.json",
13301
13245
  "ui_debug_section/option_slider_stack_splitting": "ui/settings_sections/general_section.json",
13302
13246
  "ui_debug_section/reset_render_distance_warning_modal_label": "ui/settings_sections/general_section.json",
@@ -13636,7 +13580,6 @@ export const paths = {
13636
13580
  "option_custom_control": "ui/settings_sections/settings_common.json",
13637
13581
  "option_info_label": "ui/settings_sections/settings_common.json",
13638
13582
  "dynamic_dialog_screen": "ui/settings_sections/settings_common.json",
13639
- "dynamic_dialog_fullscreen": "ui/settings_sections/settings_common.json",
13640
13583
  "settings_content": "ui/settings_sections/settings_common.json",
13641
13584
  "settings_content/background": "ui/settings_sections/settings_common.json",
13642
13585
  "settings_content/stack_panel": "ui/settings_sections/settings_common.json",
@@ -1,8 +1,9 @@
1
1
  import { Expression, GenBinding } from "./types.js";
2
- type Callback = (...args: Expression[]) => {
2
+ type CallbackRet = {
3
3
  genBindings?: GenBinding[];
4
4
  value: Expression;
5
5
  };
6
+ type Callback = (...args: Expression[]) => CallbackRet;
6
7
  export declare const FunctionMap: Map<string, Callback>;
7
8
  export declare const defaultFunctions: {
8
9
  /**
@@ -41,13 +42,25 @@ export declare const defaultFunctions: {
41
42
  }[];
42
43
  value: `#${string}`;
43
44
  };
44
- /**
45
- * Returns the square root of a number.
46
- * @param number
47
- * @returns
48
- */
49
- sqrt: (number: string) => {
45
+ sqrt: (input: string) => {
46
+ genBindings: {
47
+ source: string;
48
+ target: `#${string}`;
49
+ }[];
50
+ value: `#${string}`;
51
+ };
52
+ cache_value: (cache_binding: string, override_binding: string, is_read: string) => {
53
+ value: string;
54
+ };
55
+ vector_length: (x: string, y: string, z: string) => {
50
56
  genBindings: GenBinding[];
57
+ value: string;
58
+ };
59
+ strlen: (str: string) => {
60
+ genBindings: {
61
+ source: string;
62
+ target: `#${string}`;
63
+ }[];
51
64
  value: `#${string}`;
52
65
  };
53
66
  /**
@@ -56,6 +69,7 @@ export declare const defaultFunctions: {
56
69
  * @returns
57
70
  */
58
71
  translatable: (key: string) => {
72
+ genBindings: never[];
59
73
  value: string;
60
74
  };
61
75
  /**
@@ -15,8 +15,8 @@ export declare class AnimationKeyframe<T extends AnimType> extends Class {
15
15
  clearNext(): this;
16
16
  protected toJsonUI(): KeyframeAnimationProperties<AnimType>;
17
17
  protected toJSON(): (Partial<import("../types/properties/element/Animation.js").DurationAnimation> & import("../types/properties/element/Animation.js").KeyframeAnimationPropertiesItem) | (Partial<import("../types/properties/element/Animation.js").AsepriteFlipBookAnimation> & import("../types/properties/element/Animation.js").KeyframeAnimationPropertiesItem) | {
18
- from?: import("../types/properties/value.js").Array2<string | number> | undefined;
19
- to?: import("../types/properties/value.js").Array2<string | number> | undefined;
18
+ from?: import("../types/properties/value.js").Value<number> | undefined;
19
+ to?: import("../types/properties/value.js").Value<number> | undefined;
20
20
  duration?: import("../types/properties/value.js").Value<number> | undefined;
21
21
  easing?: import("../types/properties/value.js").Value<string | import("../index.js").Easing> | undefined;
22
22
  next?: import("../types/properties/value.js").Value<string | AnimationKeyframe<AnimType> | Animation<AnimType>>;
@@ -33,8 +33,8 @@ export declare class AnimationKeyframe<T extends AnimType> extends Class {
33
33
  wait_until_rendered_to_play?: import("../types/properties/value.js").Value<boolean>;
34
34
  anim_type: T;
35
35
  } | {
36
- from?: import("../types/properties/value.js").Value<number> | undefined;
37
- to?: import("../types/properties/value.js").Value<number> | undefined;
36
+ from?: import("../types/properties/value.js").Array2<string | number> | undefined;
37
+ to?: import("../types/properties/value.js").Array2<string | number> | undefined;
38
38
  duration?: import("../types/properties/value.js").Value<number> | undefined;
39
39
  easing?: import("../types/properties/value.js").Value<string | import("../index.js").Easing> | undefined;
40
40
  next?: import("../types/properties/value.js").Value<string | AnimationKeyframe<AnimType> | Animation<AnimType>>;
@@ -13,7 +13,7 @@ type CompileBinding = `[${string}]`;
13
13
  export declare function Color(hex: string | number): Array3<number>;
14
14
  export declare function ResolveBinding(cache: Map<string, unknown>, ...bindings: BindingItem[]): BindingItem[];
15
15
  export declare function RandomString(length: number, base?: number): string;
16
- export declare function RandomBindingString(length: number, base?: number): Binding;
16
+ export declare function RandomBindingString(length?: number, base?: number): Binding;
17
17
  export declare function GetItemByAuxID(auxID: number): string | undefined;
18
18
  /**
19
19
  * Return format string binding input
@@ -557,7 +557,6 @@ export declare enum ItemAuxID {
557
557
  GOLDEN_BOOTS = 25296896,
558
558
  GOLDEN_CARROT = 20447232,
559
559
  GOLDEN_CHESTPLATE = 25165824,
560
- GOLDEN_DANDELION = -71499776,
561
560
  GOLDEN_HELMET = 25100288,
562
561
  GOLDEN_HOE = 23920640,
563
562
  GOLDEN_HORSE_ARMOR = 37421056,
@@ -16,7 +16,8 @@ export interface Control {
16
16
  contained?: Value<boolean>;
17
17
  draggable?: Value<boolean>;
18
18
  follows_cursor?: Value<boolean>;
19
- property_bags?: Value<PropertyBags>;
19
+ property_bag?: Value<PropertyBags>;
20
+ property_bag_for_children?: Value<PropertyBags>;
20
21
  [key: Binding]: Value<any>;
21
22
  [key: Variable]: Value<any>;
22
23
  }