A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat(cyber-rooftop): rebuild the anchored native HUD from editable assets
yhhda93bba3ed50
diff --git a/examples/cyber-rooftop/README.md b/examples/cyber-rooftop/README.mdindex 74f13b552..9c1041f74 100644--- a/examples/cyber-rooftop/README.md+++ b/examples/cyber-rooftop/README.md@@ -33,12 +33,14 @@ node examples/cyber-rooftop/tools/preview.mjs- `tools/model.py`:确定性的模型构造源,米制、Y 向上。包含几何、UV、材质与逻辑分组;按材质合并以控制绘制批次。- `assets/models/rooftop.glb`:可在常见 DCC 中继续编辑的模型交换文件;同目录的 `.esprefab`、`.esmesh`、`.esmaterial` 是 Estella 导入产物。-- `tools/scene.mjs`:摄像机、灯光、后处理、粒子、建造对象池与全部 HUD 布局。-- `tools/textures.py`:可重建的基础表面图、招牌、地图与 HUD 图标;需要 Python Pillow 和 Windows 微软雅黑字体。+- `tools/scene.mjs`:摄像机、灯光、后处理、粒子与建造对象池;通过 `tools/hud-scene.mjs` 构建原生 HUD。+- `tools/hud-scene.mjs`:按四角及底部居中锚定面板,保留可编辑的原生文字、状态值和快捷栏交互。`src/hud-layout.json` 供场景构建和运行时共用布局参数。+- `tools/textures.py`:可重建的基础表面图、招牌、HUD 象形图标与备用物品图标;需要 Python Pillow 和 Windows 微软雅黑字体。末尾调用 `tools/hud.py` 重建边框、勾选状态、按键帽和选中描边。+- `assets/textures/hud-inventory-atlas.png`:八件物品共用的透明图集;`tools/hud-inventory-frames.json` 保存各图块边界,原生 UIVisual 按 UV 引用。`hud-map.png` 是独立的区域示意底图;玩家标记由运行时更新,底图尚未根据场景自动生成。重建边框不会覆盖这两张图片。- `assets/textures/billboard.png`、`worn-paint.png`:广告与磨损表面图;视觉规格保存在 `references/asset-prompts.txt`。- `src/building.ts`、`src/main.ts`:空间约束及交互;场景几何和 HUD 都使用 Estella 运行时。-已有纹理保留不变,仅重建场景时执行 `node examples/cyber-rooftop/tools/scene.mjs`。完整重建:+已有纹理保留不变,仅重建场景时执行 `node examples/cyber-rooftop/tools/scene.mjs`。仅调整 HUD 边框可执行 `python examples/cyber-rooftop/tools/hud.py`。完整重建(保留广告、磨损表面、物品图集及地图底图):```powershellpython examples/cyber-rooftop/tools/textures.py@@ -61,6 +63,7 @@ node tools/asset-meta.js examples/cyber-rooftop/assets## 验证```powershell+node build-tools/cli.js check-examples& ./sdk/node_modules/.bin/tsc.cmd -p examples/cyber-rooftop/tsconfig.jsonnode --test examples/cyber-rooftop/tools/building.test.mjsnode tools/asset-meta.js examples/cyber-rooftop/assets --checkdiff --git a/examples/cyber-rooftop/assets/scenes/main.esscene b/examples/cyber-rooftop/assets/scenes/main.essceneindex 83fd46132..aad68996c 100644--- a/examples/cyber-rooftop/assets/scenes/main.esscene+++ b/examples/cyber-rooftop/assets/scenes/main.esscene@@ -6597,98 +6597,14 @@"parent": null,"children": [189,- 190,- 191,- 192,- 193,- 194,- 195,- 196,197,- 198,- 199,- 200,- 201,- 202,- 203,- 204,- 205,206,- 207,- 208,- 209,- 210,- 211,- 212,- 213,- 214,- 215,- 216,- 217,- 218,- 219,220,- 221,- 222,- 223,- 224,- 225,- 226,227,- 228,- 229,- 230,- 231,- 232,- 233,- 234,- 235,- 236,- 237,- 238,- 239,- 240,- 241,- 242,- 243,- 244,- 245,- 246,- 247,- 248,249,- 250,- 251,- 252,- 253,- 254,- 255,- 256,- 257,- 258,- 259,- 260,- 261,262,- 263,- 264,- 265,- 266,- 267,- 268,- 269,- 270,- 271,- 272,- 273,- 274,275,- 276,- 277,- 278,- 280,- 281,- 282+ 302],"visible": true,"components": [@@ -6726,9 +6642,17 @@},{"id": 189,- "name": "Location panel",+ "name": "Location group","parent": 188,- "children": [],+ "children": [+ 190,+ 191,+ 192,+ 193,+ 194,+ 195,+ 196+ ],"visible": true,"components": [{@@ -6745,6 +6669,14 @@"type": "UINode","data": {"position": 1,+ "width": {+ "unit": 0,+ "value": 260+ },+ "height": {+ "unit": 0,+ "value": 98+ },"insetLeft": {"unit": 0,"value": 20@@ -6752,14 +6684,47 @@"insetTop": {"unit": 0,"value": 20+ }+ }+ }+ ]+ },+ {+ "id": 190,+ "name": "Location panel",+ "parent": 189,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 0+ },+ "insetTop": {+ "unit": 0,+ "value": 0},"width": {"unit": 0,- "value": 270+ "value": 260},"height": {"unit": 0,- "value": 100+ "value": 98}}},@@ -6780,9 +6745,9 @@]},{- "id": 190,+ "id": 191,"name": "Location icon",- "parent": 188,+ "parent": 189,"children": [],"visible": true,"components": [@@ -6802,15 +6767,15 @@"position": 1,"insetLeft": {"unit": 0,- "value": 33+ "value": 13},"insetTop": {"unit": 0,- "value": 27+ "value": 7},"width": {"unit": 0,- "value": 45+ "value": 43},"height": {"unit": 0,@@ -6835,9 +6800,9 @@]},{- "id": 191,+ "id": 192,"name": "Location",- "parent": 188,+ "parent": 189,"children": [],"visible": true,"components": [@@ -6857,19 +6822,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 82+ "value": 75},"insetTop": {"unit": 0,- "value": 26+ "value": 4},"width": {"unit": 0,- "value": 194+ "value": 180},"height": {"unit": 0,- "value": 28+ "value": 29}}},@@ -6880,8 +6845,8 @@"fontSize": 22,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -6894,9 +6859,9 @@]},{- "id": 192,+ "id": 193,"name": "Day",- "parent": 188,+ "parent": 189,"children": [],"visible": true,"components": [@@ -6916,19 +6881,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 83+ "value": 75},"insetTop": {"unit": 0,- "value": 56+ "value": 32},"width": {"unit": 0,- "value": 195+ "value": 180},"height": {"unit": 0,- "value": 24+ "value": 26}}},@@ -6936,11 +6901,11 @@"type": "Text","data": {"content": "第 07 天 · 22:16",- "fontSize": 16,+ "fontSize": 18,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -6953,9 +6918,9 @@]},{- "id": 193,+ "id": 194,"name": "Location divider",- "parent": 188,+ "parent": 189,"children": [],"visible": true,"components": [@@ -6975,15 +6940,15 @@"position": 1,"insetLeft": {"unit": 0,- "value": 28+ "value": 9},"insetTop": {"unit": 0,- "value": 81+ "value": 63},"width": {"unit": 0,- "value": 248+ "value": 242},"height": {"unit": 0,@@ -6996,10 +6961,10 @@"data": {"visualType": 1,"color": {- "r": 0.2,- "g": 0.5,- "b": 0.6,- "a": 0.5+ "r": 0.25,+ "g": 0.43,+ "b": 0.5,+ "a": 0.7},"enabled": true}@@ -7007,9 +6972,9 @@]},{- "id": 194,+ "id": 195,"name": "Weather icon",- "parent": 188,+ "parent": 189,"children": [],"visible": true,"components": [@@ -7029,19 +6994,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 35+ "value": 15},"insetTop": {"unit": 0,- "value": 87+ "value": 66},"width": {"unit": 0,- "value": 28+ "value": 31},"height": {"unit": 0,- "value": 28+ "value": 29}}},@@ -7062,9 +7027,9 @@]},{- "id": 195,+ "id": 196,"name": "Weather",- "parent": 188,+ "parent": 189,"children": [],"visible": true,"components": [@@ -7084,19 +7049,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 79+ "value": 59},"insetTop": {"unit": 0,- "value": 87+ "value": 66},"width": {"unit": 0,- "value": 180+ "value": 185},"height": {"unit": 0,- "value": 27+ "value": 29}}},@@ -7104,11 +7069,11 @@"type": "Text","data": {"content": "酸雨 · 18°C",- "fontSize": 18,+ "fontSize": 19,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -7121,10 +7086,19 @@]},{- "id": 196,- "name": "Objectives panel",+ "id": 197,+ "name": "Objectives group","parent": 188,- "children": [],+ "children": [+ 198,+ 199,+ 200,+ 201,+ 202,+ 203,+ 204,+ 205+ ],"visible": true,"components": [{@@ -7141,21 +7115,62 @@"type": "UINode","data": {"position": 1,+ "width": {+ "unit": 0,+ "value": 260+ },+ "height": {+ "unit": 0,+ "value": 110+ },"insetLeft": {"unit": 0,"value": 20},"insetTop": {"unit": 0,- "value": 134+ "value": 132+ }+ }+ }+ ]+ },+ {+ "id": 198,+ "name": "Objectives panel",+ "parent": 197,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 0+ },+ "insetTop": {+ "unit": 0,+ "value": 0},"width": {"unit": 0,- "value": 280+ "value": 260},"height": {"unit": 0,- "value": 112+ "value": 110}}},@@ -7176,9 +7191,9 @@]},{- "id": 197,+ "id": 199,"name": "Objective title",- "parent": 188,+ "parent": 197,"children": [],"visible": true,"components": [@@ -7198,19 +7213,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 36+ "value": 17},"insetTop": {"unit": 0,- "value": 143+ "value": 5},"width": {"unit": 0,- "value": 250+ "value": 232},"height": {"unit": 0,- "value": 29+ "value": 30}}},@@ -7218,11 +7233,11 @@"type": "Text","data": {"content": "建立安全屋",- "fontSize": 21,+ "fontSize": 22,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -7235,9 +7250,9 @@]},{- "id": 198,+ "id": 200,"name": "Objective divider",- "parent": 188,+ "parent": 197,"children": [],"visible": true,"components": [@@ -7257,15 +7272,15 @@"position": 1,"insetLeft": {"unit": 0,- "value": 29+ "value": 10},"insetTop": {"unit": 0,- "value": 176+ "value": 40},"width": {"unit": 0,- "value": 256+ "value": 240},"height": {"unit": 0,@@ -7278,10 +7293,10 @@"data": {"visualType": 1,"color": {- "r": 0.2,- "g": 0.5,- "b": 0.6,- "a": 0.5+ "r": 0.25,+ "g": 0.43,+ "b": 0.5,+ "a": 0.7},"enabled": true}@@ -7289,9 +7304,9 @@]},{- "id": 199,- "name": "Power objective",- "parent": 188,+ "id": 201,+ "name": "Power check",+ "parent": 197,"children": [],"visible": true,"components": [@@ -7311,46 +7326,42 @@"position": 1,"insetLeft": {"unit": 0,- "value": 37+ "value": 15},"insetTop": {"unit": 0,- "value": 183+ "value": 47},"width": {"unit": 0,- "value": 240+ "value": 24},"height": {"unit": 0,- "value": 25+ "value": 24}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "☑ 接通备用电源",- "fontSize": 18,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-check-on.png","color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 200,- "name": "Water objective",- "parent": 188,+ "id": 202,+ "name": "Power objective",+ "parent": 197,"children": [],"visible": true,"components": [@@ -7370,31 +7381,31 @@"position": 1,"insetLeft": {"unit": 0,- "value": 37+ "value": 50},"insetTop": {"unit": 0,- "value": 214+ "value": 45},"width": {"unit": 0,- "value": 256+ "value": 204},"height": {"unit": 0,- "value": 24+ "value": 27}}},{"type": "Text","data": {- "content": "□ 建造净水装置 0/1",- "fontSize": 17,+ "content": "接通备用电源",+ "fontSize": 19,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -7407,9 +7418,9 @@]},{- "id": 201,- "name": "Compass line",- "parent": 188,+ "id": 203,+ "name": "Water check",+ "parent": 197,"children": [],"visible": true,"components": [@@ -7429,31 +7440,32 @@"position": 1,"insetLeft": {"unit": 0,- "value": 508+ "value": 15},"insetTop": {"unit": 0,- "value": 26+ "value": 76},"width": {"unit": 0,- "value": 652+ "value": 24},"height": {"unit": 0,- "value": 1+ "value": 24}}},{"type": "UIVisual","data": {- "visualType": 1,+ "visualType": 2,+ "texture": "assets/textures/hud-check-off.png","color": {- "r": 0.7,- "g": 0.82,- "b": 0.9,- "a": 0.75+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1},"enabled": true}@@ -7461,9 +7473,9 @@]},{- "id": 202,- "name": "Compass W",- "parent": 188,+ "id": 204,+ "name": "Water check completed",+ "parent": 197,"children": [],"visible": true,"components": [@@ -7483,46 +7495,42 @@"position": 1,"insetLeft": {"unit": 0,- "value": 548+ "value": 15},"insetTop": {"unit": 0,- "value": 36+ "value": 76},"width": {"unit": 0,- "value": 50+ "value": 24},"height": {"unit": 0,- "value": 27+ "value": 24}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "W",- "fontSize": 17,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-check-on.png","color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 1,- "verticalAlign": 1,- "wordWrap": false+ "enabled": false}}]},{- "id": 203,- "name": "Compass tick 0",- "parent": 188,+ "id": 205,+ "name": "Water objective",+ "parent": 197,"children": [],"visible": true,"components": [@@ -7542,42 +7550,61 @@"position": 1,"insetLeft": {"unit": 0,- "value": 573+ "value": 50},"insetTop": {"unit": 0,- "value": 24+ "value": 75},"width": {"unit": 0,- "value": 1+ "value": 205},"height": {"unit": 0,- "value": 12+ "value": 27}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 1,+ "content": "建造净水装置 0/1",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.61,- "g": 0.78,- "b": 0.85,+ "r": 0.93,+ "g": 0.97,+ "b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 0,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 204,- "name": "Compass NW",+ "id": 206,+ "name": "Compass group","parent": 188,- "children": [],+ "children": [+ 207,+ 208,+ 209,+ 210,+ 211,+ 212,+ 213,+ 214,+ 215,+ 216,+ 217,+ 218,+ 219+ ],"visible": true,"components": [{@@ -7594,48 +7621,34 @@"type": "UINode","data": {"position": 1,- "insetLeft": {+ "width": {"unit": 0,- "value": 682+ "value": 650},- "insetTop": {+ "height": {"unit": 0,- "value": 36+ "value": 105},- "width": {- "unit": 0,+ "insetLeft": {+ "unit": 1,"value": 50},- "height": {+ "marginLeft": {"unit": 0,- "value": 27- }- }- },- {- "type": "Text",- "data": {- "content": "NW",- "fontSize": 17,- "fontFamily": "Microsoft YaHei, sans-serif",- "color": {- "r": 0.91,- "g": 0.96,- "b": 1,- "a": 1+ "value": -325},- "bold": false,- "align": 1,- "verticalAlign": 1,- "wordWrap": false+ "insetTop": {+ "unit": 0,+ "value": 12+ }}}]},{- "id": 205,- "name": "Compass tick 1",- "parent": 188,+ "id": 207,+ "name": "Compass line",+ "parent": 206,"children": [],"visible": true,"components": [@@ -7655,19 +7668,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 707+ "value": 0},"insetTop": {"unit": 0,- "value": 24+ "value": 14},"width": {"unit": 0,- "value": 1+ "value": 650},"height": {"unit": 0,- "value": 12+ "value": 1}}},@@ -7676,10 +7689,10 @@"data": {"visualType": 1,"color": {- "r": 0.61,- "g": 0.78,- "b": 0.85,- "a": 1+ "r": 0.66,+ "g": 0.77,+ "b": 0.83,+ "a": 0.72},"enabled": true}@@ -7687,9 +7700,9 @@]},{- "id": 206,- "name": "Compass N",- "parent": 188,+ "id": 208,+ "name": "Compass W",+ "parent": 206,"children": [],"visible": true,"components": [@@ -7709,31 +7722,31 @@"position": 1,"insetLeft": {"unit": 0,- "value": 816+ "value": 56},"insetTop": {"unit": 0,- "value": 36+ "value": 25},"width": {"unit": 0,- "value": 50+ "value": 42},"height": {"unit": 0,- "value": 27+ "value": 23}}},{"type": "Text","data": {- "content": "N",+ "content": "W","fontSize": 17,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -7746,9 +7759,9 @@]},{- "id": 207,- "name": "Compass tick 2",- "parent": 188,+ "id": 209,+ "name": "Compass tick 0",+ "parent": 206,"children": [],"visible": true,"components": [@@ -7768,11 +7781,11 @@"position": 1,"insetLeft": {"unit": 0,- "value": 841+ "value": 77},"insetTop": {"unit": 0,- "value": 24+ "value": 14},"width": {"unit": 0,@@ -7780,7 +7793,7 @@},"height": {"unit": 0,- "value": 12+ "value": 10}}},@@ -7789,9 +7802,9 @@"data": {"visualType": 1,"color": {- "r": 0.61,- "g": 0.78,- "b": 0.85,+ "r": 0.52,+ "g": 0.67,+ "b": 0.72,"a": 1},"enabled": true@@ -7800,9 +7813,9 @@]},{- "id": 208,- "name": "Compass NE",- "parent": 188,+ "id": 210,+ "name": "Compass NW",+ "parent": 206,"children": [],"visible": true,"components": [@@ -7822,31 +7835,31 @@"position": 1,"insetLeft": {"unit": 0,- "value": 950+ "value": 182},"insetTop": {"unit": 0,- "value": 36+ "value": 25},"width": {"unit": 0,- "value": 50+ "value": 42},"height": {"unit": 0,- "value": 27+ "value": 23}}},{"type": "Text","data": {- "content": "NE",+ "content": "NW","fontSize": 17,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -7859,9 +7872,9 @@]},{- "id": 209,- "name": "Compass tick 3",- "parent": 188,+ "id": 211,+ "name": "Compass tick 1",+ "parent": 206,"children": [],"visible": true,"components": [@@ -7881,11 +7894,11 @@"position": 1,"insetLeft": {"unit": 0,- "value": 975+ "value": 203},"insetTop": {"unit": 0,- "value": 24+ "value": 14},"width": {"unit": 0,@@ -7893,7 +7906,7 @@},"height": {"unit": 0,- "value": 12+ "value": 10}}},@@ -7902,9 +7915,9 @@"data": {"visualType": 1,"color": {- "r": 0.61,- "g": 0.78,- "b": 0.85,+ "r": 0.52,+ "g": 0.67,+ "b": 0.72,"a": 1},"enabled": true@@ -7913,9 +7926,9 @@]},{- "id": 210,- "name": "Compass E",- "parent": 188,+ "id": 212,+ "name": "Compass N",+ "parent": 206,"children": [],"visible": true,"components": [@@ -7935,31 +7948,31 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1084+ "value": 308},"insetTop": {"unit": 0,- "value": 36+ "value": 25},"width": {"unit": 0,- "value": 50+ "value": 42},"height": {"unit": 0,- "value": 27+ "value": 23}}},{"type": "Text","data": {- "content": "E",+ "content": "N","fontSize": 17,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -7972,9 +7985,9 @@]},{- "id": 211,- "name": "Compass tick 4",- "parent": 188,+ "id": 213,+ "name": "Compass tick 2",+ "parent": 206,"children": [],"visible": true,"components": [@@ -7994,11 +8007,11 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1109+ "value": 329},"insetTop": {"unit": 0,- "value": 24+ "value": 14},"width": {"unit": 0,@@ -8006,7 +8019,7 @@},"height": {"unit": 0,- "value": 12+ "value": 10}}},@@ -8015,9 +8028,9 @@"data": {"visualType": 1,"color": {- "r": 0.61,- "g": 0.78,- "b": 0.85,+ "r": 0.52,+ "g": 0.67,+ "b": 0.72,"a": 1},"enabled": true@@ -8026,9 +8039,9 @@]},{- "id": 212,- "name": "North marker",- "parent": 188,+ "id": 214,+ "name": "Compass NE",+ "parent": 206,"children": [],"visible": true,"components": [@@ -8048,31 +8061,31 @@"position": 1,"insetLeft": {"unit": 0,- "value": 825+ "value": 434},"insetTop": {"unit": 0,- "value": 5+ "value": 25},"width": {"unit": 0,- "value": 30+ "value": 42},"height": {"unit": 0,- "value": 25+ "value": 23}}},{"type": "Text","data": {- "content": "▼",+ "content": "NE","fontSize": 17,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -8085,9 +8098,9 @@]},{- "id": 213,- "name": "Waypoint",- "parent": 188,+ "id": 215,+ "name": "Compass tick 3",+ "parent": 206,"children": [],"visible": true,"components": [@@ -8107,46 +8120,41 @@"position": 1,"insetLeft": {"unit": 0,- "value": 928+ "value": 455},"insetTop": {"unit": 0,- "value": 74+ "value": 14},"width": {"unit": 0,- "value": 280+ "value": 1},"height": {"unit": 0,- "value": 28+ "value": 10}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "◇ 废料回收站 180 m",- "fontSize": 18,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 1,"color": {- "r": 1,- "g": 0.76,- "b": 0.23,+ "r": 0.52,+ "g": 0.67,+ "b": 0.72,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 214,- "name": "Minimap",- "parent": 188,+ "id": 216,+ "name": "Compass E",+ "parent": 206,"children": [],"visible": true,"components": [@@ -8166,43 +8174,1180 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1400+ "value": 560},"insetTop": {"unit": 0,- "value": 21+ "value": 25},"width": {"unit": 0,- "value": 250+ "value": 42},"height": {"unit": 0,- "value": 194+ "value": 23}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/hud-map.png",+ "content": "E",+ "fontSize": 17,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 215,- "name": "Map border",- "parent": 188,- "children": [],+ "id": 217,+ "name": "Compass tick 4",+ "parent": 206,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 581+ },+ "insetTop": {+ "unit": 0,+ "value": 14+ },+ "width": {+ "unit": 0,+ "value": 1+ },+ "height": {+ "unit": 0,+ "value": 10+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "color": {+ "r": 0.52,+ "g": 0.67,+ "b": 0.72,+ "a": 1+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 218,+ "name": "North marker",+ "parent": 206,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 310+ },+ "insetTop": {+ "unit": 0,+ "value": -5+ },+ "width": {+ "unit": 0,+ "value": 30+ },+ "height": {+ "unit": 0,+ "value": 22+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "▼",+ "fontSize": 16,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 0.93,+ "g": 0.97,+ "b": 1,+ "a": 1+ },+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 219,+ "name": "Waypoint",+ "parent": 206,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 410+ },+ "insetTop": {+ "unit": 0,+ "value": 60+ },+ "width": {+ "unit": 0,+ "value": 280+ },+ "height": {+ "unit": 0,+ "value": 28+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "◇ 废料回收站 180 m",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 1,+ "g": 0.76,+ "b": 0.23,+ "a": 1+ },+ "bold": false,+ "align": 0,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 220,+ "name": "Minimap group",+ "parent": 188,+ "children": [+ 221,+ 222,+ 223,+ 224,+ 225,+ 226+ ],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "width": {+ "unit": 0,+ "value": 240+ },+ "height": {+ "unit": 0,+ "value": 198+ },+ "insetRight": {+ "unit": 0,+ "value": 20+ },+ "insetTop": {+ "unit": 0,+ "value": 20+ }+ }+ }+ ]+ },+ {+ "id": 221,+ "name": "Minimap detail",+ "parent": 220,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 3+ },+ "insetTop": {+ "unit": 0,+ "value": 3+ },+ "width": {+ "unit": 0,+ "value": 234+ },+ "height": {+ "unit": 0,+ "value": 192+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 2,+ "texture": "assets/textures/hud-map.png",+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 222,+ "name": "Map title backing",+ "parent": 220,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 3+ },+ "insetTop": {+ "unit": 0,+ "value": 3+ },+ "width": {+ "unit": 0,+ "value": 234+ },+ "height": {+ "unit": 0,+ "value": 28+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "color": {+ "r": 0.015,+ "g": 0.04,+ "b": 0.055,+ "a": 0.85+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 223,+ "name": "Map border",+ "parent": 220,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 0+ },+ "insetTop": {+ "unit": 0,+ "value": 0+ },+ "width": {+ "unit": 0,+ "value": 240+ },+ "height": {+ "unit": 0,+ "value": 198+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 2,+ "texture": "assets/textures/hud-minimap-frame.png",+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 224,+ "name": "Map title",+ "parent": 220,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 10+ },+ "insetTop": {+ "unit": 0,+ "value": 3+ },+ "width": {+ "unit": 0,+ "value": 170+ },+ "height": {+ "unit": 0,+ "value": 25+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "区域扫描",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 0.93,+ "g": 0.97,+ "b": 1,+ "a": 1+ },+ "bold": false,+ "align": 0,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 225,+ "name": "Map north",+ "parent": 220,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 212+ },+ "insetTop": {+ "unit": 0,+ "value": 4+ },+ "width": {+ "unit": 0,+ "value": 22+ },+ "height": {+ "unit": 0,+ "value": 25+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "N",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 0.93,+ "g": 0.97,+ "b": 1,+ "a": 1+ },+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 226,+ "name": "Map player",+ "parent": 220,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 121+ },+ "insetTop": {+ "unit": 0,+ "value": 108.25+ },+ "width": {+ "unit": 0,+ "value": 25+ },+ "height": {+ "unit": 0,+ "value": 25+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "▲",+ "fontSize": 21,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 0.15,+ "g": 0.83,+ "b": 0.95,+ "a": 1+ },+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 227,+ "name": "Vitals group",+ "parent": 188,+ "children": [+ 228,+ 229,+ 230,+ 231,+ 232,+ 233,+ 234,+ 235,+ 236,+ 237,+ 238,+ 239,+ 240,+ 241,+ 242,+ 243,+ 244,+ 245,+ 246,+ 247,+ 248+ ],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "width": {+ "unit": 0,+ "value": 260+ },+ "height": {+ "unit": 0,+ "value": 174+ },+ "insetLeft": {+ "unit": 0,+ "value": 20+ },+ "insetBottom": {+ "unit": 0,+ "value": 26+ }+ }+ }+ ]+ },+ {+ "id": 228,+ "name": "Vitals panel",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 0+ },+ "insetTop": {+ "unit": 0,+ "value": 0+ },+ "width": {+ "unit": 0,+ "value": 260+ },+ "height": {+ "unit": 0,+ "value": 174+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 2,+ "texture": "assets/textures/hud-vitals.png",+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 229,+ "name": "Vital icon 0",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 12+ },+ "insetTop": {+ "unit": 0,+ "value": 10+ },+ "width": {+ "unit": 0,+ "value": 31+ },+ "height": {+ "unit": 0,+ "value": 32+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 2,+ "texture": "assets/textures/hud-symbol-health.png",+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 230,+ "name": "Vital label 0",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 57+ },+ "insetTop": {+ "unit": 0,+ "value": 6+ },+ "width": {+ "unit": 0,+ "value": 100+ },+ "height": {+ "unit": 0,+ "value": 25+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "生命",+ "fontSize": 19,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 0.93,+ "g": 0.97,+ "b": 1,+ "a": 1+ },+ "bold": true,+ "align": 0,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 231,+ "name": "Vital value 0",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 193+ },+ "insetTop": {+ "unit": 0,+ "value": 6+ },+ "width": {+ "unit": 0,+ "value": 48+ },+ "height": {+ "unit": 0,+ "value": 25+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "100",+ "fontSize": 19,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 0.93,+ "g": 0.97,+ "b": 1,+ "a": 1+ },+ "bold": false,+ "align": 2,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 232,+ "name": "Vital track 0",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 57+ },+ "insetTop": {+ "unit": 0,+ "value": 31+ },+ "width": {+ "unit": 0,+ "value": 182+ },+ "height": {+ "unit": 0,+ "value": 10+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "color": {+ "r": 0.1,+ "g": 0.21,+ "b": 0.24,+ "a": 0.92+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 233,+ "name": "Vital fill 0",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 57+ },+ "insetTop": {+ "unit": 0,+ "value": 31+ },+ "width": {+ "unit": 0,+ "value": 182+ },+ "height": {+ "unit": 0,+ "value": 10+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "color": {+ "r": 0.12,+ "g": 0.96,+ "b": 0.48,+ "a": 1+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 234,+ "name": "Vital icon 1",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 12+ },+ "insetTop": {+ "unit": 0,+ "value": 50+ },+ "width": {+ "unit": 0,+ "value": 31+ },+ "height": {+ "unit": 0,+ "value": 32+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 2,+ "texture": "assets/textures/hud-symbol-cyber.png",+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 235,+ "name": "Vital label 1",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 57+ },+ "insetTop": {+ "unit": 0,+ "value": 46+ },+ "width": {+ "unit": 0,+ "value": 100+ },+ "height": {+ "unit": 0,+ "value": 25+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "义体",+ "fontSize": 19,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 0.93,+ "g": 0.97,+ "b": 1,+ "a": 1+ },+ "bold": true,+ "align": 0,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 236,+ "name": "Vital value 1",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 193+ },+ "insetTop": {+ "unit": 0,+ "value": 46+ },+ "width": {+ "unit": 0,+ "value": 48+ },+ "height": {+ "unit": 0,+ "value": 25+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "82%",+ "fontSize": 19,+ "fontFamily": "Microsoft YaHei, sans-serif",+ "color": {+ "r": 0.93,+ "g": 0.97,+ "b": 1,+ "a": 1+ },+ "bold": false,+ "align": 2,+ "verticalAlign": 1,+ "wordWrap": false+ }+ }+ ]+ },+ {+ "id": 237,+ "name": "Vital track 1",+ "parent": 227,+ "children": [],"visible": true,"components": [{@@ -8221,31 +9366,84 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1398+ "value": 57},"insetTop": {"unit": 0,- "value": 20+ "value": 71},"width": {"unit": 0,- "value": 254+ "value": 182},"height": {"unit": 0,- "value": 198+ "value": 10}}},{"type": "UIVisual","data": {- "visualType": 2,- "texture": "assets/textures/hud-location.png",+ "visualType": 1,"color": {- "r": 1,- "g": 1,- "b": 1,+ "r": 0.1,+ "g": 0.21,+ "b": 0.24,+ "a": 0.92+ },+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 238,+ "name": "Vital fill 1",+ "parent": 227,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "unit": 0,+ "value": 57+ },+ "insetTop": {+ "unit": 0,+ "value": 71+ },+ "width": {+ "unit": 0,+ "value": 149.23999999999998+ },+ "height": {+ "unit": 0,+ "value": 10+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "color": {+ "r": 0.15,+ "g": 0.83,+ "b": 0.95,"a": 1},"enabled": true@@ -8254,9 +9452,9 @@]},{- "id": 216,- "name": "Minimap detail",- "parent": 188,+ "id": 239,+ "name": "Vital icon 2",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8276,19 +9474,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1405+ "value": 12},"insetTop": {"unit": 0,- "value": 48+ "value": 90},"width": {"unit": 0,- "value": 240+ "value": 31},"height": {"unit": 0,- "value": 159+ "value": 32}}},@@ -8296,7 +9494,7 @@"type": "UIVisual","data": {"visualType": 2,- "texture": "assets/textures/hud-map.png",+ "texture": "assets/textures/hud-symbol-water.png","color": {"r": 1,"g": 1,@@ -8309,9 +9507,9 @@]},{- "id": 217,- "name": "Map title",- "parent": 188,+ "id": 240,+ "name": "Vital label 2",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8331,15 +9529,15 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1414+ "value": 57},"insetTop": {"unit": 0,- "value": 24+ "value": 86},"width": {"unit": 0,- "value": 180+ "value": 100},"height": {"unit": 0,@@ -8350,12 +9548,12 @@{"type": "Text","data": {- "content": "区域扫描",- "fontSize": 18,+ "content": "饮水",+ "fontSize": 19,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -8368,9 +9566,9 @@]},{- "id": 218,- "name": "Map north",- "parent": 188,+ "id": 241,+ "name": "Vital value 2",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8390,36 +9588,36 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1620+ "value": 193},"insetTop": {"unit": 0,- "value": 25+ "value": 86},"width": {"unit": 0,- "value": 22+ "value": 48},"height": {"unit": 0,- "value": 22+ "value": 25}}},{"type": "Text","data": {- "content": "N",- "fontSize": 16,+ "content": "64%",+ "fontSize": 19,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},"bold": false,- "align": 0,+ "align": 2,"verticalAlign": 1,"wordWrap": false}@@ -8427,9 +9625,9 @@]},{- "id": 219,- "name": "Map player",- "parent": 188,+ "id": 242,+ "name": "Vital track 2",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8449,46 +9647,41 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1523+ "value": 57},"insetTop": {"unit": 0,- "value": 130+ "value": 111},"width": {"unit": 0,- "value": 30+ "value": 182},"height": {"unit": 0,- "value": 30+ "value": 10}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "▲",- "fontSize": 26,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 1,"color": {"r": 0.1,- "g": 0.84,- "b": 1,- "a": 1+ "g": 0.21,+ "b": 0.24,+ "a": 0.92},- "bold": false,- "align": 1,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 220,- "name": "Vitals panel",- "parent": 188,+ "id": 243,+ "name": "Vital fill 2",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8508,31 +9701,30 @@"position": 1,"insetLeft": {"unit": 0,- "value": 20+ "value": 57},"insetTop": {"unit": 0,- "value": 740+ "value": 111},"width": {"unit": 0,- "value": 260+ "value": 116.48},"height": {"unit": 0,- "value": 174+ "value": 10}}},{"type": "UIVisual","data": {- "visualType": 2,- "texture": "assets/textures/hud-vitals.png",+ "visualType": 1,"color": {- "r": 1,- "g": 1,- "b": 1,+ "r": 0.15,+ "g": 0.83,+ "b": 0.95,"a": 1},"enabled": true@@ -8541,9 +9733,9 @@]},{- "id": 221,- "name": "Vital icon 0",- "parent": 188,+ "id": 244,+ "name": "Vital icon 3",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8563,11 +9755,11 @@"position": 1,"insetLeft": {"unit": 0,- "value": 32+ "value": 12},"insetTop": {"unit": 0,- "value": 748+ "value": 130},"width": {"unit": 0,@@ -8575,7 +9767,7 @@},"height": {"unit": 0,- "value": 31+ "value": 32}}},@@ -8583,7 +9775,7 @@"type": "UIVisual","data": {"visualType": 2,- "texture": "assets/textures/hud-symbol-health.png",+ "texture": "assets/textures/hud-symbol-energy.png","color": {"r": 1,"g": 1,@@ -8596,9 +9788,9 @@]},{- "id": 222,- "name": "Vital label 0",- "parent": 188,+ "id": 245,+ "name": "Vital label 3",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8618,35 +9810,35 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 57},"insetTop": {"unit": 0,- "value": 748+ "value": 126},"width": {"unit": 0,- "value": 95+ "value": 100},"height": {"unit": 0,- "value": 24+ "value": 25}}},{"type": "Text","data": {- "content": "生命",- "fontSize": 18,+ "content": "能量",+ "fontSize": 19,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "bold": false,+ "bold": true,"align": 0,"verticalAlign": 1,"wordWrap": false@@ -8655,9 +9847,9 @@]},{- "id": 223,- "name": "Vital value 0",- "parent": 188,+ "id": 246,+ "name": "Vital value 3",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8677,11 +9869,11 @@"position": 1,"insetLeft": {"unit": 0,- "value": 210+ "value": 193},"insetTop": {"unit": 0,- "value": 748+ "value": 126},"width": {"unit": 0,@@ -8689,19 +9881,19 @@},"height": {"unit": 0,- "value": 24+ "value": 25}}},{"type": "Text","data": {- "content": "100",- "fontSize": 17,+ "content": "71%",+ "fontSize": 19,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -8714,9 +9906,9 @@]},{- "id": 224,- "name": "Vital track 0",- "parent": 188,+ "id": 247,+ "name": "Vital track 3",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8736,19 +9928,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 57},"insetTop": {"unit": 0,- "value": 775+ "value": 151},"width": {"unit": 0,- "value": 181+ "value": 182},"height": {"unit": 0,- "value": 8+ "value": 10}}},@@ -8757,10 +9949,10 @@"data": {"visualType": 1,"color": {- "r": 0.13,- "g": 0.24,- "b": 0.28,- "a": 0.9+ "r": 0.1,+ "g": 0.21,+ "b": 0.24,+ "a": 0.92},"enabled": true}@@ -8768,9 +9960,9 @@]},{- "id": 225,- "name": "Vital fill 0",- "parent": 188,+ "id": 248,+ "name": "Vital fill 3",+ "parent": 227,"children": [],"visible": true,"components": [@@ -8790,19 +9982,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 57},"insetTop": {"unit": 0,- "value": 775+ "value": 151},"width": {"unit": 0,- "value": 181+ "value": 129.22},"height": {"unit": 0,- "value": 8+ "value": 10}}},@@ -8811,9 +10003,9 @@"data": {"visualType": 1,"color": {- "r": 0.12,- "g": 0.93,- "b": 0.48,+ "r": 1,+ "g": 0.84,+ "b": 0.02,"a": 1},"enabled": true@@ -8822,10 +10014,23 @@]},{- "id": 226,- "name": "Vital icon 1",+ "id": 249,+ "name": "Build group","parent": 188,- "children": [],+ "children": [+ 250,+ 251,+ 252,+ 253,+ 254,+ 255,+ 256,+ 257,+ 258,+ 259,+ 260,+ 261+ ],"visible": true,"components": [{@@ -8842,44 +10047,30 @@"type": "UINode","data": {"position": 1,- "insetLeft": {+ "width": {"unit": 0,- "value": 32+ "value": 260},- "insetTop": {+ "height": {"unit": 0,- "value": 788+ "value": 188},- "width": {+ "insetRight": {"unit": 0,- "value": 31+ "value": 20},- "height": {+ "insetBottom": {"unit": 0,- "value": 31+ "value": 212}}- },- {- "type": "UIVisual",- "data": {- "visualType": 2,- "texture": "assets/textures/hud-symbol-cyber.png",- "color": {- "r": 1,- "g": 1,- "b": 1,- "a": 1- },- "enabled": true- }}]},{- "id": 227,- "name": "Vital label 1",- "parent": 188,+ "id": 250,+ "name": "Build panel",+ "parent": 249,"children": [],"visible": true,"components": [@@ -8899,46 +10090,42 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 0},"insetTop": {"unit": 0,- "value": 788+ "value": 0},"width": {"unit": 0,- "value": 95+ "value": 260},"height": {"unit": 0,- "value": 24+ "value": 188}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "义体",- "fontSize": 18,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-build.png","color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 228,- "name": "Vital value 1",- "parent": 188,+ "id": 251,+ "name": "Building icon",+ "parent": 249,"children": [],"visible": true,"components": [@@ -8958,46 +10145,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 210+ "value": 12},"insetTop": {"unit": 0,- "value": 788+ "value": 12.712765957446809},"width": {"unit": 0,- "value": 48+ "value": 78},"height": {"unit": 0,- "value": 24+ "value": 47.57446808510638}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "82%",- "fontSize": 17,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.3720073664825046,+ "y": 0.39502762430939226+ },+ "uvScale": {+ "x": 0.1298342541436464,+ "y": 0.23756906077348067+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 2,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 229,- "name": "Vital track 1",- "parent": 188,+ "id": 252,+ "name": "Building title",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9017,41 +10208,46 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 105},"insetTop": {"unit": 0,- "value": 815+ "value": 10},"width": {"unit": 0,- "value": 181+ "value": 148},"height": {"unit": 0,- "value": 8+ "value": 31}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 1,+ "content": "加固平台",+ "fontSize": 22,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.13,- "g": 0.24,- "b": 0.28,- "a": 0.9+ "r": 0.93,+ "g": 0.97,+ "b": 1,+ "a": 1},- "enabled": true+ "bold": true,+ "align": 0,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 230,- "name": "Vital fill 1",- "parent": 188,+ "id": 253,+ "name": "Build divider",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9071,19 +10267,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 12},"insetTop": {"unit": 0,- "value": 815+ "value": 71},"width": {"unit": 0,- "value": 148.42+ "value": 234},"height": {"unit": 0,- "value": 8+ "value": 1}}},@@ -9092,10 +10288,10 @@"data": {"visualType": 1,"color": {- "r": 0.1,- "g": 0.84,- "b": 1,- "a": 1+ "r": 0.25,+ "g": 0.43,+ "b": 0.5,+ "a": 0.7},"enabled": true}@@ -9103,9 +10299,9 @@]},{- "id": 231,- "name": "Vital icon 2",- "parent": 188,+ "id": 254,+ "name": "Steel icon",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9125,19 +10321,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 32+ "value": 17},"insetTop": {"unit": 0,- "value": 828+ "value": 80},"width": {"unit": 0,- "value": 31+ "value": 32},"height": {"unit": 0,- "value": 31+ "value": 28}}},@@ -9145,7 +10341,7 @@"type": "UIVisual","data": {"visualType": 2,- "texture": "assets/textures/hud-symbol-water.png",+ "texture": "assets/textures/hud-symbol-steel.png","color": {"r": 1,"g": 1,@@ -9158,9 +10354,9 @@]},{- "id": 232,- "name": "Vital label 2",- "parent": 188,+ "id": 255,+ "name": "Steel label",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9180,31 +10376,31 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 59},"insetTop": {"unit": 0,- "value": 828+ "value": 79},"width": {"unit": 0,- "value": 95+ "value": 100},"height": {"unit": 0,- "value": 24+ "value": 28}}},{"type": "Text","data": {- "content": "饮水",- "fontSize": 18,+ "content": "废钢",+ "fontSize": 20,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -9217,9 +10413,9 @@]},{- "id": 233,- "name": "Vital value 2",- "parent": 188,+ "id": 256,+ "name": "Steel value",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9239,31 +10435,31 @@"position": 1,"insetLeft": {"unit": 0,- "value": 210+ "value": 172},"insetTop": {"unit": 0,- "value": 828+ "value": 79},"width": {"unit": 0,- "value": 48+ "value": 70},"height": {"unit": 0,- "value": 24+ "value": 28}}},{"type": "Text","data": {- "content": "64%",- "fontSize": 17,+ "content": "24/4",+ "fontSize": 20,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},@@ -9276,9 +10472,9 @@]},{- "id": 234,- "name": "Vital track 2",- "parent": 188,+ "id": 257,+ "name": "Circuit icon",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9298,31 +10494,32 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 17},"insetTop": {"unit": 0,- "value": 855+ "value": 117},"width": {"unit": 0,- "value": 181+ "value": 32},"height": {"unit": 0,- "value": 8+ "value": 28}}},{"type": "UIVisual","data": {- "visualType": 1,+ "visualType": 2,+ "texture": "assets/textures/hud-symbol-chip.png","color": {- "r": 0.13,- "g": 0.24,- "b": 0.28,- "a": 0.9+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1},"enabled": true}@@ -9330,9 +10527,9 @@]},{- "id": 235,- "name": "Vital fill 2",- "parent": 188,+ "id": 258,+ "name": "Circuit label",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9352,41 +10549,46 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 59},"insetTop": {"unit": 0,- "value": 855+ "value": 116},"width": {"unit": 0,- "value": 115.84+ "value": 110},"height": {"unit": 0,- "value": 8+ "value": 28}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 1,+ "content": "电子元件",+ "fontSize": 20,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.1,- "g": 0.84,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 0,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 236,- "name": "Vital icon 3",- "parent": 188,+ "id": 259,+ "name": "Circuit value",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9406,42 +10608,46 @@"position": 1,"insetLeft": {"unit": 0,- "value": 32+ "value": 172},"insetTop": {"unit": 0,- "value": 868+ "value": 116},"width": {"unit": 0,- "value": 31+ "value": 70},"height": {"unit": 0,- "value": 31+ "value": 28}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/hud-symbol-energy.png",+ "content": "16/2",+ "fontSize": 20,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 2,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 237,- "name": "Vital label 3",- "parent": 188,+ "id": 260,+ "name": "Build valid icon",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9461,46 +10667,42 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 16},"insetTop": {"unit": 0,- "value": 868+ "value": 154},"width": {"unit": 0,- "value": 95+ "value": 25},"height": {"unit": 0,- "value": 24+ "value": 25}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "能量",- "fontSize": 18,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-build-valid.png","color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 238,- "name": "Vital value 3",- "parent": 188,+ "id": 261,+ "name": "Build status",+ "parent": 249,"children": [],"visible": true,"components": [@@ -9520,36 +10722,36 @@"position": 1,"insetLeft": {"unit": 0,- "value": 210+ "value": 55},"insetTop": {"unit": 0,- "value": 868+ "value": 151},"width": {"unit": 0,- "value": 48+ "value": 191},"height": {"unit": 0,- "value": 24+ "value": 29}}},{"type": "Text","data": {- "content": "71%",- "fontSize": 17,+ "content": "可建造",+ "fontSize": 20,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,- "b": 1,+ "r": 0.22,+ "g": 1,+ "b": 0.45,"a": 1},- "bold": false,- "align": 2,+ "bold": true,+ "align": 0,"verticalAlign": 1,"wordWrap": false}@@ -9557,10 +10759,14 @@]},{- "id": 239,- "name": "Vital track 3",+ "id": 262,+ "name": "Controls group","parent": 188,- "children": [],+ "children": [+ 263,+ 264,+ 274+ ],"visible": true,"components": [{@@ -9577,43 +10783,34 @@"type": "UINode","data": {"position": 1,- "insetLeft": {+ "width": {"unit": 0,- "value": 76+ "value": 378},- "insetTop": {+ "height": {"unit": 0,- "value": 895+ "value": 42},- "width": {- "unit": 0,- "value": 181+ "insetLeft": {+ "unit": 1,+ "value": 50},- "height": {+ "marginLeft": {"unit": 0,- "value": 8- }- }- },- {- "type": "UIVisual",- "data": {- "visualType": 1,- "color": {- "r": 0.13,- "g": 0.24,- "b": 0.28,- "a": 0.9+ "value": -189},- "enabled": true+ "insetBottom": {+ "unit": 0,+ "value": 160+ }}}]},{- "id": 240,- "name": "Vital fill 3",- "parent": 188,+ "id": 263,+ "name": "Controls frame",+ "parent": 262,"children": [],"visible": true,"components": [@@ -9633,30 +10830,31 @@"position": 1,"insetLeft": {"unit": 0,- "value": 76+ "value": 0},"insetTop": {"unit": 0,- "value": 895+ "value": 0},"width": {"unit": 0,- "value": 128.51+ "value": 378},"height": {"unit": 0,- "value": 8+ "value": 42}}},{"type": "UIVisual","data": {- "visualType": 1,+ "visualType": 2,+ "texture": "assets/textures/hud-hint.png","color": {"r": 1,- "g": 0.8,- "b": 0.05,+ "g": 1,+ "b": 1,"a": 1},"enabled": true@@ -9665,10 +10863,20 @@]},{- "id": 241,- "name": "Build panel",- "parent": 188,- "children": [],+ "id": 264,+ "name": "Build controls",+ "parent": 262,+ "children": [+ 265,+ 266,+ 267,+ 268,+ 269,+ 270,+ 271,+ 272,+ 273+ ],"visible": true,"components": [{@@ -9687,42 +10895,28 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1392+ "value": 0},"insetTop": {"unit": 0,- "value": 540+ "value": 0},"width": {"unit": 0,- "value": 260+ "value": 378},"height": {"unit": 0,- "value": 190+ "value": 42}}- },- {- "type": "UIVisual",- "data": {- "visualType": 2,- "texture": "assets/textures/hud-build.png",- "color": {- "r": 1,- "g": 1,- "b": 1,- "a": 1- },- "enabled": true- }}]},{- "id": 242,- "name": "Building icon",- "parent": 188,+ "id": 265,+ "name": "Place key cap",+ "parent": 264,"children": [],"visible": true,"components": [@@ -9742,27 +10936,33 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1403+ "value": 27},"insetTop": {"unit": 0,- "value": 545+ "value": 8},"width": {"unit": 0,- "value": 83+ "value": 70},"height": {"unit": 0,- "value": 63+ "value": 26}}},{"type": "UIVisual","data": {- "visualType": 2,- "texture": "assets/textures/inventory-4.png",+ "visualType": 3,+ "texture": "assets/textures/hud-keycap.png",+ "sliceBorder": {+ "x": 5,+ "y": 5,+ "z": 5,+ "w": 5+ },"color": {"r": 1,"g": 1,@@ -9775,9 +10975,9 @@]},{- "id": 243,- "name": "Building title",- "parent": 188,+ "id": 266,+ "name": "Place key",+ "parent": 264,"children": [],"visible": true,"components": [@@ -9797,36 +10997,36 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1490+ "value": 27},"insetTop": {"unit": 0,- "value": 554+ "value": 7},"width": {"unit": 0,- "value": 148+ "value": 70},"height": {"unit": 0,- "value": 30+ "value": 28}}},{"type": "Text","data": {- "content": "加固平台",- "fontSize": 22,+ "content": "鼠标左键",+ "fontSize": 16,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "bold": true,- "align": 0,+ "bold": false,+ "align": 1,"verticalAlign": 1,"wordWrap": false}@@ -9834,9 +11034,9 @@]},{- "id": 244,- "name": "Build divider",- "parent": 188,+ "id": 267,+ "name": "Place hint",+ "parent": 264,"children": [],"visible": true,"components": [@@ -9856,41 +11056,46 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1408+ "value": 105},"insetTop": {"unit": 0,- "value": 604+ "value": 7},"width": {"unit": 0,- "value": 226+ "value": 42},"height": {"unit": 0,- "value": 1+ "value": 28}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 1,+ "content": "放置",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.61,- "g": 0.78,- "b": 0.85,+ "r": 0.93,+ "g": 0.97,+ "b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 0,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 245,- "name": "Steel icon",- "parent": 188,+ "id": 268,+ "name": "Rotate key cap",+ "parent": 264,"children": [],"visible": true,"components": [@@ -9910,27 +11115,33 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1410+ "value": 173},"insetTop": {"unit": 0,- "value": 617+ "value": 8},"width": {"unit": 0,- "value": 31+ "value": 25},"height": {"unit": 0,- "value": 31+ "value": 26}}},{"type": "UIVisual","data": {- "visualType": 2,- "texture": "assets/textures/hud-symbol-steel.png",+ "visualType": 3,+ "texture": "assets/textures/hud-keycap.png",+ "sliceBorder": {+ "x": 5,+ "y": 5,+ "z": 5,+ "w": 5+ },"color": {"r": 1,"g": 1,@@ -9943,9 +11154,9 @@]},{- "id": 246,- "name": "Steel label",- "parent": 188,+ "id": 269,+ "name": "Rotate key",+ "parent": 264,"children": [],"visible": true,"components": [@@ -9965,36 +11176,36 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1452+ "value": 173},"insetTop": {"unit": 0,- "value": 619+ "value": 7},"width": {"unit": 0,- "value": 95+ "value": 25},"height": {"unit": 0,- "value": 26+ "value": 28}}},{"type": "Text","data": {- "content": "废钢",- "fontSize": 20,+ "content": "R",+ "fontSize": 16,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},"bold": false,- "align": 0,+ "align": 1,"verticalAlign": 1,"wordWrap": false}@@ -10002,9 +11213,9 @@]},{- "id": 247,- "name": "Steel value",- "parent": 188,+ "id": 270,+ "name": "Rotate hint",+ "parent": 264,"children": [],"visible": true,"components": [@@ -10024,36 +11235,36 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1560+ "value": 207},"insetTop": {"unit": 0,- "value": 619+ "value": 7},"width": {"unit": 0,- "value": 76+ "value": 42},"height": {"unit": 0,- "value": 26+ "value": 28}}},{"type": "Text","data": {- "content": "24/4",- "fontSize": 20,+ "content": "旋转",+ "fontSize": 18,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},"bold": false,- "align": 2,+ "align": 0,"verticalAlign": 1,"wordWrap": false}@@ -10061,9 +11272,9 @@]},{- "id": 248,- "name": "Circuit icon",- "parent": 188,+ "id": 271,+ "name": "Cancel key cap",+ "parent": 264,"children": [],"visible": true,"components": [@@ -10083,27 +11294,33 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1410+ "value": 268},"insetTop": {"unit": 0,- "value": 654+ "value": 8},"width": {"unit": 0,- "value": 31+ "value": 39},"height": {"unit": 0,- "value": 31+ "value": 26}}},{"type": "UIVisual","data": {- "visualType": 2,- "texture": "assets/textures/hud-symbol-chip.png",+ "visualType": 3,+ "texture": "assets/textures/hud-keycap.png",+ "sliceBorder": {+ "x": 5,+ "y": 5,+ "z": 5,+ "w": 5+ },"color": {"r": 1,"g": 1,@@ -10116,9 +11333,9 @@]},{- "id": 249,- "name": "Circuit label",- "parent": 188,+ "id": 272,+ "name": "Cancel key",+ "parent": 264,"children": [],"visible": true,"components": [@@ -10138,36 +11355,36 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1452+ "value": 268},"insetTop": {"unit": 0,- "value": 656+ "value": 7},"width": {"unit": 0,- "value": 100+ "value": 39},"height": {"unit": 0,- "value": 26+ "value": 28}}},{"type": "Text","data": {- "content": "电子元件",- "fontSize": 20,+ "content": "Esc",+ "fontSize": 16,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},"bold": false,- "align": 0,+ "align": 1,"verticalAlign": 1,"wordWrap": false}@@ -10175,9 +11392,9 @@]},{- "id": 250,- "name": "Circuit value",- "parent": 188,+ "id": 273,+ "name": "Cancel hint",+ "parent": 264,"children": [],"visible": true,"components": [@@ -10197,36 +11414,36 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1560+ "value": 316},"insetTop": {"unit": 0,- "value": 656+ "value": 7},"width": {"unit": 0,- "value": 76+ "value": 44},"height": {"unit": 0,- "value": 26+ "value": 28}}},{"type": "Text","data": {- "content": "16/2",- "fontSize": 20,+ "content": "取消",+ "fontSize": 18,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.91,- "g": 0.96,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},"bold": false,- "align": 2,+ "align": 0,"verticalAlign": 1,"wordWrap": false}@@ -10234,9 +11451,9 @@]},{- "id": 251,- "name": "Build status",- "parent": 188,+ "id": 274,+ "name": "Controls",+ "parent": 262,"children": [],"visible": true,"components": [@@ -10256,36 +11473,36 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1410+ "value": 10},"insetTop": {"unit": 0,- "value": 695+ "value": 7},"width": {"unit": 0,- "value": 225+ "value": 358},"height": {"unit": 0,- "value": 26+ "value": 28}}},{"type": "Text","data": {- "content": "● 可建造",- "fontSize": 19,+ "content": "",+ "fontSize": 17,"fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 0.22,- "g": 1,- "b": 0.45,+ "r": 0.93,+ "g": 0.97,+ "b": 1,"a": 1},- "bold": true,- "align": 0,+ "bold": false,+ "align": 1,"verticalAlign": 1,"wordWrap": false}@@ -10293,10 +11510,20 @@]},{- "id": 252,- "name": "Controls frame",+ "id": 275,+ "name": "Quickbar group","parent": 188,- "children": [],+ "children": [+ 276,+ 279,+ 282,+ 285,+ 288,+ 291,+ 294,+ 297,+ 300+ ],"visible": true,"components": [{@@ -10313,104 +11540,38 @@"type": "UINode","data": {"position": 1,- "insetLeft": {- "unit": 0,- "value": 622- },- "insetTop": {- "unit": 0,- "value": 738- },"width": {"unit": 0,- "value": 430+ "value": 792},"height": {"unit": 0,- "value": 40- }- }- },- {- "type": "UIVisual",- "data": {- "visualType": 2,- "texture": "assets/textures/hud-hint.png",- "color": {- "r": 1,- "g": 1,- "b": 1,- "a": 1+ "value": 100},- "enabled": true- }- }- ]- },- {- "id": 253,- "name": "Controls",- "parent": 188,- "children": [],- "visible": true,- "components": [- {- "type": "Transform",- "data": {- "position": {- "x": 0,- "y": 0,- "z": 0- }- }- },- {- "type": "UINode",- "data": {- "position": 1,"insetLeft": {- "unit": 0,- "value": 633- },- "insetTop": {- "unit": 0,- "value": 743- },- "width": {- "unit": 0,- "value": 408+ "unit": 1,+ "value": 50},- "height": {+ "marginLeft": {"unit": 0,- "value": 28- }- }- },- {- "type": "Text",- "data": {- "content": "鼠标左键 放置 R 旋转 Esc 取消",- "fontSize": 17,- "fontFamily": "Microsoft YaHei, sans-serif",- "color": {- "r": 0.91,- "g": 0.96,- "b": 1,- "a": 1+ "value": -396},- "bold": false,- "align": 1,- "verticalAlign": 1,- "wordWrap": false+ "insetBottom": {+ "unit": 0,+ "value": 40+ }}}]},{- "id": 254,+ "id": 276,"name": "Slot 1",- "parent": 188,- "children": [],+ "parent": 275,+ "children": [+ 277,+ 278+ ],"visible": true,"components": [{@@ -10429,19 +11590,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 446+ "value": 2},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}},@@ -10470,9 +11631,9 @@]},{- "id": 255,- "name": "Slot key 0",- "parent": 188,+ "id": 277,+ "name": "Item 0",+ "parent": 276,"children": [],"visible": true,"components": [@@ -10492,46 +11653,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 455+ "value": 16.60526315789474},"insetTop": {"unit": 0,- "value": 807+ "value": 24},"width": {"unit": 0,- "value": 22+ "value": 60.78947368421052},"height": {"unit": 0,- "value": 22+ "value": 65}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "1",- "fontSize": 16,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.018876611418047883,+ "y": 0.3425414364640884+ },+ "uvScale": {+ "x": 0.106353591160221,+ "y": 0.3411602209944751+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 256,- "name": "Item 0",- "parent": 188,+ "id": 278,+ "name": "Slot key 0",+ "parent": 276,"children": [],"visible": true,"components": [@@ -10551,43 +11716,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 448+ "value": 8},"insetTop": {"unit": 0,- "value": 819+ "value": 4},"width": {"unit": 0,- "value": 88+ "value": 22},"height": {"unit": 0,- "value": 77+ "value": 24}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/inventory-1.png",+ "content": "1",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 257,+ "id": 279,"name": "Slot 2",- "parent": 188,- "children": [],+ "parent": 275,+ "children": [+ 280,+ 281+ ],"visible": true,"components": [{@@ -10606,19 +11778,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 544+ "value": 100},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}},@@ -10647,9 +11819,9 @@]},{- "id": 258,- "name": "Slot key 1",- "parent": 188,+ "id": 280,+ "name": "Item 1",+ "parent": 279,"children": [],"visible": true,"components": [@@ -10669,46 +11841,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 553+ "value": 16.112595419847327},"insetTop": {"unit": 0,- "value": 807+ "value": 24},"width": {"unit": 0,- "value": 22+ "value": 61.774809160305345},"height": {"unit": 0,- "value": 22+ "value": 65}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "2",- "fontSize": 16,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.13674033149171272,+ "y": 0.3314917127071823+ },+ "uvScale": {+ "x": 0.11464088397790055,+ "y": 0.36187845303867405+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 259,- "name": "Item 1",- "parent": 188,+ "id": 281,+ "name": "Slot key 1",+ "parent": 279,"children": [],"visible": true,"components": [@@ -10728,43 +11904,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 546+ "value": 8},"insetTop": {"unit": 0,- "value": 819+ "value": 4},"width": {"unit": 0,- "value": 88+ "value": 22},"height": {"unit": 0,- "value": 77+ "value": 24}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/inventory-2.png",+ "content": "2",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 260,+ "id": 282,"name": "Slot 3",- "parent": 188,- "children": [],+ "parent": 275,+ "children": [+ 283,+ 284+ ],"visible": true,"components": [{@@ -10783,19 +11966,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 642+ "value": 198},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}},@@ -10824,9 +12007,9 @@]},{- "id": 261,- "name": "Slot key 2",- "parent": 188,+ "id": 283,+ "name": "Item 2",+ "parent": 282,"children": [],"visible": true,"components": [@@ -10846,46 +12029,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 651+ "value": 21.417670682730922},"insetTop": {"unit": 0,- "value": 807+ "value": 24},"width": {"unit": 0,- "value": 22+ "value": 51.164658634538156},"height": {"unit": 0,- "value": 22+ "value": 65}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "3",- "fontSize": 16,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.27209944751381215,+ "y": 0.3397790055248619+ },+ "uvScale": {+ "x": 0.09023941068139964,+ "y": 0.34392265193370164+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 262,- "name": "Item 2",- "parent": 188,+ "id": 284,+ "name": "Slot key 2",+ "parent": 282,"children": [],"visible": true,"components": [@@ -10905,43 +12092,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 644+ "value": 8},"insetTop": {"unit": 0,- "value": 819+ "value": 4},"width": {"unit": 0,- "value": 88+ "value": 22},"height": {"unit": 0,- "value": 77+ "value": 24}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/inventory-3.png",+ "content": "3",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 263,+ "id": 285,"name": "Slot 4",- "parent": 188,- "children": [],+ "parent": 275,+ "children": [+ 286,+ 287+ ],"visible": true,"components": [{@@ -10960,19 +12154,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 740+ "value": 296},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}},@@ -11001,9 +12195,9 @@]},{- "id": 264,- "name": "Slot key 3",- "parent": 188,+ "id": 286,+ "name": "Item 3",+ "parent": 285,"children": [],"visible": true,"components": [@@ -11023,46 +12217,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 749+ "value": 9},"insetTop": {"unit": 0,- "value": 807+ "value": 33.322695035460995},"width": {"unit": 0,- "value": 22+ "value": 76},"height": {"unit": 0,- "value": 22+ "value": 46.354609929078016}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "4",- "fontSize": 16,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.3720073664825046,+ "y": 0.39502762430939226+ },+ "uvScale": {+ "x": 0.1298342541436464,+ "y": 0.23756906077348067+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 265,- "name": "Item 3",- "parent": 188,+ "id": 287,+ "name": "Slot key 3",+ "parent": 285,"children": [],"visible": true,"components": [@@ -11082,43 +12280,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 742+ "value": 8},"insetTop": {"unit": 0,- "value": 819+ "value": 4},"width": {"unit": 0,- "value": 88+ "value": 22},"height": {"unit": 0,- "value": 77+ "value": 24}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/inventory-4.png",+ "content": "4",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 266,+ "id": 288,"name": "Slot 5",- "parent": 188,- "children": [],+ "parent": 275,+ "children": [+ 289,+ 290+ ],"visible": true,"components": [{@@ -11137,19 +12342,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 838+ "value": 394},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}},@@ -11178,9 +12383,9 @@]},{- "id": 267,- "name": "Slot key 4",- "parent": 188,+ "id": 289,+ "name": "Item 4",+ "parent": 288,"children": [],"visible": true,"components": [@@ -11200,46 +12405,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 847+ "value": 20.570038910505836},"insetTop": {"unit": 0,- "value": 807+ "value": 24},"width": {"unit": 0,- "value": 22+ "value": 52.85992217898833},"height": {"unit": 0,- "value": 22+ "value": 65}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "5",- "fontSize": 16,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.5161141804788214,+ "y": 0.3301104972375691+ },+ "uvScale": {+ "x": 0.09622467771639043,+ "y": 0.35497237569060774+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 268,- "name": "Item 4",- "parent": 188,+ "id": 290,+ "name": "Slot key 4",+ "parent": 288,"children": [],"visible": true,"components": [@@ -11259,43 +12468,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 840+ "value": 8},"insetTop": {"unit": 0,- "value": 819+ "value": 4},"width": {"unit": 0,- "value": 88+ "value": 22},"height": {"unit": 0,- "value": 77+ "value": 24}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/inventory-5.png",+ "content": "5",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 269,+ "id": 291,"name": "Slot 6",- "parent": 188,- "children": [],+ "parent": 275,+ "children": [+ 292,+ 293+ ],"visible": true,"components": [{@@ -11314,19 +12530,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 936+ "value": 492},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}},@@ -11355,9 +12571,9 @@]},{- "id": 270,- "name": "Slot key 5",- "parent": 188,+ "id": 292,+ "name": "Item 5",+ "parent": 291,"children": [],"visible": true,"components": [@@ -11377,46 +12593,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 945+ "value": 17.29713114754098},"insetTop": {"unit": 0,- "value": 807+ "value": 24},"width": {"unit": 0,- "value": 22+ "value": 59.40573770491804},"height": {"unit": 0,- "value": 22+ "value": 65}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "6",- "fontSize": 16,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.6385819521178637,+ "y": 0.3342541436464088+ },+ "uvScale": {+ "x": 0.10267034990791897,+ "y": 0.3370165745856354+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 271,- "name": "Item 5",- "parent": 188,+ "id": 293,+ "name": "Slot key 5",+ "parent": 291,"children": [],"visible": true,"components": [@@ -11436,43 +12656,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 938+ "value": 8},"insetTop": {"unit": 0,- "value": 819+ "value": 4},"width": {"unit": 0,- "value": 88+ "value": 22},"height": {"unit": 0,- "value": 77+ "value": 24}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/inventory-6.png",+ "content": "6",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 272,+ "id": 294,"name": "Slot 7",- "parent": 188,- "children": [],+ "parent": 275,+ "children": [+ 295,+ 296+ ],"visible": true,"components": [{@@ -11491,19 +12718,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1034+ "value": 590},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}},@@ -11532,9 +12759,9 @@]},{- "id": 273,- "name": "Slot key 6",- "parent": 188,+ "id": 295,+ "name": "Item 6",+ "parent": 294,"children": [],"visible": true,"components": [@@ -11554,46 +12781,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1043+ "value": 12.11467889908257},"insetTop": {"unit": 0,- "value": 807+ "value": 24},"width": {"unit": 0,- "value": 22+ "value": 69.77064220183486},"height": {"unit": 0,- "value": 22+ "value": 65}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "7",- "fontSize": 16,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.7587476979742173,+ "y": 0.36187845303867405+ },+ "uvScale": {+ "x": 0.10773480662983426,+ "y": 0.3011049723756906+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 274,- "name": "Item 6",- "parent": 188,+ "id": 296,+ "name": "Slot key 6",+ "parent": 294,"children": [],"visible": true,"components": [@@ -11613,43 +12844,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1036+ "value": 8},"insetTop": {"unit": 0,- "value": 819+ "value": 4},"width": {"unit": 0,- "value": 88+ "value": 22},"height": {"unit": 0,- "value": 77+ "value": 24}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/inventory-7.png",+ "content": "7",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 275,+ "id": 297,"name": "Slot 8",- "parent": 188,- "children": [],+ "parent": 275,+ "children": [+ 298,+ 299+ ],"visible": true,"components": [{@@ -11668,19 +12906,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1132+ "value": 688},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}},@@ -11709,9 +12947,9 @@]},{- "id": 276,- "name": "Slot key 7",- "parent": 188,+ "id": 298,+ "name": "Item 7",+ "parent": 297,"children": [],"visible": true,"components": [@@ -11731,46 +12969,50 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1141+ "value": 18.722440944881892},"insetTop": {"unit": 0,- "value": 807+ "value": 24},"width": {"unit": 0,- "value": 22+ "value": 56.555118110236215},"height": {"unit": 0,- "value": 22+ "value": 65}}},{- "type": "Text",+ "type": "UIVisual","data": {- "content": "8",- "fontSize": 16,- "fontFamily": "Microsoft YaHei, sans-serif",+ "visualType": 2,+ "texture": "assets/textures/hud-inventory-atlas.png",+ "uvOffset": {+ "x": 0.8825966850828729,+ "y": 0.3301104972375691+ },+ "uvScale": {+ "x": 0.10174953959484347,+ "y": 0.35082872928176795+ },"color": {- "r": 0.91,- "g": 0.96,+ "r": 1,+ "g": 1,"b": 1,"a": 1},- "bold": false,- "align": 0,- "verticalAlign": 1,- "wordWrap": false+ "enabled": true}}]},{- "id": 277,- "name": "Item 7",- "parent": 188,+ "id": 299,+ "name": "Slot key 7",+ "parent": 297,"children": [],"visible": true,"components": [@@ -11790,44 +13032,48 @@"position": 1,"insetLeft": {"unit": 0,- "value": 1134+ "value": 8},"insetTop": {"unit": 0,- "value": 819+ "value": 4},"width": {"unit": 0,- "value": 88+ "value": 22},"height": {"unit": 0,- "value": 77+ "value": 24}}},{- "type": "UIVisual",+ "type": "Text","data": {- "visualType": 2,- "texture": "assets/textures/inventory-8.png",+ "content": "8",+ "fontSize": 18,+ "fontFamily": "Microsoft YaHei, sans-serif","color": {- "r": 1,- "g": 1,+ "r": 0.93,+ "g": 0.97,"b": 1,"a": 1},- "enabled": true+ "bold": false,+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false}}]},{- "id": 278,+ "id": 300,"name": "Selected slot",- "parent": 188,+ "parent": 275,"children": [- 279+ 301],"visible": true,"components": [@@ -11847,28 +13093,28 @@"position": 1,"insetLeft": {"unit": 0,- "value": 740+ "value": 296},"insetTop": {"unit": 0,- "value": 802+ "value": 2},"width": {"unit": 0,- "value": 92+ "value": 94},"height": {"unit": 0,- "value": 94+ "value": 96}}}]},{- "id": 279,+ "id": 301,"name": "Selection glow",- "parent": 278,+ "parent": 300,"children": [],"visible": true,"components": [@@ -11888,19 +13134,19 @@"position": 1,"insetLeft": {"unit": 0,- "value": -6+ "value": -7},"insetTop": {"unit": 0,- "value": -6+ "value": -7},"width": {"unit": 0,- "value": 104+ "value": 108},"height": {"unit": 0,- "value": 106+ "value": 110}}},@@ -11921,10 +13167,12 @@]},{- "id": 280,- "name": "Navigation hint",+ "id": 302,+ "name": "Toast group","parent": 188,- "children": [],+ "children": [+ 303+ ],"visible": true,"components": [{@@ -11941,107 +13189,34 @@"type": "UINode","data": {"position": 1,- "insetLeft": {- "unit": 0,- "value": 450- },- "insetTop": {- "unit": 0,- "value": 908- },"width": {"unit": 0,- "value": 800+ "value": 560},"height": {"unit": 0,- "value": 22- }- }- },- {- "type": "Text",- "data": {- "content": "WASD 移动 · 按住右键环视 · B 建造 · F 回收 · Home 参考视角",- "fontSize": 14,- "fontFamily": "Microsoft YaHei, sans-serif",- "color": {- "r": 0.61,- "g": 0.78,- "b": 0.85,- "a": 1+ "value": 40},- "bold": false,- "align": 1,- "verticalAlign": 1,- "wordWrap": false- }- }- ]- },- {- "id": 281,- "name": "Crosshair",- "parent": 188,- "children": [],- "visible": true,- "components": [- {- "type": "Transform",- "data": {- "position": {- "x": 0,- "y": 0,- "z": 0- }- }- },- {- "type": "UINode",- "data": {- "position": 1,"insetLeft": {- "unit": 0,- "value": 824- },- "insetTop": {- "unit": 0,- "value": 452+ "unit": 1,+ "value": 50},- "width": {+ "marginLeft": {"unit": 0,- "value": 24+ "value": -280},- "height": {+ "insetBottom": {"unit": 0,- "value": 28+ "value": 228}}- },- {- "type": "Text",- "data": {- "content": "·",- "fontSize": 27,- "fontFamily": "Microsoft YaHei, sans-serif",- "color": {- "r": 0.91,- "g": 0.96,- "b": 1,- "a": 1- },- "bold": false,- "align": 1,- "verticalAlign": 1,- "wordWrap": false- }}]},{- "id": 282,+ "id": 303,"name": "Toast",- "parent": 188,+ "parent": 302,"children": [],"visible": true,"components": [@@ -12061,11 +13236,11 @@"position": 1,"insetLeft": {"unit": 0,- "value": 560+ "value": 0},"insetTop": {"unit": 0,- "value": 672+ "value": 0},"width": {"unit": 0,@@ -12073,7 +13248,7 @@},"height": {"unit": 0,- "value": 32+ "value": 40}}},diff --git a/examples/cyber-rooftop/assets/textures/hud-build-valid.png b/examples/cyber-rooftop/assets/textures/hud-build-valid.pngnew file mode 100644index 000000000..c8c4a8b2fBinary files /dev/null and b/examples/cyber-rooftop/assets/textures/hud-build-valid.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-build-valid.png.meta b/examples/cyber-rooftop/assets/textures/hud-build-valid.png.metanew file mode 100644index 000000000..24ecbdd0f--- /dev/null+++ b/examples/cyber-rooftop/assets/textures/hud-build-valid.png.meta@@ -0,0 +1,17 @@+{+ "uuid": "df4c0343-2e8d-4711-b3d3-5c2217d02fbf",+ "version": "2.0",+ "type": "texture",+ "importer": {+ "maxSize": 2048,+ "filterMode": "linear",+ "wrapMode": "clamp",+ "premultiplyAlpha": false,+ "sliceBorder": {+ "left": 0,+ "right": 0,+ "top": 0,+ "bottom": 0+ }+ }+}diff --git a/examples/cyber-rooftop/assets/textures/hud-build.png b/examples/cyber-rooftop/assets/textures/hud-build.pngindex 1b8d72c7b..b38da3f86 100644Binary files a/examples/cyber-rooftop/assets/textures/hud-build.png and b/examples/cyber-rooftop/assets/textures/hud-build.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-build.png.meta b/examples/cyber-rooftop/assets/textures/hud-build.png.metaindex c77bac9fe..5ac886669 100644--- a/examples/cyber-rooftop/assets/textures/hud-build.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-build.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-check-off.png b/examples/cyber-rooftop/assets/textures/hud-check-off.pngnew file mode 100644index 000000000..9364aeaf2Binary files /dev/null and b/examples/cyber-rooftop/assets/textures/hud-check-off.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-check-off.png.meta b/examples/cyber-rooftop/assets/textures/hud-check-off.png.metanew file mode 100644index 000000000..dff47463a--- /dev/null+++ b/examples/cyber-rooftop/assets/textures/hud-check-off.png.meta@@ -0,0 +1,17 @@+{+ "uuid": "5907a3b2-318f-4a6e-8e39-127ab548f450",+ "version": "2.0",+ "type": "texture",+ "importer": {+ "maxSize": 2048,+ "filterMode": "linear",+ "wrapMode": "clamp",+ "premultiplyAlpha": false,+ "sliceBorder": {+ "left": 0,+ "right": 0,+ "top": 0,+ "bottom": 0+ }+ }+}diff --git a/examples/cyber-rooftop/assets/textures/hud-check-on.png b/examples/cyber-rooftop/assets/textures/hud-check-on.pngnew file mode 100644index 000000000..dcf943f4bBinary files /dev/null and b/examples/cyber-rooftop/assets/textures/hud-check-on.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-check-on.png.meta b/examples/cyber-rooftop/assets/textures/hud-check-on.png.metanew file mode 100644index 000000000..200e82c15--- /dev/null+++ b/examples/cyber-rooftop/assets/textures/hud-check-on.png.meta@@ -0,0 +1,17 @@+{+ "uuid": "b77f2d74-2fde-4766-8b22-d5814f8102f1",+ "version": "2.0",+ "type": "texture",+ "importer": {+ "maxSize": 2048,+ "filterMode": "linear",+ "wrapMode": "clamp",+ "premultiplyAlpha": false,+ "sliceBorder": {+ "left": 0,+ "right": 0,+ "top": 0,+ "bottom": 0+ }+ }+}diff --git a/examples/cyber-rooftop/assets/textures/hud-hint.png b/examples/cyber-rooftop/assets/textures/hud-hint.pngindex 37e0b5eb3..edc3e0af1 100644Binary files a/examples/cyber-rooftop/assets/textures/hud-hint.png and b/examples/cyber-rooftop/assets/textures/hud-hint.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-hint.png.meta b/examples/cyber-rooftop/assets/textures/hud-hint.png.metaindex cb62b0206..470d84c26 100644--- a/examples/cyber-rooftop/assets/textures/hud-hint.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-hint.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-inventory-atlas.png b/examples/cyber-rooftop/assets/textures/hud-inventory-atlas.pngnew file mode 100644index 000000000..c15bad592Binary files /dev/null and b/examples/cyber-rooftop/assets/textures/hud-inventory-atlas.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-inventory-atlas.png.meta b/examples/cyber-rooftop/assets/textures/hud-inventory-atlas.png.metanew file mode 100644index 000000000..19c07e5f8--- /dev/null+++ b/examples/cyber-rooftop/assets/textures/hud-inventory-atlas.png.meta@@ -0,0 +1,17 @@+{+ "uuid": "1c9d464a-9bfb-41a3-8471-43743dcb232f",+ "version": "2.0",+ "type": "texture",+ "importer": {+ "maxSize": 4096,+ "filterMode": "linear",+ "wrapMode": "clamp",+ "premultiplyAlpha": false,+ "sliceBorder": {+ "left": 0,+ "right": 0,+ "top": 0,+ "bottom": 0+ }+ }+}diff --git a/examples/cyber-rooftop/assets/textures/hud-keycap.png b/examples/cyber-rooftop/assets/textures/hud-keycap.pngnew file mode 100644index 000000000..e14e91652Binary files /dev/null and b/examples/cyber-rooftop/assets/textures/hud-keycap.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-keycap.png.meta b/examples/cyber-rooftop/assets/textures/hud-keycap.png.metanew file mode 100644index 000000000..f3cb416fc--- /dev/null+++ b/examples/cyber-rooftop/assets/textures/hud-keycap.png.meta@@ -0,0 +1,17 @@+{+ "uuid": "76a7acb3-4102-4ded-8fe0-9be72125bcf3",+ "version": "2.0",+ "type": "texture",+ "importer": {+ "maxSize": 2048,+ "filterMode": "linear",+ "wrapMode": "clamp",+ "premultiplyAlpha": false,+ "sliceBorder": {+ "left": 5,+ "top": 5,+ "right": 5,+ "bottom": 5+ }+ }+}diff --git a/examples/cyber-rooftop/assets/textures/hud-location.png b/examples/cyber-rooftop/assets/textures/hud-location.pngindex 79831a949..1b57e1d86 100644Binary files a/examples/cyber-rooftop/assets/textures/hud-location.png and b/examples/cyber-rooftop/assets/textures/hud-location.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-location.png.meta b/examples/cyber-rooftop/assets/textures/hud-location.png.metaindex 8e045a234..239803d9f 100644--- a/examples/cyber-rooftop/assets/textures/hud-location.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-location.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-map.png b/examples/cyber-rooftop/assets/textures/hud-map.pngindex 80fec2faf..cf53337a8 100644Binary files a/examples/cyber-rooftop/assets/textures/hud-map.png and b/examples/cyber-rooftop/assets/textures/hud-map.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-map.png.meta b/examples/cyber-rooftop/assets/textures/hud-map.png.metaindex abad75750..5f0df38f3 100644--- a/examples/cyber-rooftop/assets/textures/hud-map.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-map.png.meta@@ -3,9 +3,9 @@"version": "2.0","type": "texture","importer": {- "maxSize": 2048,+ "maxSize": 512,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-minimap-frame.png b/examples/cyber-rooftop/assets/textures/hud-minimap-frame.pngnew file mode 100644index 000000000..a8ac61155Binary files /dev/null and b/examples/cyber-rooftop/assets/textures/hud-minimap-frame.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-minimap-frame.png.meta b/examples/cyber-rooftop/assets/textures/hud-minimap-frame.png.metanew file mode 100644index 000000000..b158acb78--- /dev/null+++ b/examples/cyber-rooftop/assets/textures/hud-minimap-frame.png.meta@@ -0,0 +1,17 @@+{+ "uuid": "408f1970-6c21-438f-ad95-9023e3e74a51",+ "version": "2.0",+ "type": "texture",+ "importer": {+ "maxSize": 2048,+ "filterMode": "linear",+ "wrapMode": "clamp",+ "premultiplyAlpha": false,+ "sliceBorder": {+ "left": 0,+ "right": 0,+ "top": 0,+ "bottom": 0+ }+ }+}diff --git a/examples/cyber-rooftop/assets/textures/hud-objectives.png b/examples/cyber-rooftop/assets/textures/hud-objectives.pngindex 963afe81f..8d8510859 100644Binary files a/examples/cyber-rooftop/assets/textures/hud-objectives.png and b/examples/cyber-rooftop/assets/textures/hud-objectives.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-objectives.png.meta b/examples/cyber-rooftop/assets/textures/hud-objectives.png.metaindex 655db5803..52ce33bc7 100644--- a/examples/cyber-rooftop/assets/textures/hud-objectives.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-objectives.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-selected.png b/examples/cyber-rooftop/assets/textures/hud-selected.pngindex f92d6a8ec..2e07722d2 100644Binary files a/examples/cyber-rooftop/assets/textures/hud-selected.png and b/examples/cyber-rooftop/assets/textures/hud-selected.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-selected.png.meta b/examples/cyber-rooftop/assets/textures/hud-selected.png.metaindex 8893cae25..ab8e2b1a6 100644--- a/examples/cyber-rooftop/assets/textures/hud-selected.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-selected.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-slot.png b/examples/cyber-rooftop/assets/textures/hud-slot.pngindex 12313c5eb..d7c34b32a 100644Binary files a/examples/cyber-rooftop/assets/textures/hud-slot.png and b/examples/cyber-rooftop/assets/textures/hud-slot.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-slot.png.meta b/examples/cyber-rooftop/assets/textures/hud-slot.png.metaindex 973b154f5..49d52f02a 100644--- a/examples/cyber-rooftop/assets/textures/hud-slot.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-slot.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-symbol-chip.png.meta b/examples/cyber-rooftop/assets/textures/hud-symbol-chip.png.metaindex 1676ec2d3..e8da09927 100644--- a/examples/cyber-rooftop/assets/textures/hud-symbol-chip.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-symbol-chip.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-symbol-city.png.meta b/examples/cyber-rooftop/assets/textures/hud-symbol-city.png.metaindex 652e284e6..314589be4 100644--- a/examples/cyber-rooftop/assets/textures/hud-symbol-city.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-symbol-city.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-symbol-cyber.png.meta b/examples/cyber-rooftop/assets/textures/hud-symbol-cyber.png.metaindex 78d7873a9..999121771 100644--- a/examples/cyber-rooftop/assets/textures/hud-symbol-cyber.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-symbol-cyber.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-symbol-energy.png.meta b/examples/cyber-rooftop/assets/textures/hud-symbol-energy.png.metaindex 6d01e7655..43cca7a37 100644--- a/examples/cyber-rooftop/assets/textures/hud-symbol-energy.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-symbol-energy.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-symbol-health.png.meta b/examples/cyber-rooftop/assets/textures/hud-symbol-health.png.metaindex 7f8bc6230..e404a71e3 100644--- a/examples/cyber-rooftop/assets/textures/hud-symbol-health.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-symbol-health.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-symbol-rain.png.meta b/examples/cyber-rooftop/assets/textures/hud-symbol-rain.png.metaindex dbb8c8562..92d60f0f0 100644--- a/examples/cyber-rooftop/assets/textures/hud-symbol-rain.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-symbol-rain.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-symbol-steel.png.meta b/examples/cyber-rooftop/assets/textures/hud-symbol-steel.png.metaindex a3f0c3a2c..6c5f4a75c 100644--- a/examples/cyber-rooftop/assets/textures/hud-symbol-steel.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-symbol-steel.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-symbol-water.png.meta b/examples/cyber-rooftop/assets/textures/hud-symbol-water.png.metaindex 8d0a1403e..8b483cbe3 100644--- a/examples/cyber-rooftop/assets/textures/hud-symbol-water.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-symbol-water.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/assets/textures/hud-vitals.png b/examples/cyber-rooftop/assets/textures/hud-vitals.pngindex ff9965322..57ed06486 100644Binary files a/examples/cyber-rooftop/assets/textures/hud-vitals.png and b/examples/cyber-rooftop/assets/textures/hud-vitals.png differdiff --git a/examples/cyber-rooftop/assets/textures/hud-vitals.png.meta b/examples/cyber-rooftop/assets/textures/hud-vitals.png.metaindex fefeee561..1070cef9f 100644--- a/examples/cyber-rooftop/assets/textures/hud-vitals.png.meta+++ b/examples/cyber-rooftop/assets/textures/hud-vitals.png.meta@@ -5,7 +5,7 @@"importer": {"maxSize": 2048,"filterMode": "linear",- "wrapMode": "repeat",+ "wrapMode": "clamp","premultiplyAlpha": false,"sliceBorder": {"left": 0,diff --git a/examples/cyber-rooftop/references/asset-prompts.txt b/examples/cyber-rooftop/references/asset-prompts.txtindex eb4911a0d..a131b9409 100644--- a/examples/cyber-rooftop/references/asset-prompts.txt+++ b/examples/cyber-rooftop/references/asset-prompts.txt@@ -3,3 +3,12 @@ Create one tall 1:2 flat digital advertisement TEXTURE for an emissive billboardWorn paint textureUse case: photorealistic-natural. Asset type: seamless game PBR base-color texture for industrial container walls, a single square texture, flat orthographic surface scan. Aged pale warm-gray painted galvanized steel, extensive small chips showing dark iron at the edges of damaged paint, restrained rust freckles, streaked grime from years of rain, tiny scratches, subtle broad color variation, credible abandoned cyberpunk rooftop construction material. The paint remains mostly intact, about 80 percent. No objects, no panels, no seams, no corrugation, no letters, no borders, no lights, no perspective, no cast shadows, no specular highlights. Uniform diffuse albedo illumination. Photographic micro detail, tileable on all four edges. Overall mid-value gray-beige rather than white, NOT dark brown or entirely rusty.++HUD inventory atlas — visual specification+Eight isolated, realistically shaded cyberpunk survival items on a transparent background: a yellow construction drill, red angle grinder, handheld cyan-screen scanner, reinforced metal platform, pale industrial filter cabinet, dark battery pack with amber indicators, red first-aid case and packaged food. Follow the item order and silhouettes of target.png. Keep panel borders, key numbers and selection glow outside the atlas so native UI remains editable. The 2172 x 724 source and exact frame rectangles are retained in assets/textures/hud-inventory-atlas.png and tools/hud-inventory-frames.json; preserve source resolution during import.++HUD regional map — visual specification+Top-down industrial rooftops and narrow streets in a dark blue-gray palette, diagonal city grid, crisp pale roof outlines, restrained cyan and magenta route accents. No frame, title, compass letter or player arrow baked into the image. Those overlays remain separate native UI elements. This is an illustrative map, not a capture or navigation bake of the current 3D scene.++HUD borders and state icons — construction source+tools/hud.py defines the beveled translucent panels, thin cyan/magenta corner accents, checkbox states, valid-placement mark, keycaps and selection glow at four-times sampling resolution. tools/textures.py defines the editable pictogram paths. Native Text renders all labels and live numbers; src/hud-layout.json holds shared design dimensions and runtime offsets.diff --git a/examples/cyber-rooftop/src/hud-layout.json b/examples/cyber-rooftop/src/hud-layout.jsonnew file mode 100644index 000000000..70b5ca9ac--- /dev/null+++ b/examples/cyber-rooftop/src/hud-layout.json@@ -0,0 +1,6 @@+{+ "design": { "width": 1672, "height": 940 },+ "quickbar": { "width": 792, "height": 100, "bottom": 40, "first": 2, "step": 98, "slotWidth": 94, "slotHeight": 96 },+ "vitalWidth": 182,+ "map": { "playerX": 112, "playerY": 88, "unitsToPixels": 1.5 }+}diff --git a/examples/cyber-rooftop/src/main.ts b/examples/cyber-rooftop/src/main.tsindex 2e54d677d..69d967abd 100644--- a/examples/cyber-rooftop/src/main.ts+++ b/examples/cyber-rooftop/src/main.ts@@ -1,5 +1,6 @@import { addPlugin, defineSystem, GetWorld, Res, Input, Time, Transform, MeshRenderer,- Text, UINode, Playthrough, UIEvents } from 'esengine';+ Text, UINode, UIVisual, UIDisplay, Playthrough, UIEvents } from 'esengine';+import hudLayout from './hud-layout.json';import type { Entity, World } from 'esengine';import { canPlace, canWalk, costs, home, type Placement } from './building';@@ -78,7 +79,10 @@ addPlugin({if(kind==='platform') for(const x of [-3.3,3.3])for(const z of [-2,2])visibility(world,`Built ${n} leg ${x} ${z}`,true);if(kind==='purifier') {const base=get(world,`Built ${n} platform`),bt=world.get(base,Transform);bt.scale={x:.018,y:.0032,z:.015};world.insert(base,Transform,bt);- visibility(world,`Built ${n} filter`,true);visibility(world,`Built ${n} control`,true);label(world,'Water objective','☑ 建造净水装置 1/1');water=84;+ visibility(world,`Built ${n} filter`,true);visibility(world,`Built ${n} control`,true);label(world,'Water objective','建造净水装置 1/1');water=84;+ for(const [name,enabled] of [['Water check',false],['Water check completed',true]] as const) {+ const check=get(world,name);world.insert(check,UIVisual,{...world.get(check,UIVisual),enabled});+ }}toast(world,kind==='purifier'?'净水装置已上线 · 饮水 +20':'加固平台已放置');}@@ -89,17 +93,21 @@ addPlugin({}// Train moves along its modelled rail; camera, tool and minimap stay live.const train=get(world,'Train'),tt=world.get(train,Transform);tt.position.x=Math.sin(elapsed*.06)*1.5;tt.position.z=tt.position.x*.48;world.insert(train,Transform,tt);- const sel=get(world,'Selected slot'),sn=world.get(sel,UINode);sn.insetLeft={unit:0,value:446+(selected-1)*98};world.insert(sel,UINode,sn);+ const sel=get(world,'Selected slot'),sn=world.get(sel,UINode);sn.insetLeft={unit:0,value:hudLayout.quickbar.first+(selected-1)*hudLayout.quickbar.step};world.insert(sel,UINode,sn);label(world,'Building title',kind==='purifier'?'净水装置':'加固平台');label(world,'Steel value',`${steel}/${bill.steel}`);label(world,'Circuit value',`${circuits}/${bill.circuits}`);- label(world,'Build status',!building?'B 进入建造':valid?'● 可建造':!space?'× 空间不足':!funded?'× 材料不足':'× 已达上限');+ label(world,'Build status',!building?'B 进入建造':valid?'可建造':!space?'空间不足':!funded?'材料不足':'已达上限');+ const validIcon=get(world,'Build valid icon'),vi=world.get(validIcon,UIVisual);+ if(vi.enabled!==(building&&valid))world.insert(validIcon,UIVisual,{...vi,enabled:building&&valid});const status=get(world,'Build status'),st=world.get(status,Text);const statusColor=!building?{r:.61,g:.78,b:.85,a:1}:valid?{r:.22,g:1,b:.45,a:1}:{r:1,g:.25,b:.35,a:1};if(st.color.r!==statusColor.r)world.insert(status,Text,{...st,color:statusColor});- label(world,'Controls',building?'鼠标左键 放置 R 旋转 Esc 取消':'WASD 移动 右键环视 B 建造');+ label(world,'Controls',building?'':'WASD 移动 右键环视 B 建造');+ const hints=get(world,'Build controls'),hn=world.get(hints,UINode),display=building?UIDisplay.Flex:UIDisplay.None;+ if(hn.display!==display)world.insert(hints,UINode,{...hn,display});label(world,'Vital value 2',`${water}%`);- const fill=get(world,'Vital fill 2'),fn=world.get(fill,UINode);fn.width={unit:0,value:181*water/100};world.insert(fill,UINode,fn);- const arrow=get(world,'Map player'),an=world.get(arrow,UINode);an.insetLeft={unit:0,value:1500+cam.position.x*1.5};an.insetTop={unit:0,value:105+cam.position.z*1.5};world.insert(arrow,UINode,an);+ const fill=get(world,'Vital fill 2'),fn=world.get(fill,UINode);fn.width={unit:0,value:hudLayout.vitalWidth*water/100};world.insert(fill,UINode,fn);+ const arrow=get(world,'Map player'),an=world.get(arrow,UINode);an.insetLeft={unit:0,value:hudLayout.map.playerX+cam.position.x*hudLayout.map.unitsToPixels};an.insetTop={unit:0,value:hudLayout.map.playerY+cam.position.z*hudLayout.map.unitsToPixels};world.insert(arrow,UINode,an);const at=world.get(arrow,Transform);at.rotation={x:0,y:0,z:Math.sin(-yaw/2),w:Math.cos(yaw/2)};world.insert(arrow,Transform,at);if(toastTime>0) {toastTime-=dt;if(toastTime<=0)label(world,'Toast','');}Object.assign(facts,{ready:true,steel,circuits,placed:placed.length,rotation,building,selected,valid,cameraX:cam.position.x,cameraZ:cam.position.z,purifiers:placed.filter(x=>x.kind==='purifier').length});diff --git a/examples/cyber-rooftop/tools/hud-inventory-frames.json b/examples/cyber-rooftop/tools/hud-inventory-frames.jsonnew file mode 100644index 000000000..d9aa2f7a5--- /dev/null+++ b/examples/cyber-rooftop/tools/hud-inventory-frames.json@@ -0,0 +1,54 @@+{+ "width": 2172,+ "height": 724,+ "frames": [+ {+ "x": 41,+ "y": 248,+ "width": 231,+ "height": 247+ },+ {+ "x": 297,+ "y": 240,+ "width": 249,+ "height": 262+ },+ {+ "x": 591,+ "y": 246,+ "width": 196,+ "height": 249+ },+ {+ "x": 808,+ "y": 286,+ "width": 282,+ "height": 172+ },+ {+ "x": 1121,+ "y": 239,+ "width": 209,+ "height": 257+ },+ {+ "x": 1387,+ "y": 242,+ "width": 223,+ "height": 244+ },+ {+ "x": 1648,+ "y": 262,+ "width": 234,+ "height": 218+ },+ {+ "x": 1917,+ "y": 239,+ "width": 221,+ "height": 254+ }+ ]+}diff --git a/examples/cyber-rooftop/tools/hud-scene.mjs b/examples/cyber-rooftop/tools/hud-scene.mjsnew file mode 100644index 000000000..d89e27811--- /dev/null+++ b/examples/cyber-rooftop/tools/hud-scene.mjs@@ -0,0 +1,102 @@+/** Native, anchored UI over the scene. Coordinates inside each panel follow the design. */+export function buildHud({add,tr,c,rgba,read}) {+ const layout=read('src/hud-layout.json');+ const atlas=read('tools/hud-inventory-frames.json');+ const px=value=>({unit:0,value}),percent=value=>({unit:1,value});+ const canvas=add('HUD',[tr(),c('Canvas',{designResolution:{x:layout.design.width,y:layout.design.height},scaleMode:2,backgroundColor:rgba(0,0,0,0)}),c('UINode',{})]);+ const ui=(name,x,y,w,h,components=[],parent=canvas)=>add(name,[tr(),c('UINode',{position:1,insetLeft:px(x),insetTop:px(y),width:px(w),height:px(h)}),...components],parent);+ const group=(name,w,h,anchor)=>add(name,[tr(),c('UINode',{position:1,width:px(w),height:px(h),...anchor})],canvas);+ const art=(name,asset,x,y,w,h,parent)=>ui(name,x,y,w,h,[c('UIVisual',{visualType:2,texture:`assets/textures/${asset}.png`,color:rgba(1,1,1),enabled:true})],parent);+ const rect=(name,x,y,w,h,color,parent)=>ui(name,x,y,w,h,[c('UIVisual',{visualType:1,color,enabled:true})],parent);+ const label=(name,text,x,y,w,h=26,size=18,color=rgba(.93,.97,1),bold=false,align=0,parent=canvas)=>ui(name,x,y,w,h,[c('Text',{content:text,fontSize:size,fontFamily:'Microsoft YaHei, sans-serif',color,bold,align,verticalAlign:1,wordWrap:false})],parent);+ const item=(name,index,x,y,w,h,parent)=>{+ const f=atlas.frames[index],s=Math.min(w/f.width,h/f.height),dw=f.width*s,dh=f.height*s;+ return ui(name,x+(w-dw)/2,y+(h-dh)/2,dw,dh,[c('UIVisual',{visualType:2,texture:'assets/textures/hud-inventory-atlas.png',uvOffset:{x:f.x/atlas.width,y:f.y/atlas.height},uvScale:{x:f.width/atlas.width,y:f.height/atlas.height},color:rgba(1,1,1),enabled:true})],parent);+ };+ const cyan=rgba(.15,.83,.95),muted=rgba(.52,.67,.72),rule=rgba(.25,.43,.50,.70);+ const location=group('Location group',260,98,{insetLeft:px(20),insetTop:px(20)});+ art('Location panel','hud-location',0,0,260,98,location);+ art('Location icon','hud-symbol-city',13,7,43,45,location);+ label('Location','下城避难所',75,4,180,29,22,undefined,true,0,location);+ label('Day','第 07 天 · 22:16',75,32,180,26,18,undefined,false,0,location);+ rect('Location divider',9,63,242,1,rule,location);+ art('Weather icon','hud-symbol-rain',15,66,31,29,location);+ label('Weather','酸雨 · 18°C',59,66,185,29,19,undefined,false,0,location);++ const objectives=group('Objectives group',260,110,{insetLeft:px(20),insetTop:px(132)});+ art('Objectives panel','hud-objectives',0,0,260,110,objectives);+ label('Objective title','建立安全屋',17,5,232,30,22,undefined,true,0,objectives);+ rect('Objective divider',10,40,240,1,rule,objectives);+ art('Power check','hud-check-on',15,47,24,24,objectives);+ label('Power objective','接通备用电源',50,45,204,27,19,undefined,false,0,objectives);+ art('Water check','hud-check-off',15,76,24,24,objectives);+ ui('Water check completed',15,76,24,24,[c('UIVisual',{visualType:2,texture:'assets/textures/hud-check-on.png',color:rgba(1,1,1),enabled:false})],objectives);+ label('Water objective','建造净水装置 0/1',50,75,205,27,18,undefined,false,0,objectives);++ const compass=group('Compass group',650,105,{insetLeft:percent(50),marginLeft:px(-325),insetTop:px(12)});+ rect('Compass line',0,14,650,1,rgba(.66,.77,.83,.72),compass);+ for(const [i,text] of ['W','NW','N','NE','E'].entries()) {+ const x=56+i*126;+ label('Compass '+text,text,x,25,42,23,17,undefined,false,1,compass);+ rect('Compass tick '+i,x+21,14,1,10,muted,compass);+ }+ label('North marker','▼',310,-5,30,22,16,undefined,false,1,compass);+ label('Waypoint','◇ 废料回收站 180 m',410,60,280,28,18,rgba(1,.76,.23),false,0,compass);++ const map=group('Minimap group',240,198,{insetRight:px(20),insetTop:px(20)});+ art('Minimap detail','hud-map',3,3,234,192,map);+ rect('Map title backing',3,3,234,28,rgba(.015,.04,.055,.85),map);+ art('Map border','hud-minimap-frame',0,0,240,198,map);+ label('Map title','区域扫描',10,3,170,25,18,undefined,false,0,map);+ label('Map north','N',212,4,22,25,18,undefined,false,1,map);+ label('Map player','▲',layout.map.playerX+9,layout.map.playerY+20.25,25,25,21,cyan,false,1,map);++ const vitals=group('Vitals group',260,174,{insetLeft:px(20),insetBottom:px(26)});+ art('Vitals panel','hud-vitals',0,0,260,174,vitals);+ for(const [i,icon,title,value,col,amount] of [[0,'health','生命','100',rgba(.12,.96,.48),1],[1,'cyber','义体','82%',cyan,.82],[2,'water','饮水','64%',cyan,.64],[3,'energy','能量','71%',rgba(1,.84,.02),.71]]) {+ const y=6+i*40;+ art('Vital icon '+i,'hud-symbol-'+icon,12,y+4,31,32,vitals);+ label('Vital label '+i,title,57,y,100,25,19,undefined,true,0,vitals);+ label('Vital value '+i,value,193,y,48,25,19,undefined,false,2,vitals);+ rect('Vital track '+i,57,y+25,layout.vitalWidth,10,rgba(.10,.21,.24,.92),vitals);+ rect('Vital fill '+i,57,y+25,layout.vitalWidth*amount,10,col,vitals);+ }++ const build=group('Build group',260,188,{insetRight:px(20),insetBottom:px(212)});+ art('Build panel','hud-build',0,0,260,188,build);+ item('Building icon',3,12,12,78,49,build);+ label('Building title','加固平台',105,10,148,31,22,undefined,true,0,build);+ rect('Build divider',12,71,234,1,rule,build);+ art('Steel icon','hud-symbol-steel',17,80,32,28,build);+ label('Steel label','废钢',59,79,100,28,20,undefined,false,0,build);+ label('Steel value','24/4',172,79,70,28,20,undefined,false,2,build);+ art('Circuit icon','hud-symbol-chip',17,117,32,28,build);+ label('Circuit label','电子元件',59,116,110,28,20,undefined,false,0,build);+ label('Circuit value','16/2',172,116,70,28,20,undefined,false,2,build);+ art('Build valid icon','hud-build-valid',16,154,25,25,build);+ label('Build status','可建造',55,151,191,29,20,rgba(.22,1,.45),true,0,build);++ const hint=group('Controls group',378,42,{insetLeft:percent(50),marginLeft:px(-189),insetBottom:px(160)});+ art('Controls frame','hud-hint',0,0,378,42,hint);+ const hints=ui('Build controls',0,0,378,42,[],hint);+ const key=(name,text,x,w)=>{+ ui(name+' cap',x,8,w,26,[c('UIVisual',{visualType:3,texture:'assets/textures/hud-keycap.png',sliceBorder:{x:5,y:5,z:5,w:5},color:rgba(1,1,1),enabled:true})],hints);+ label(name,text,x,7,w,28,16,undefined,false,1,hints);+ };+ key('Place key','鼠标左键',27,70);label('Place hint','放置',105,7,42,28,18,undefined,false,0,hints);+ key('Rotate key','R',173,25);label('Rotate hint','旋转',207,7,42,28,18,undefined,false,0,hints);+ key('Cancel key','Esc',268,39);label('Cancel hint','取消',316,7,44,28,18,undefined,false,0,hints);+ label('Controls','',10,7,358,28,17,undefined,false,1,hint);++ const q=layout.quickbar,bar=group('Quickbar group',q.width,q.height,{insetLeft:percent(50),marginLeft:px(-q.width/2),insetBottom:px(q.bottom)});+ for(let i=0;i<8;i++) {+ const x=q.first+i*q.step;+ const slot=ui('Slot '+(i+1),x,2,q.slotWidth,q.slotHeight,[c('UIVisual',{visualType:2,texture:'assets/textures/hud-slot.png',color:rgba(1,1,1),enabled:true}),c('Interactable',{enabled:true,raycastTarget:true,blockRaycast:true})],bar);+ item('Item '+i,i,9,24,76,65,slot);+ label('Slot key '+i,String(i+1),8,4,22,24,18,undefined,false,1,slot);+ }+ const select=ui('Selected slot',q.first+3*q.step,2,q.slotWidth,q.slotHeight,[],bar);+ art('Selection glow','hud-selected',-7,-7,108,110,select);+ const toast=group('Toast group',560,40,{insetLeft:percent(50),marginLeft:px(-280),insetBottom:px(228)});+ label('Toast','',0,0,560,40,21,rgba(.25,1,.85),false,1,toast);+}diff --git a/examples/cyber-rooftop/tools/hud.py b/examples/cyber-rooftop/tools/hud.pynew file mode 100644index 000000000..8488692cb--- /dev/null+++ b/examples/cyber-rooftop/tools/hud.py@@ -0,0 +1,69 @@+"""Editable HUD borders and pictograms, measured against the 1672 x 940 design.++These shapes stay independent of the inventory atlas and map artwork, so+rebuilding a border never overwrites art. Text and live values are native UI.+"""+from pathlib import Path+from PIL import Image, ImageDraw, ImageFilter++OUT = Path(__file__).resolve().parents[1] / 'assets/textures'+S = 4+CYAN = (47, 204, 231, 255)+PINK = (239, 34, 159, 255)+++def panel(name, w, h, accents, fill=(3, 15, 23, 215)):+ im = Image.new('RGBA', (w*S, h*S))+ d = ImageDraw.Draw(im)+ def line(points, color, width=1):+ d.line([(round(x*S), round(y*S)) for x, y in points], fill=color, width=round(width*S), joint='curve')+ polygon = [(10, 1), (w-10, 1), (w-1, 10), (w-1, h-10), (w-10, h-1), (10, h-1), (1, h-10), (1, 10)]+ d.polygon([(x*S, y*S) for x, y in polygon], fill=fill)+ line(polygon+[polygon[0]], (71, 122, 142, 230), .9)+ paths = {+ 'tl': [(1, 36), (1, 11), (11, 1), (51, 1)],+ 'tr': [(w-24, 1), (w-11, 1), (w-1, 11), (w-1, 24)],+ 'br': [(w-1, h-25), (w-1, h-11), (w-11, h-1), (w-47, h-1)],+ 'bl': [(1, h-27), (1, h-11), (11, h-1), (37, h-1)],+ }+ for corner, color in accents.items(): line(paths[corner], color, 1.8)+ im.resize((w, h), Image.Resampling.LANCZOS).save(OUT/f'{name}.png')+++panel('hud-location', 260, 98, {'tl': CYAN})+panel('hud-objectives', 260, 110, {'tl': PINK, 'br': CYAN})+panel('hud-vitals', 260, 174, {'tl': CYAN, 'tr': PINK, 'bl': CYAN})+panel('hud-build', 260, 188, {'tl': PINK, 'br': PINK, 'bl': CYAN}, (2, 15, 23, 238))+panel('hud-minimap-frame', 240, 198, {'tl': PINK, 'tr': PINK, 'bl': CYAN}, (0, 0, 0, 0))+panel('hud-hint', 378, 42, {'tl': (105, 167, 184, 240)}, (4, 16, 24, 215))++im = Image.new('RGBA', (94*S, 96*S))+d = ImageDraw.Draw(im)+d.rounded_rectangle((S, S, 93*S, 95*S), 4*S, fill=(2, 14, 21, 230), outline=(110, 147, 156, 245), width=S)+d.rounded_rectangle((4*S, 4*S, 90*S, 92*S), 3*S, outline=(28, 55, 64, 210), width=S)+im.resize((94, 96), Image.Resampling.LANCZOS).save(OUT/'hud-slot.png')++im = Image.new('RGBA', (108*S, 110*S))+d = ImageDraw.Draw(im)+d.rounded_rectangle((7*S, 7*S, 101*S, 103*S), 5*S, outline=(0, 227, 255, 210), width=6*S)+im = im.filter(ImageFilter.GaussianBlur(3*S))+d = ImageDraw.Draw(im)+d.rounded_rectangle((7*S, 7*S, 101*S, 103*S), 4*S, outline=(100, 244, 255, 255), width=2*S)+d.line([(7*S, 26*S), (7*S, 13*S), (13*S, 7*S), (48*S, 7*S)], fill=(205, 255, 255), width=2*S)+im.resize((108, 110), Image.Resampling.LANCZOS).save(OUT/'hud-selected.png')++for checked in [False, True]:+ im = Image.new('RGBA', (24*S, 24*S)); d = ImageDraw.Draw(im)+ color = (58, 255, 129, 255) if checked else (195, 220, 229, 255)+ d.rectangle((3*S, 3*S, 21*S, 21*S), outline=color, width=S)+ if checked: d.line([(6*S, 12*S), (10*S, 17*S), (18*S, 7*S)], fill=color, width=2*S)+ im.resize((24, 24), Image.Resampling.LANCZOS).save(OUT/('hud-check-on.png' if checked else 'hud-check-off.png'))++im = Image.new('RGBA', (28*S, 28*S)); d = ImageDraw.Draw(im)+d.ellipse((2*S, 2*S, 26*S, 26*S), fill=(54, 255, 129, 255))+d.line([(8*S, 14*S), (12*S, 18*S), (21*S, 9*S)], fill=(0, 41, 23, 255), width=3*S)+im.resize((28, 28), Image.Resampling.LANCZOS).save(OUT/'hud-build-valid.png')+im = Image.new('RGBA', (32*S, 32*S)); d = ImageDraw.Draw(im)+d.rounded_rectangle((S, S, 31*S, 31*S), 4*S, fill=(6, 22, 30, 180), outline=(183, 207, 214, 255), width=S)+im.resize((32, 32), Image.Resampling.LANCZOS).save(OUT/'hud-keycap.png')+print('HUD panels and status symbols rebuilt.')diff --git a/examples/cyber-rooftop/tools/scene.mjs b/examples/cyber-rooftop/tools/scene.mjsindex 740dc20eb..4188f2a7f 100644--- a/examples/cyber-rooftop/tools/scene.mjs+++ b/examples/cyber-rooftop/tools/scene.mjs@@ -1,3 +1,4 @@+import { buildHud } from './hud-scene.mjs';import { readFileSync, writeFileSync } from 'node:fs';import path from 'node:path';import { fileURLToPath } from 'node:url';@@ -109,66 +110,7 @@ const emitter=(name,p,config)=>add(name,[tr(p),c('ParticleEmitter',{texture:'assemitter('Rain',[0,13,-2],{shape:2,shapeSize:{x:34,y:1,z:28},rate:400,maxParticles:900,lifetimeMin:1.2,lifetimeMax:1.5,speedMin:0,speedMax:0,gravity:vec([1,-18,0]),startColor:rgba(.38,.69,1,.24),endColor:rgba(.38,.69,1,.04),startSizeMin:.018,startSizeMax:.028,endSizeMin:.018,endSizeMax:.028,trailEnabled:true,trailWidth:.015,trailPoints:3,trailMinDistance:.12,blendMode:1});for(const [x,z] of [[10,-13],[-15,-5],[17,3]]) emitter('Steam '+x,[x,.5,z],{shape:3,shapeRadius:.22,shapeAngle:12,rate:9,maxParticles:70,lifetimeMin:3,lifetimeMax:5,speedMin:.35,speedMax:.7,gravity:vec([.06,.18,0]),startColor:rgba(.32,.48,.62,.13),endColor:rgba(.35,.5,.7,0),startSizeMin:.6,startSizeMax:1,endSizeMin:2.2,endSizeMax:3.1,blendMode:0});-// Native 2D Canvas over the 3D world; no DOM or reference screenshot in the game.-const canvas=add('HUD',[tr(),c('Canvas',{designResolution:{x:1672,y:940},scaleMode:2,backgroundColor:rgba(0,0,0,0)}),c('UINode',{})]);-const px=value=>({unit:0,value});-function ui(name,x,y,w,h,components=[],parent=canvas) {- return add(name,[tr(),c('UINode',{position:1,insetLeft:px(x),insetTop:px(y),width:px(w),height:px(h)}),...components],parent);-}-function art(name,asset,x,y,w,h,parent=canvas) {return ui(name,x,y,w,h,[c('UIVisual',{visualType:2,texture:`assets/textures/${asset}.png`,color:rgba(1,1,1),enabled:true})],parent);}-function rect(name,x,y,w,h,color,parent=canvas) {return ui(name,x,y,w,h,[c('UIVisual',{visualType:1,color,enabled:true})],parent);}-function label(name,text,x,y,w,h=28,size=20,color=rgba(.91,.96,1),bold=false,align=0,parent=canvas) {return ui(name,x,y,w,h,[c('Text',{content:text,fontSize:size,fontFamily:'Microsoft YaHei, sans-serif',color,bold,align,verticalAlign:1,wordWrap:false})],parent);}-const cyan=rgba(.1,.84,1),pink=rgba(1,.08,.6),muted=rgba(.61,.78,.85);-art('Location panel','hud-location',20,20,270,100);-art('Location icon','hud-symbol-city',33,27,45,45);-label('Location','下城避难所',82,26,194,28,22,undefined,true);-label('Day','第 07 天 · 22:16',83,56,195,24,16);-rect('Location divider',28,81,248,1,rgba(.2,.5,.6,.5));-art('Weather icon','hud-symbol-rain',35,87,28,28);-label('Weather','酸雨 · 18°C',79,87,180,27,18);-art('Objectives panel','hud-objectives',20,134,280,112);-label('Objective title','建立安全屋',36,143,250,29,21,undefined,true);-rect('Objective divider',29,176,256,1,rgba(.2,.5,.6,.5));-label('Power objective','☑ 接通备用电源',37,183,240,25,18);-label('Water objective','□ 建造净水装置 0/1',37,214,256,24,17);-rect('Compass line',508,26,652,1,rgba(.7,.82,.9,.75));-for(const [i,text] of ['W','NW','N','NE','E'].entries()) {const x=548+i*134;label('Compass '+text,text,x,36,50,27,17,undefined,false,1);rect('Compass tick '+i,x+25,24,1,12,muted);}-label('North marker','▼',825,5,30,25,17,undefined,false,1);-label('Waypoint','◇ 废料回收站 180 m',928,74,280,28,18,rgba(1,.76,.23));-art('Minimap','hud-map',1400,21,250,194);-art('Map border','hud-location',1398,20,254,198);-// The map is above its backing frame; labels and player marker remain separate.-art('Minimap detail','hud-map',1405,48,240,159);-label('Map title','区域扫描',1414,24,180,25,18,undefined,true);-label('Map north','N',1620,25,22,22,16);-label('Map player','▲',1523,130,30,30,26,cyan,false,1);--art('Vitals panel','hud-vitals',20,740,260,174);-for(const [i,icon,title,value,col] of [[0,'health','生命','100',rgba(.12,.93,.48)],[1,'cyber','义体','82%',cyan],[2,'water','饮水','64%',cyan],[3,'energy','能量','71%',rgba(1,.8,.05)]]) {- const y=748+i*40;art('Vital icon '+i,'hud-symbol-'+icon,32,y,31,31);- label('Vital label '+i,title,76,y,95,24,18);label('Vital value '+i,value,210,y,48,24,17,undefined,false,2);- rect('Vital track '+i,76,y+27,181,8,rgba(.13,.24,.28,.9));- rect('Vital fill '+i,76,y+27,181*[1,.82,.64,.71][i],8,col);-}-art('Build panel','hud-build',1392,540,260,190);-art('Building icon','inventory-4',1403,545,83,63);-label('Building title','加固平台',1490,554,148,30,22,undefined,true);-rect('Build divider',1408,604,226,1,muted);-art('Steel icon','hud-symbol-steel',1410,617,31,31);label('Steel label','废钢',1452,619,95,26,20);label('Steel value','24/4',1560,619,76,26,20,undefined,false,2);-art('Circuit icon','hud-symbol-chip',1410,654,31,31);label('Circuit label','电子元件',1452,656,100,26,20);label('Circuit value','16/2',1560,656,76,26,20,undefined,false,2);-label('Build status','● 可建造',1410,695,225,26,19,rgba(.22,1,.45),true);-art('Controls frame','hud-hint',622,738,430,40);-label('Controls','鼠标左键 放置 R 旋转 Esc 取消',633,743,408,28,17,undefined,false,1);-for(let i=0;i<8;i++) {- const x=446+i*98;const slot=art('Slot '+(i+1),'hud-slot',x,802,92,94);- entities[slot].components.push(c('Interactable',{enabled:true,raycastTarget:true,blockRaycast:true}));- label('Slot key '+i,String(i+1),x+9,807,22,22,16);- art('Item '+i,`inventory-${i+1}`,x+2,819,88,77);-}-const select=ui('Selected slot',740,802,92,94);-art('Selection glow','hud-selected',-6,-6,104,106,select);-label('Navigation hint','WASD 移动 · 按住右键环视 · B 建造 · F 回收 · Home 参考视角',450,908,800,22,14,muted,false,1);-label('Crosshair','·',824,452,24,28,27,undefined,false,1);-label('Toast','',560,672,560,32,21,rgba(.25,1,.85),false,1);+// Author the native HUD from independently editable panel and atlas sources.+buildHud({add,tr,c,rgba,read});write('assets/scenes/main.esscene',{version:4,name:'下城避难所',entities});console.log(`Scene: ${entities.length} entities, ${prefab.entities.length} imported model nodes.`);diff --git a/examples/cyber-rooftop/tools/textures.py b/examples/cyber-rooftop/tools/textures.pyindex d44711fd9..90568a582 100644--- a/examples/cyber-rooftop/tools/textures.py+++ b/examples/cyber-rooftop/tools/textures.py@@ -81,56 +81,6 @@ d.text((32,208),'BUILD / 04',font=ImageFont.truetype(FONT,23),fill=(74,224,241))im.save(OUT/'tool-display.png')print('Surface textures and signage written.')-# HUD frame art is generated separately from text; labels remain native editable UI.-def frame(name,w,h):- s=2; im=Image.new('RGBA',(w*s,h*s)); d=ImageDraw.Draw(im)- poly=[(12,0),(w-3,0),(w,3),(w,h-12),(w-12,h),(3,h),(0,h-3),(0,12)]- poly=[(x*s,y*s) for x,y in poly]- d.polygon(poly,fill=(7,25,35,224),outline=(103,160,174,235),width=2)- for y in range(9,h*s-9,4):d.line((8,y,w*s-8,y),fill=(9,28,38,224),width=1)- d.line((24,7,w*s-14,7),fill=(56,91,103,150),width=1)- d.line((7,26,7,h*s-16),fill=(26,101,123,140),width=2)- d.line([(0,26),(26,0),(80,0)],fill=(35,233,255),width=6)- d.line([(w*s-80,h*s-2),(w*s-26,h*s-2),(w*s-2,h*s-26)],fill=(255,36,166),width=6)- im.resize((w,h),Image.Resampling.LANCZOS).save(OUT/f'{name}.png')-for name,w,h in [('hud-location',270,100),('hud-objectives',280,112),('hud-vitals',260,174),('hud-build',260,190),('hud-slot',92,94),('hud-hint',430,40)]: frame(name,w,h)--im=Image.new('RGBA',(184,188));d=ImageDraw.Draw(im)-d.rounded_rectangle((2,2,181,185),9,fill=(5,22,31,225),outline=(66,103,116,255),width=2)-d.rounded_rectangle((7,7,176,180),6,outline=(27,56,69,220),width=1)-im.resize((92,94),Image.Resampling.LANCZOS).save(OUT/'hud-slot.png')-im=Image.new('RGBA',(208,212));d=ImageDraw.Draw(im)-d.rounded_rectangle((13,13,194,198),10,outline=(0,231,255,180),width=13)-im=im.filter(ImageFilter.GaussianBlur(5));d=ImageDraw.Draw(im)-d.rounded_rectangle((13,13,194,198),10,outline=(75,244,255,255),width=4)-d.line((14,34,34,14,67,14),fill=(180,255,255,255),width=5)-im.save(OUT/'hud-selected.png')--im=Image.new('RGB',(900,760),(7,16,26));d=ImageDraw.Draw(im)-for x in range(-80,900,135):- for y in range(-80,760,120):- w,h=rng.randrange(72,108),rng.randrange(68,94)- d.rectangle((x+6,y+7,x+w+7,y+h+8),fill=(0,3,10))- d.rectangle((x,y,x+w,y+h),fill=(40,52,68),outline=(138,158,180),width=2)- d.rectangle((x+7,y+7,x+w-7,y+h-7),outline=(70,92,116),width=2)- for j in range(3):- px=x+12+j*22;py=y+14+(j%2)*25- d.rectangle((px,py,px+12,py+20),fill=(13,24,35),outline=(78,103,122),width=2)- d.line((x,y+h+13,x+w,y+h+13),fill=(53,93,112),width=2)-for x in range(-90,900,135):d.line((x+119,0,x+119,760),fill=(74,123,141),width=3)-d.line((0,371,900,371),fill=(8,7,24),width=28)-d.line((0,363,900,363),fill=(235,25,155),width=3)-d.line((0,379,900,379),fill=(59,196,233),width=3)-for k in range(30):- x,y=rng.randrange(900),rng.randrange(760)- d.rectangle((x,y,x+6,y+3),fill=(240,36,150) if k%2 else (42,216,245))-d.rectangle((369,390,532,506),outline=(175,220,238),width=5)-d.rectangle((379,400,520,435),fill=(30,61,72),outline=(157,197,215),width=3)-im=im.rotate(17,resample=Image.Resampling.BICUBIC)-im=im.crop((120,115,780,645)).resize((500,388),Image.Resampling.LANCZOS)-d=ImageDraw.Draw(im);d.polygon([(348,101),(367,120),(348,139),(329,120)],outline=(255,188,25),width=5)-im.save(OUT/'hud-map.png')-# Crisp pictograms authored as editable paths, with supersampling for the native HUD.for name in ['city','rain','health','cyber','water','energy','steel','chip']:im=Image.new('RGBA',(96,96));d=ImageDraw.Draw(im);col=(137,221,244,255)@@ -185,4 +135,8 @@ for k in range(8):else:iso(d,42,26,33,51,17,(180,151,98,255)); d.ellipse((51,37,80,65),fill=(220,224,190),outline=(124,66,40),width=3)im.save(OUT/f'hud-item-{k+1}.png')-print('HUD frames, map and inventory art written.')+print('HUD pictograms and fallback inventory icons written.')++# Border sources are independent of the inventory and minimap artwork.+import runpy+runpy.run_path(str(ROOT/'tools/hud.py'))diff --git a/examples/cyber-rooftop/tsconfig.json b/examples/cyber-rooftop/tsconfig.jsonindex c923a74bc..73785eafa 100644--- a/examples/cyber-rooftop/tsconfig.json+++ b/examples/cyber-rooftop/tsconfig.json@@ -1,7 +1,7 @@{"compilerOptions": {"target": "ES2022", "module": "ESNext", "moduleResolution": "bundler",- "strict": true, "skipLibCheck": true, "noEmit": true,+ "strict": true, "skipLibCheck": true, "noEmit": true, "resolveJsonModule": true,"paths": { "esengine": ["../../sdk/dist/index.d.ts"] }},"include": ["src/**/*.ts"]