From 8b91fe06579983ea053086f9bbc6feee2bd573e7 Mon Sep 17 00:00:00 2001 From: Georgy Shive Date: Fri, 14 Mar 2025 04:35:07 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D1=8B?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=D0=B0=20?= =?UTF-8?q?=D1=81=20=D1=83=D1=87=D0=B5=D1=82=D0=BE=D0=BC=20=D1=81=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D1=8F=20=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D1=86=D0=B8=D0=B8=20=D1=81=D0=BF=D0=B8=D1=81?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B0=D0=B2=D0=B0=D1=80=D0=B8=D0=B9=20,=20?= =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B4=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=B7=D0=B0=D0=BA?= =?UTF-8?q?=D1=80=D1=8B=D1=82=D0=B8=D1=8F=20=D0=B8=20=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D1=80=D1=8B=D1=82=D0=B8=D1=8F,=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D1=83=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D1=8F,=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=B0=D0=BD=D0=B8=D0=BC?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BD=D0=B0=20=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D1=80=D1=8B=D1=82=D0=B8=D0=B5=20=D0=B8=20=D0=B7=D0=B0=D0=BA?= =?UTF-8?q?=D1=80=D1=8B=D1=82=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Scenes/scene.scene | 3024 +++++++++++++------------ assets/Scripts/stores/ErrorManager.ts | 2 +- assets/Scripts/ux/ItemButton.ts | 18 +- assets/Scripts/ux/ToggleListButton.ts | 97 +- 4 files changed, 1710 insertions(+), 1431 deletions(-) diff --git a/assets/Scenes/scene.scene b/assets/Scenes/scene.scene index c5ff6b9..a43d1af 100644 --- a/assets/Scenes/scene.scene +++ b/assets/Scenes/scene.scene @@ -29,19 +29,19 @@ "__id__": 182 }, { - "__id__": 355 + "__id__": 360 }, { - "__id__": 357 + "__id__": 362 }, { - "__id__": 359 + "__id__": 364 } ], "_active": true, "_components": [], "_prefab": { - "__id__": 360 + "__id__": 365 }, "_lpos": { "__type__": "cc.Vec3", @@ -72,7 +72,7 @@ }, "autoReleaseAssets": false, "_globals": { - "__id__": 361 + "__id__": 366 }, "_id": "955c22b7-7b7e-4af8-ad45-8415a0c23e60" }, @@ -6041,34 +6041,34 @@ "__id__": 185 }, { - "__id__": 203 + "__id__": 254 }, { - "__id__": 272 + "__id__": 276 }, { - "__id__": 294 + "__id__": 257 }, { - "__id__": 275 + "__id__": 195 }, { - "__id__": 213 + "__id__": 329 }, { - "__id__": 342 + "__id__": 339 } ], "_active": true, "_components": [ { - "__id__": 352 + "__id__": 357 }, { - "__id__": 353 + "__id__": 358 }, { - "__id__": 354 + "__id__": 359 } ], "_prefab": null, @@ -6194,7 +6194,7 @@ }, { "__type__": "cc.Node", - "_name": "WallSwitch", + "_name": "equipmentList", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -6205,650 +6205,31 @@ "__id__": 186 }, { - "__id__": 189 + "__id__": 243 }, { - "__id__": 196 + "__id__": 249 + }, + { + "__id__": 270 } ], "_active": true, "_components": [ { - "__id__": 199 + "__id__": 273 }, { - "__id__": 200 + "__id__": 274 }, { - "__id__": 201 - }, - { - "__id__": 202 + "__id__": 275 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", - "x": -519.683, - "y": -319.068, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "d8zcC3t4ZKH4WWYRv7wgVs" - }, - { - "__type__": "cc.Node", - "_name": "SpriteThump", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 185 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 187 - }, - { - "__id__": 188 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": -27, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "61VpVhE1VI4KmCPxZZ3ViF" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 186 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 26, - "height": 26 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "faOJRohBtB8agrLoc2TVzG" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 186 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f12a23c4-b924-4322-a260-3d982428f1e8@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "8fhwEzHEtJXpgLVxht9aIY" - }, - { - "__type__": "cc.Node", - "_name": "Button", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 185 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 190 - }, - { - "__id__": 191 - }, - { - "__id__": 192 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0.237, - "y": 0.087, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "a8jlmbLrBOfLMeUusAWr6l" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 189 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 80, - "height": 26 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "57UeFlQ0hJxZaEVKgxj6tl" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 189 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": null, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "28VQ3rmEFK0rN7FiWVWZi9" - }, - { - "__type__": "cc.Button", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 189 - }, - "_enabled": true, - "__prefab": null, - "clickEvents": [ - { - "__id__": 193 - }, - { - "__id__": 194 - }, - { - "__id__": 195 - } - ], - "_interactable": true, - "_transition": 0, - "_normalColor": { - "__type__": "cc.Color", - "r": 214, - "g": 214, - "b": 214, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": null, - "_hoverSprite": null, - "_pressedSprite": null, - "_disabledSprite": null, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": { - "__id__": 189 - }, - "_id": "d11rVANmBCprUmlMuEvW0R" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 185 - }, - "component": "", - "_componentId": "25c6avRXM5AKrkSp8VWFb2Y", - "handler": "setToggle", - "customEventData": "" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 185 - }, - "component": "", - "_componentId": "bae91xJwvJDa5PQthCiFX8w", - "handler": "wallSwitch", - "customEventData": "" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 11 - }, - "component": "", - "_componentId": "c6cc9hNiE5Axr2R3ChCk2AB", - "handler": "wallSwitch", - "customEventData": "" - }, - { - "__type__": "cc.Node", - "_name": "Label", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 185 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 197 - }, - { - "__id__": 198 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 138.498, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "9djANbAqhN06o9+8bec2WI" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 196 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 187.54, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "ccOZRn3wBI9rH4ocL/Qtof" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 196 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "стены включены", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 18, - "_fontSize": 18, - "_fontFamily": "Arial", - "_lineHeight": 26, - "_overflow": 1, - "_enableWrapText": true, - "_font": { - "__uuid__": "ed546a4a-5231-4dfb-9c13-c1d6022cd74e", - "__expectedType__": "cc.TTFFont" - }, - "_isSystemFontUsed": false, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 2, - "_enableOutline": true, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 1.5, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "1feKu0t/JPCIl8Aej28xgI" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 185 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 80, - "height": 26 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "d8zNLMihdHga9YZ8nqhhE0" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 185 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 114, - "g": 255, - "b": 109, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f12a23c4-b924-4322-a260-3d982428f1e8@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "5fSns45PRANpGbeQ8rbBFP" - }, - { - "__type__": "25c6avRXM5AKrkSp8VWFb2Y", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 185 - }, - "_enabled": true, - "__prefab": null, - "nodeThump": { - "__id__": 186 - }, - "spriteBg": { - "__id__": 200 - }, - "colorBg": [ - { - "__type__": "cc.Color", - "r": 114, - "g": 255, - "b": 109, - "a": 255 - }, - { - "__type__": "cc.Color", - "r": 255, - "g": 0, - "b": 0, - "a": 255 - } - ], - "_id": "06K6XI4flGsbrYbEWh4Ns2" - }, - { - "__type__": "bae91xJwvJDa5PQthCiFX8w", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 185 - }, - "_enabled": true, - "__prefab": null, - "WallLb": { - "__id__": 198 - }, - "_id": "c0Q0fm5TpGoJpzNvUOrrU+" - }, - { - "__type__": "cc.Node", - "_name": "equipmentList", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 182 - }, - "_children": [ - { - "__id__": 204 - }, - { - "__id__": 261 - }, - { - "__id__": 267 - }, - { - "__id__": 288 - } - ], - "_active": true, - "_components": [ - { - "__id__": 291 - }, - { - "__id__": 292 - }, - { - "__id__": 293 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": -534.583, + "x": -530.434, "y": 35.376, "z": 0 }, @@ -6881,32 +6262,32 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 203 + "__id__": 185 }, "_children": [ { - "__id__": 205 + "__id__": 187 } ], "_active": true, "_components": [ { - "__id__": 208 + "__id__": 190 }, { - "__id__": 209 + "__id__": 191 }, { - "__id__": 210 + "__id__": 192 }, { - "__id__": 211 + "__id__": 193 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", - "x": 120, + "x": 125, "y": 0, "z": 0 }, @@ -6939,16 +6320,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 204 + "__id__": 186 }, "_children": [], "_active": true, "_components": [ { - "__id__": 206 + "__id__": 188 }, { - "__id__": 207 + "__id__": 189 } ], "_prefab": null, @@ -6987,7 +6368,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 205 + "__id__": 187 }, "_enabled": true, "__prefab": null, @@ -7009,7 +6390,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 205 + "__id__": 187 }, "_enabled": true, "__prefab": null, @@ -7048,7 +6429,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 204 + "__id__": 186 }, "_enabled": true, "__prefab": null, @@ -7070,7 +6451,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 204 + "__id__": 186 }, "_enabled": true, "__prefab": null, @@ -7109,7 +6490,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 204 + "__id__": 186 }, "_enabled": true, "__prefab": null, @@ -7139,15 +6520,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 204 + "__id__": 186 }, "_enabled": true, "__prefab": null, "_scrollView": { - "__id__": 212 + "__id__": 194 }, "_handle": { - "__id__": 207 + "__id__": 189 }, "_direction": 1, "_enableAutoHide": false, @@ -7160,7 +6541,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 213 + "__id__": 195 }, "_enabled": true, "__prefab": null, @@ -7173,13 +6554,13 @@ "cancelInnerEvents": true, "scrollEvents": [], "_content": { - "__id__": 223 + "__id__": 205 }, "_horizontalScrollBar": { - "__id__": 211 + "__id__": 193 }, "_verticalScrollBar": { - "__id__": 221 + "__id__": 203 }, "_id": "a1jwCbQU1G47LbhfdF9eFz" }, @@ -7193,31 +6574,31 @@ }, "_children": [ { - "__id__": 214 + "__id__": 196 }, { - "__id__": 222 + "__id__": 204 }, { - "__id__": 241 + "__id__": 223 }, { - "__id__": 248 + "__id__": 230 }, { - "__id__": 255 + "__id__": 237 } ], "_active": false, "_components": [ { - "__id__": 259 + "__id__": 241 }, { - "__id__": 260 + "__id__": 242 }, { - "__id__": 212 + "__id__": 194 } ], "_prefab": null, @@ -7256,26 +6637,26 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 213 + "__id__": 195 }, "_children": [ { - "__id__": 215 + "__id__": 197 } ], "_active": true, "_components": [ { - "__id__": 218 + "__id__": 200 }, { - "__id__": 219 + "__id__": 201 }, { - "__id__": 220 + "__id__": 202 }, { - "__id__": 221 + "__id__": 203 } ], "_prefab": null, @@ -7314,16 +6695,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 214 + "__id__": 196 }, "_children": [], "_active": true, "_components": [ { - "__id__": 216 + "__id__": 198 }, { - "__id__": 217 + "__id__": 199 } ], "_prefab": null, @@ -7362,7 +6743,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 215 + "__id__": 197 }, "_enabled": true, "__prefab": null, @@ -7384,7 +6765,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 215 + "__id__": 197 }, "_enabled": true, "__prefab": null, @@ -7423,7 +6804,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 214 + "__id__": 196 }, "_enabled": true, "__prefab": null, @@ -7445,7 +6826,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 214 + "__id__": 196 }, "_enabled": true, "__prefab": null, @@ -7484,7 +6865,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 214 + "__id__": 196 }, "_enabled": true, "__prefab": null, @@ -7514,15 +6895,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 214 + "__id__": 196 }, "_enabled": true, "__prefab": null, "_scrollView": { - "__id__": 212 + "__id__": 194 }, "_handle": { - "__id__": 217 + "__id__": 199 }, "_direction": 1, "_enableAutoHide": false, @@ -7535,23 +6916,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 213 + "__id__": 195 }, "_children": [ { - "__id__": 223 + "__id__": 205 } ], "_active": true, "_components": [ { - "__id__": 238 + "__id__": 220 }, { - "__id__": 239 + "__id__": 221 }, { - "__id__": 240 + "__id__": 222 } ], "_prefab": null, @@ -7590,23 +6971,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 222 + "__id__": 204 }, "_children": [ { - "__id__": 224 + "__id__": 206 }, { - "__id__": 227 + "__id__": 209 }, { - "__id__": 230 + "__id__": 212 } ], "_active": true, "_components": [ { - "__id__": 237 + "__id__": 219 } ], "_prefab": null, @@ -7645,16 +7026,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 223 + "__id__": 205 }, "_children": [], "_active": true, "_components": [ { - "__id__": 225 + "__id__": 207 }, { - "__id__": 226 + "__id__": 208 } ], "_prefab": null, @@ -7693,7 +7074,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 224 + "__id__": 206 }, "_enabled": true, "__prefab": null, @@ -7715,7 +7096,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 224 + "__id__": 206 }, "_enabled": true, "__prefab": null, @@ -7780,16 +7161,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 223 + "__id__": 205 }, "_children": [], "_active": false, "_components": [ { - "__id__": 228 + "__id__": 210 }, { - "__id__": 229 + "__id__": 211 } ], "_prefab": null, @@ -7828,7 +7209,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 227 + "__id__": 209 }, "_enabled": true, "__prefab": null, @@ -7850,7 +7231,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 227 + "__id__": 209 }, "_enabled": true, "__prefab": null, @@ -7915,23 +7296,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 223 + "__id__": 205 }, "_children": [ { - "__id__": 231 + "__id__": 213 } ], "_active": false, "_components": [ { - "__id__": 234 + "__id__": 216 }, { - "__id__": 235 + "__id__": 217 }, { - "__id__": 236 + "__id__": 218 } ], "_prefab": null, @@ -7970,16 +7351,16 @@ "_objFlags": 512, "__editorExtras__": {}, "_parent": { - "__id__": 230 + "__id__": 212 }, "_children": [], "_active": true, "_components": [ { - "__id__": 232 + "__id__": 214 }, { - "__id__": 233 + "__id__": 215 } ], "_prefab": null, @@ -8018,7 +7399,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 231 + "__id__": 213 }, "_enabled": true, "__prefab": null, @@ -8040,7 +7421,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 231 + "__id__": 213 }, "_enabled": true, "__prefab": null, @@ -8105,7 +7486,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 230 + "__id__": 212 }, "_enabled": true, "__prefab": null, @@ -8127,7 +7508,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 230 + "__id__": 212 }, "_enabled": true, "__prefab": null, @@ -8166,7 +7547,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 230 + "__id__": 212 }, "_enabled": true, "__prefab": null, @@ -8220,7 +7601,7 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 230 + "__id__": 212 }, "_id": "a5Na+yM4NFCZHV31xqFM+m" }, @@ -8230,7 +7611,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 223 + "__id__": 205 }, "_enabled": true, "__prefab": null, @@ -8252,7 +7633,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 222 + "__id__": 204 }, "_enabled": true, "__prefab": null, @@ -8274,7 +7655,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 222 + "__id__": 204 }, "_enabled": true, "__prefab": null, @@ -8290,7 +7671,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 222 + "__id__": 204 }, "_enabled": true, "__prefab": null, @@ -8330,23 +7711,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 213 + "__id__": 195 }, "_children": [ { - "__id__": 242 + "__id__": 224 } ], "_active": true, "_components": [ { - "__id__": 245 + "__id__": 227 }, { - "__id__": 246 + "__id__": 228 }, { - "__id__": 247 + "__id__": 229 } ], "_prefab": null, @@ -8385,16 +7766,16 @@ "_objFlags": 512, "__editorExtras__": {}, "_parent": { - "__id__": 241 + "__id__": 223 }, "_children": [], "_active": true, "_components": [ { - "__id__": 243 + "__id__": 225 }, { - "__id__": 244 + "__id__": 226 } ], "_prefab": null, @@ -8433,7 +7814,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 242 + "__id__": 224 }, "_enabled": true, "__prefab": null, @@ -8455,7 +7836,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 242 + "__id__": 224 }, "_enabled": true, "__prefab": null, @@ -8520,7 +7901,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 241 + "__id__": 223 }, "_enabled": true, "__prefab": null, @@ -8542,7 +7923,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 241 + "__id__": 223 }, "_enabled": true, "__prefab": null, @@ -8581,7 +7962,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 241 + "__id__": 223 }, "_enabled": true, "__prefab": null, @@ -8635,7 +8016,7 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 241 + "__id__": 223 }, "_id": "26stlgcL9P7KCjr2gFvS6w" }, @@ -8645,23 +8026,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 213 + "__id__": 195 }, "_children": [ { - "__id__": 249 + "__id__": 231 } ], "_active": true, "_components": [ { - "__id__": 252 + "__id__": 234 }, { - "__id__": 253 + "__id__": 235 }, { - "__id__": 254 + "__id__": 236 } ], "_prefab": null, @@ -8700,16 +8081,16 @@ "_objFlags": 512, "__editorExtras__": {}, "_parent": { - "__id__": 248 + "__id__": 230 }, "_children": [], "_active": true, "_components": [ { - "__id__": 250 + "__id__": 232 }, { - "__id__": 251 + "__id__": 233 } ], "_prefab": null, @@ -8748,7 +8129,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 249 + "__id__": 231 }, "_enabled": true, "__prefab": null, @@ -8770,7 +8151,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 249 + "__id__": 231 }, "_enabled": true, "__prefab": null, @@ -8835,7 +8216,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 248 + "__id__": 230 }, "_enabled": true, "__prefab": null, @@ -8857,7 +8238,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 248 + "__id__": 230 }, "_enabled": true, "__prefab": null, @@ -8896,7 +8277,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 248 + "__id__": 230 }, "_enabled": true, "__prefab": null, @@ -8950,7 +8331,7 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 248 + "__id__": 230 }, "_id": "71ntncDhBArJLLggvjIA9H" }, @@ -8960,19 +8341,19 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 213 + "__id__": 195 }, "_children": [], "_active": true, "_components": [ { - "__id__": 256 + "__id__": 238 }, { - "__id__": 257 + "__id__": 239 }, { - "__id__": 258 + "__id__": 240 } ], "_prefab": null, @@ -9011,7 +8392,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 255 + "__id__": 237 }, "_enabled": true, "__prefab": null, @@ -9033,7 +8414,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 255 + "__id__": 237 }, "_enabled": true, "__prefab": null, @@ -9072,7 +8453,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 255 + "__id__": 237 }, "_enabled": true, "__prefab": null, @@ -9134,7 +8515,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 213 + "__id__": 195 }, "_enabled": true, "__prefab": null, @@ -9156,7 +8537,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 213 + "__id__": 195 }, "_enabled": true, "__prefab": null, @@ -9195,23 +8576,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 203 + "__id__": 185 }, "_children": [ { - "__id__": 262 + "__id__": 244 } ], "_active": true, "_components": [ { - "__id__": 264 + "__id__": 246 }, { - "__id__": 265 + "__id__": 247 }, { - "__id__": 266 + "__id__": 248 } ], "_prefab": null, @@ -9250,13 +8631,13 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 261 + "__id__": 243 }, "_children": [], "_active": true, "_components": [ { - "__id__": 263 + "__id__": 245 } ], "_prefab": null, @@ -9295,7 +8676,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 262 + "__id__": 244 }, "_enabled": true, "__prefab": null, @@ -9317,7 +8698,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 261 + "__id__": 243 }, "_enabled": true, "__prefab": null, @@ -9339,7 +8720,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 261 + "__id__": 243 }, "_enabled": true, "__prefab": null, @@ -9355,7 +8736,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 261 + "__id__": 243 }, "_enabled": true, "__prefab": null, @@ -9395,19 +8776,19 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 203 + "__id__": 185 }, "_children": [], "_active": true, "_components": [ { - "__id__": 268 + "__id__": 250 }, { - "__id__": 269 + "__id__": 251 }, { - "__id__": 270 + "__id__": 252 } ], "_prefab": null, @@ -9446,7 +8827,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 267 + "__id__": 249 }, "_enabled": true, "__prefab": null, @@ -9468,7 +8849,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 267 + "__id__": 249 }, "_enabled": true, "__prefab": null, @@ -9507,13 +8888,13 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 267 + "__id__": 249 }, "_enabled": true, "__prefab": null, "clickEvents": [ { - "__id__": 271 + "__id__": 253 } ], "_interactable": true, @@ -9565,14 +8946,14 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 267 + "__id__": 249 }, "_id": "36QVp0DsZP6ZxmNE77cWHO" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 272 + "__id__": 254 }, "component": "", "_componentId": "41a9dZz2mVOFoYwOsk9H98q", @@ -9591,10 +8972,10 @@ "_active": true, "_components": [ { - "__id__": 273 + "__id__": 255 }, { - "__id__": 274 + "__id__": 256 } ], "_prefab": null, @@ -9633,7 +9014,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 272 + "__id__": 254 }, "_enabled": true, "__prefab": null, @@ -9655,15 +9036,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 272 + "__id__": 254 }, "_enabled": true, "__prefab": null, "equipmentList": { - "__id__": 203 + "__id__": 185 }, "extraButton": { - "__id__": 275 + "__id__": 257 }, "offsetX": 300, "animationDuration": 0.3, @@ -9679,19 +9060,19 @@ }, "_children": [ { - "__id__": 276 + "__id__": 258 }, { - "__id__": 282 + "__id__": 264 } ], "_active": true, "_components": [ { - "__id__": 286 + "__id__": 268 }, { - "__id__": 287 + "__id__": 269 } ], "_prefab": null, @@ -9730,19 +9111,19 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 275 + "__id__": 257 }, "_children": [], "_active": true, "_components": [ { - "__id__": 277 + "__id__": 259 }, { - "__id__": 278 + "__id__": 260 }, { - "__id__": 279 + "__id__": 261 } ], "_prefab": null, @@ -9781,7 +9162,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 276 + "__id__": 258 }, "_enabled": true, "__prefab": null, @@ -9803,7 +9184,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 276 + "__id__": 258 }, "_enabled": true, "__prefab": null, @@ -9842,16 +9223,16 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 276 + "__id__": 258 }, "_enabled": true, "__prefab": null, "clickEvents": [ { - "__id__": 280 + "__id__": 262 }, { - "__id__": 281 + "__id__": 263 } ], "_interactable": true, @@ -9891,14 +9272,14 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 276 + "__id__": 258 }, "_id": "a0xm/gfrVOBbN+lvCSOO37" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 275 + "__id__": 257 }, "component": "", "_componentId": "ec676w+0QFCnYTaEi+oLoDO", @@ -9908,7 +9289,7 @@ { "__type__": "cc.ClickEvent", "target": { - "__id__": 272 + "__id__": 254 }, "component": "", "_componentId": "41a9dZz2mVOFoYwOsk9H98q", @@ -9921,19 +9302,19 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 275 + "__id__": 257 }, "_children": [], "_active": true, "_components": [ { - "__id__": 283 + "__id__": 265 }, { - "__id__": 284 + "__id__": 266 }, { - "__id__": 285 + "__id__": 267 } ], "_prefab": null, @@ -9972,7 +9353,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 282 + "__id__": 264 }, "_enabled": true, "__prefab": null, @@ -9994,7 +9375,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 282 + "__id__": 264 }, "_enabled": true, "__prefab": null, @@ -10034,7 +9415,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 282 + "__id__": 264 }, "_enabled": true, "__prefab": null, @@ -10074,7 +9455,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 275 + "__id__": 257 }, "_enabled": true, "__prefab": null, @@ -10096,15 +9477,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 275 + "__id__": 257 }, "_enabled": true, "__prefab": null, "equipmentList": { - "__id__": 203 + "__id__": 185 }, "button": { - "__id__": 275 + "__id__": 257 }, "offsetX": 300, "animationDuration": 0.3, @@ -10116,16 +9497,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 203 + "__id__": 185 }, "_children": [], "_active": true, "_components": [ { - "__id__": 289 + "__id__": 271 }, { - "__id__": 290 + "__id__": 272 } ], "_prefab": null, @@ -10164,7 +9545,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 288 + "__id__": 270 }, "_enabled": true, "__prefab": null, @@ -10186,7 +9567,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 288 + "__id__": 270 }, "_enabled": true, "__prefab": null, @@ -10251,13 +9632,13 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 203 + "__id__": 185 }, "_enabled": true, "__prefab": null, "_contentSize": { "__type__": "cc.Size", - "width": 240, + "width": 250, "height": 650 }, "_anchorPoint": { @@ -10273,7 +9654,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 203 + "__id__": 185 }, "_enabled": true, "__prefab": null, @@ -10312,7 +9693,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 203 + "__id__": 185 }, "_enabled": true, "__prefab": null, @@ -10325,11 +9706,11 @@ "cancelInnerEvents": true, "scrollEvents": [], "_content": { - "__id__": 262 + "__id__": 244 }, "_horizontalScrollBar": null, "_verticalScrollBar": { - "__id__": 211 + "__id__": 193 }, "_id": "97tmghfFlEGLXFvLDonHH+" }, @@ -10343,7 +9724,7 @@ }, "_children": [ { - "__id__": 295 + "__id__": 277 }, { "__id__": 321 @@ -10352,13 +9733,13 @@ "__id__": 323 }, { - "__id__": 298 + "__id__": 280 + }, + { + "__id__": 306 }, { "__id__": 326 - }, - { - "__id__": 339 } ], "_active": true, @@ -10399,13 +9780,13 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 294 + "__id__": 276 }, "_children": [], "_active": true, "_components": [ { - "__id__": 296 + "__id__": 278 } ], "_prefab": null, @@ -10444,7 +9825,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 295 + "__id__": 277 }, "_enabled": true, "__prefab": null, @@ -10457,11 +9838,11 @@ "__expectedType__": "cc.Prefab" }, "scrollView": { - "__id__": 297 + "__id__": 279 }, "spacing": 10, "header": { - "__id__": 318 + "__id__": 300 }, "_id": "21wy+/2mRJFqMMSBRnfwOL" }, @@ -10471,7 +9852,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 298 + "__id__": 280 }, "_enabled": true, "__prefab": null, @@ -10484,11 +9865,11 @@ "cancelInnerEvents": true, "scrollEvents": [], "_content": { - "__id__": 308 + "__id__": 290 }, "_horizontalScrollBar": null, "_verticalScrollBar": { - "__id__": 306 + "__id__": 288 }, "_id": "03zy4bBnZHkqle9e7XrL33" }, @@ -10498,17 +9879,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 294 + "__id__": 276 }, "_children": [ { - "__id__": 299 + "__id__": 281 }, { - "__id__": 307 + "__id__": 289 }, { - "__id__": 316 + "__id__": 298 + }, + { + "__id__": 301 } ], "_active": true, @@ -10520,7 +9904,7 @@ "__id__": 320 }, { - "__id__": 297 + "__id__": 279 } ], "_prefab": null, @@ -10559,26 +9943,26 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 298 + "__id__": 280 }, "_children": [ { - "__id__": 300 + "__id__": 282 } ], "_active": true, "_components": [ { - "__id__": 303 + "__id__": 285 }, { - "__id__": 304 + "__id__": 286 }, { - "__id__": 305 + "__id__": 287 }, { - "__id__": 306 + "__id__": 288 } ], "_prefab": null, @@ -10617,16 +10001,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 299 + "__id__": 281 }, "_children": [], "_active": true, "_components": [ { - "__id__": 301 + "__id__": 283 }, { - "__id__": 302 + "__id__": 284 } ], "_prefab": null, @@ -10665,7 +10049,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 300 + "__id__": 282 }, "_enabled": true, "__prefab": null, @@ -10687,7 +10071,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 300 + "__id__": 282 }, "_enabled": true, "__prefab": null, @@ -10726,7 +10110,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 299 + "__id__": 281 }, "_enabled": true, "__prefab": null, @@ -10748,7 +10132,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 299 + "__id__": 281 }, "_enabled": true, "__prefab": null, @@ -10787,7 +10171,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 299 + "__id__": 281 }, "_enabled": true, "__prefab": null, @@ -10817,15 +10201,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 299 + "__id__": 281 }, "_enabled": true, "__prefab": null, "_scrollView": { - "__id__": 297 + "__id__": 279 }, "_handle": { - "__id__": 302 + "__id__": 284 }, "_direction": 1, "_enableAutoHide": false, @@ -10838,23 +10222,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 298 + "__id__": 280 }, "_children": [ { - "__id__": 308 + "__id__": 290 } ], "_active": true, "_components": [ { - "__id__": 313 + "__id__": 295 }, { - "__id__": 314 + "__id__": 296 }, { - "__id__": 315 + "__id__": 297 } ], "_prefab": null, @@ -10893,17 +10277,17 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 307 + "__id__": 289 }, "_children": [ { - "__id__": 309 + "__id__": 291 } ], "_active": true, "_components": [ { - "__id__": 312 + "__id__": 294 } ], "_prefab": null, @@ -10942,16 +10326,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 308 + "__id__": 290 }, "_children": [], "_active": true, "_components": [ { - "__id__": 310 + "__id__": 292 }, { - "__id__": 311 + "__id__": 293 } ], "_prefab": null, @@ -10990,7 +10374,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 309 + "__id__": 291 }, "_enabled": true, "__prefab": null, @@ -11012,7 +10396,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 309 + "__id__": 291 }, "_enabled": true, "__prefab": null, @@ -11074,7 +10458,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 308 + "__id__": 290 }, "_enabled": true, "__prefab": null, @@ -11096,7 +10480,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 307 + "__id__": 289 }, "_enabled": true, "__prefab": null, @@ -11118,7 +10502,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 307 + "__id__": 289 }, "_enabled": true, "__prefab": null, @@ -11134,7 +10518,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 307 + "__id__": 289 }, "_enabled": true, "__prefab": null, @@ -11174,22 +10558,22 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 298 + "__id__": 280 }, "_children": [], "_active": true, "_components": [ { - "__id__": 317 + "__id__": 299 }, { - "__id__": 318 + "__id__": 300 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", - "x": 3.21, + "x": 7.07, "y": 177.048, "z": 0 }, @@ -11222,7 +10606,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 316 + "__id__": 298 }, "_enabled": true, "__prefab": null, @@ -11244,7 +10628,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 316 + "__id__": 298 }, "_enabled": true, "__prefab": null, @@ -11303,13 +10687,676 @@ "_shadowBlur": 2, "_id": "05nkSPThZGCK+LcU0Ekaxn" }, + { + "__type__": "cc.Node", + "_name": "CloseErrortList", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 280 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 302 + }, + { + "__id__": 303 + }, + { + "__id__": 304 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -119.145, + "y": 166.119, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 0.5244, + "y": 0.6, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "60tThJPvFC47vKj0E5llt4" + }, { "__type__": "cc.UITransform", "_name": "", "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 298 + "__id__": 301 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 50, + "height": 50 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_id": "f4P+MoPj1M86gzg5KJyGsF" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 301 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "0f66757a-5e0b-45fc-990a-97b2a143c30a@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "d1ODR2N7tLEIYLgla80bNO" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 301 + }, + "_enabled": true, + "__prefab": null, + "clickEvents": [ + { + "__id__": 305 + } + ], + "_interactable": true, + "_transition": 2, + "_normalColor": { + "__type__": "cc.Color", + "r": 214, + "g": 214, + "b": 214, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": { + "__uuid__": "0f66757a-5e0b-45fc-990a-97b2a143c30a@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_hoverSprite": { + "__uuid__": "44521e08-9bb9-453d-925e-42051fc28612@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_pressedSprite": { + "__uuid__": "2eeba3cd-9f07-4bb9-8a46-fdbbe1127d6a@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_disabledSprite": { + "__uuid__": "0f66757a-5e0b-45fc-990a-97b2a143c30a@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": { + "__id__": 301 + }, + "_id": "cdX9xXp/1JtI4Cd60RBMzj" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 306 + }, + "component": "", + "_componentId": "c8c51tyHOdF9qPPEv9e5w6n", + "handler": "toggleList", + "customEventData": "" + }, + { + "__type__": "cc.Node", + "_name": "ErrorButton", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 276 + }, + "_children": [ + { + "__id__": 307 + }, + { + "__id__": 312 + } + ], + "_active": true, + "_components": [ + { + "__id__": 315 + }, + { + "__id__": 316 + }, + { + "__id__": 317 + }, + { + "__id__": 318 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 978.842, + "y": 673.481, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "4f1sb21z1I1qVpjhliq7S3" + }, + { + "__type__": "cc.Node", + "_name": "Button", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 306 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 308 + }, + { + "__id__": 309 + }, + { + "__id__": 310 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "c4S2isgW1EKpgOxG6dFZK/" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 307 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 110, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "0c5NHZqBxKAbBeleYrhsiU" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 307 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": null, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "98EsOpnaRMcrAeO5h2YfZt" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 307 + }, + "_enabled": true, + "__prefab": null, + "clickEvents": [ + { + "__id__": 311 + } + ], + "_interactable": true, + "_transition": 2, + "_normalColor": { + "__type__": "cc.Color", + "r": 214, + "g": 214, + "b": 214, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": { + "__id__": 307 + }, + "_id": "fcEudJINdBn5ntwulikXUd" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 306 + }, + "component": "", + "_componentId": "c8c51tyHOdF9qPPEv9e5w6n", + "handler": "openAndResetFilter", + "customEventData": "" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 512, + "__editorExtras__": {}, + "_parent": { + "__id__": 306 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 313 + }, + { + "__id__": 314 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "c94gBjsjNHHbwf1Q3Fy0hT" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 312 + }, + "_enabled": false, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 110, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "887Cw3W21N+a7PX6d0Z4Uk" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 312 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "button", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 36.2578125, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 1, + "_enableWrapText": false, + "_font": { + "__uuid__": "ed546a4a-5231-4dfb-9c13-c1d6022cd74e", + "__expectedType__": "cc.TTFFont" + }, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_enableOutline": true, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 1.5, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "6eWHsQo0xBjZqIDBZENeil" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 306 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 110, + "height": 36 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "b0kHZEj/ZAppdhQLrp/Kfs" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 306 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f12a23c4-b924-4322-a260-3d982428f1e8@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "0aiiKURGBO+JForEZqX/5N" + }, + { + "__type__": "af3d5cvwX9AKr0RbFp1/e0G", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 306 + }, + "_enabled": true, + "__prefab": null, + "sprite": { + "__id__": 316 + }, + "button": { + "__id__": 310 + }, + "label": { + "__id__": 314 + }, + "equipmentList": { + "__id__": 280 + }, + "_id": "90IF/m9cFLm7ap95uWlPdy" + }, + { + "__type__": "c8c51tyHOdF9qPPEv9e5w6n", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 306 + }, + "_enabled": true, + "__prefab": null, + "equipmentList": { + "__id__": 280 + }, + "slideDuration": 0.5, + "slideOffset": 300, + "_id": "e4JKM89kpEeZ3ICvDXLPuz" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 280 }, "_enabled": true, "__prefab": null, @@ -11331,7 +11378,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 298 + "__id__": 280 }, "_enabled": true, "__prefab": null, @@ -11370,7 +11417,7 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 294 + "__id__": 276 }, "_children": [], "_active": true, @@ -11434,7 +11481,7 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 294 + "__id__": 276 }, "_children": [], "_active": true, @@ -11509,501 +11556,29 @@ "_enabled": true, "__prefab": null, "errorListNode": { - "__id__": 298 + "__id__": 280 }, "alertSound": { "__id__": 322 }, "_id": "04STMQ5PlDB5K9Q+T+Nc5I" }, - { - "__type__": "cc.Node", - "_name": "ErrorButton", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 294 - }, - "_children": [ - { - "__id__": 327 - }, - { - "__id__": 333 - } - ], - "_active": true, - "_components": [ - { - "__id__": 336 - }, - { - "__id__": 337 - }, - { - "__id__": 338 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 978.842, - "y": 673.481, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "4f1sb21z1I1qVpjhliq7S3" - }, - { - "__type__": "cc.Node", - "_name": "Button", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 326 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 328 - }, - { - "__id__": 329 - }, - { - "__id__": 330 - }, - { - "__id__": 332 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "c4S2isgW1EKpgOxG6dFZK/" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 327 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 110, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "0c5NHZqBxKAbBeleYrhsiU" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 327 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": null, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "98EsOpnaRMcrAeO5h2YfZt" - }, - { - "__type__": "cc.Button", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 327 - }, - "_enabled": true, - "__prefab": null, - "clickEvents": [ - { - "__id__": 331 - } - ], - "_interactable": true, - "_transition": 2, - "_normalColor": { - "__type__": "cc.Color", - "r": 214, - "g": 214, - "b": 214, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": null, - "_hoverSprite": null, - "_pressedSprite": null, - "_disabledSprite": null, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": { - "__id__": 327 - }, - "_id": "fcEudJINdBn5ntwulikXUd" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 327 - }, - "component": "", - "_componentId": "c8c51tyHOdF9qPPEv9e5w6n", - "handler": "eventClick", - "customEventData": "" - }, - { - "__type__": "c8c51tyHOdF9qPPEv9e5w6n", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 327 - }, - "_enabled": true, - "__prefab": null, - "equipmentList": { - "__id__": 298 - }, - "viewCtrl": null, - "_id": "b38+pWE99Jwa42bB1nkRDy" - }, - { - "__type__": "cc.Node", - "_name": "Label", - "_objFlags": 512, - "__editorExtras__": {}, - "_parent": { - "__id__": 326 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 334 - }, - { - "__id__": 335 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "c94gBjsjNHHbwf1Q3Fy0hT" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 333 - }, - "_enabled": false, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 110, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "887Cw3W21N+a7PX6d0Z4Uk" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 333 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "button", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 36.2578125, - "_fontSize": 20, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 1, - "_enableWrapText": false, - "_font": { - "__uuid__": "ed546a4a-5231-4dfb-9c13-c1d6022cd74e", - "__expectedType__": "cc.TTFFont" - }, - "_isSystemFontUsed": false, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": true, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 1.5, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "6eWHsQo0xBjZqIDBZENeil" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 326 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 110, - "height": 36 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "b0kHZEj/ZAppdhQLrp/Kfs" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 326 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f12a23c4-b924-4322-a260-3d982428f1e8@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "0aiiKURGBO+JForEZqX/5N" - }, - { - "__type__": "af3d5cvwX9AKr0RbFp1/e0G", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 326 - }, - "_enabled": true, - "__prefab": null, - "sprite": { - "__id__": 337 - }, - "button": { - "__id__": 330 - }, - "label": { - "__id__": 335 - }, - "equipmentList": { - "__id__": 298 - }, - "_id": "90IF/m9cFLm7ap95uWlPdy" - }, { "__type__": "cc.Node", "_name": "ErrorComponentsAnimation", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 294 + "__id__": 276 }, "_children": [], "_active": true, "_components": [ { - "__id__": 340 + "__id__": 327 }, { - "__id__": 341 + "__id__": 328 } ], "_prefab": null, @@ -12042,7 +11617,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 339 + "__id__": 326 }, "_enabled": true, "__prefab": null, @@ -12064,15 +11639,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 339 + "__id__": 326 }, "_enabled": true, "__prefab": null, "equipmentList": { - "__id__": 203 + "__id__": 185 }, "extraButton": { - "__id__": 275 + "__id__": 257 }, "offsetX": 300, "animationDuration": 0.3, @@ -12088,22 +11663,22 @@ }, "_children": [ { - "__id__": 343 + "__id__": 330 } ], "_active": true, "_components": [ { - "__id__": 350 + "__id__": 337 }, { - "__id__": 351 + "__id__": 338 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", - "x": -613.25, + "x": -442.59, "y": -313.554, "z": 0 }, @@ -12136,22 +11711,22 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 342 + "__id__": 329 }, "_children": [], "_active": true, "_components": [ { - "__id__": 344 + "__id__": 331 }, { - "__id__": 345 + "__id__": 332 }, { - "__id__": 346 + "__id__": 333 }, { - "__id__": 349 + "__id__": 336 } ], "_prefab": null, @@ -12190,7 +11765,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 343 + "__id__": 330 }, "_enabled": true, "__prefab": null, @@ -12212,7 +11787,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 343 + "__id__": 330 }, "_enabled": true, "__prefab": null, @@ -12251,16 +11826,16 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 343 + "__id__": 330 }, "_enabled": true, "__prefab": null, "clickEvents": [ { - "__id__": 347 + "__id__": 334 }, { - "__id__": 348 + "__id__": 335 } ], "_interactable": true, @@ -12312,14 +11887,14 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 343 + "__id__": 330 }, "_id": "b0qrCca/9OLZnSLlYjdPgL" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 343 + "__id__": 330 }, "component": "", "_componentId": "f9840lS54pAqo74KWdHx4Ej", @@ -12329,7 +11904,7 @@ { "__type__": "cc.ClickEvent", "target": { - "__id__": 342 + "__id__": 329 }, "component": "", "_componentId": "710e0lYsxlDaazRa54bbTix", @@ -12342,7 +11917,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 343 + "__id__": 330 }, "_enabled": true, "__prefab": null, @@ -12357,7 +11932,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 342 + "__id__": 329 }, "_enabled": true, "__prefab": null, @@ -12379,12 +11954,12 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 342 + "__id__": 329 }, "_enabled": true, "__prefab": null, "returnCameraButton": { - "__id__": 343 + "__id__": 330 }, "character": { "__id__": 5 @@ -12400,6 +11975,625 @@ "moveThreshold": 1, "_id": "35tp4Hz35AUZQZag5OD4Tr" }, + { + "__type__": "cc.Node", + "_name": "WallSwitch", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 182 + }, + "_children": [ + { + "__id__": 340 + }, + { + "__id__": 343 + }, + { + "__id__": 350 + } + ], + "_active": true, + "_components": [ + { + "__id__": 353 + }, + { + "__id__": 354 + }, + { + "__id__": 355 + }, + { + "__id__": 356 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -596.781, + "y": -319.068, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "d8zcC3t4ZKH4WWYRv7wgVs" + }, + { + "__type__": "cc.Node", + "_name": "SpriteThump", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 339 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 341 + }, + { + "__id__": 342 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -30.324, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "61VpVhE1VI4KmCPxZZ3ViF" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 340 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 26, + "height": 26 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "faOJRohBtB8agrLoc2TVzG" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 340 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f12a23c4-b924-4322-a260-3d982428f1e8@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "8fhwEzHEtJXpgLVxht9aIY" + }, + { + "__type__": "cc.Node", + "_name": "Button", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 339 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 344 + }, + { + "__id__": 345 + }, + { + "__id__": 346 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -3.087, + "y": 0.087, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "a8jlmbLrBOfLMeUusAWr6l" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 343 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 80, + "height": 26 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "57UeFlQ0hJxZaEVKgxj6tl" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 343 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": null, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "28VQ3rmEFK0rN7FiWVWZi9" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 343 + }, + "_enabled": true, + "__prefab": null, + "clickEvents": [ + { + "__id__": 347 + }, + { + "__id__": 348 + }, + { + "__id__": 349 + } + ], + "_interactable": true, + "_transition": 0, + "_normalColor": { + "__type__": "cc.Color", + "r": 214, + "g": 214, + "b": 214, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": { + "__id__": 343 + }, + "_id": "d11rVANmBCprUmlMuEvW0R" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 339 + }, + "component": "", + "_componentId": "25c6avRXM5AKrkSp8VWFb2Y", + "handler": "setToggle", + "customEventData": "" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 339 + }, + "component": "", + "_componentId": "bae91xJwvJDa5PQthCiFX8w", + "handler": "wallSwitch", + "customEventData": "" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 11 + }, + "component": "", + "_componentId": "c6cc9hNiE5Axr2R3ChCk2AB", + "handler": "wallSwitch", + "customEventData": "" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 339 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 351 + }, + { + "__id__": 352 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 87.306, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "9djANbAqhN06o9+8bec2WI" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 350 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 90, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "ccOZRn3wBI9rH4ocL/Qtof" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 350 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "стены включены", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 14, + "_fontSize": 14, + "_fontFamily": "Arial", + "_lineHeight": 13, + "_overflow": 1, + "_enableWrapText": true, + "_font": { + "__uuid__": "ed546a4a-5231-4dfb-9c13-c1d6022cd74e", + "__expectedType__": "cc.TTFFont" + }, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_enableOutline": true, + "_outlineColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_outlineWidth": 1.5, + "_enableShadow": false, + "_shadowColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_shadowOffset": { + "__type__": "cc.Vec2", + "x": 2, + "y": 2 + }, + "_shadowBlur": 2, + "_id": "1feKu0t/JPCIl8Aej28xgI" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 339 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 80, + "height": 26 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "d8zNLMihdHga9YZ8nqhhE0" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 339 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 114, + "g": 255, + "b": 109, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "f12a23c4-b924-4322-a260-3d982428f1e8@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "5fSns45PRANpGbeQ8rbBFP" + }, + { + "__type__": "25c6avRXM5AKrkSp8VWFb2Y", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 339 + }, + "_enabled": true, + "__prefab": null, + "nodeThump": { + "__id__": 340 + }, + "spriteBg": { + "__id__": 354 + }, + "colorBg": [ + { + "__type__": "cc.Color", + "r": 114, + "g": 255, + "b": 109, + "a": 255 + }, + { + "__type__": "cc.Color", + "r": 255, + "g": 0, + "b": 0, + "a": 255 + } + ], + "_id": "06K6XI4flGsbrYbEWh4Ns2" + }, + { + "__type__": "bae91xJwvJDa5PQthCiFX8w", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 339 + }, + "_enabled": true, + "__prefab": null, + "WallLb": { + "__id__": 352 + }, + "_id": "c0Q0fm5TpGoJpzNvUOrrU+" + }, { "__type__": "cc.UITransform", "_name": "", @@ -12480,7 +12674,7 @@ "_active": true, "_components": [ { - "__id__": 356 + "__id__": 361 } ], "_prefab": null, @@ -12519,7 +12713,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 355 + "__id__": 360 }, "_enabled": true, "__prefab": null, @@ -12528,7 +12722,7 @@ "__expectedType__": "cc.Prefab" }, "scrollView": { - "__id__": 293 + "__id__": 275 }, "equipmentNode": { "__id__": 34 @@ -12548,7 +12742,7 @@ "_active": true, "_components": [ { - "__id__": 358 + "__id__": 363 } ], "_prefab": null, @@ -12587,7 +12781,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 357 + "__id__": 362 }, "_enabled": true, "__prefab": null, @@ -12646,29 +12840,29 @@ { "__type__": "cc.SceneGlobals", "ambient": { - "__id__": 362 - }, - "shadows": { - "__id__": 363 - }, - "_skybox": { - "__id__": 364 - }, - "fog": { - "__id__": 365 - }, - "octree": { - "__id__": 366 - }, - "skin": { "__id__": 367 }, - "lightProbeInfo": { + "shadows": { "__id__": 368 }, - "postSettings": { + "_skybox": { "__id__": 369 }, + "fog": { + "__id__": 370 + }, + "octree": { + "__id__": 371 + }, + "skin": { + "__id__": 372 + }, + "lightProbeInfo": { + "__id__": 373 + }, + "postSettings": { + "__id__": 374 + }, "bakedWithStationaryMainLight": false, "bakedWithHighpLightmap": false }, diff --git a/assets/Scripts/stores/ErrorManager.ts b/assets/Scripts/stores/ErrorManager.ts index 7b0f14f..fc15965 100644 --- a/assets/Scripts/stores/ErrorManager.ts +++ b/assets/Scripts/stores/ErrorManager.ts @@ -62,7 +62,7 @@ export class ErrorManager extends Component { this.currentErrors.push(item.tag); this.errorItems.push(item); this.addErrorToUI(item); - updated = true; + updated = true; if (this.soundEnabled && this.disabledAlerts.indexOf(item.tag) === -1) { this.playAlertSound(); } diff --git a/assets/Scripts/ux/ItemButton.ts b/assets/Scripts/ux/ItemButton.ts index 30b5166..f892569 100644 --- a/assets/Scripts/ux/ItemButton.ts +++ b/assets/Scripts/ux/ItemButton.ts @@ -1,10 +1,11 @@ -import { _decorator, Component, Label, Button, Node, Event } from "cc"; +import { _decorator, Component, Label, Button, Node, Event, systemEvent } from "cc"; import { apiSensors } from "../stores/apiSensors"; import { EquipmentManager } from "../stores/EquipmentManager"; import { PulsatingHighlighter } from "../PulsatingHighlighter"; import { CameraMover } from "../CameraMover"; import { ErrorLazyLoadList } from "../ui/ErrorLazyLoadList"; import { ErrorManager } from "../stores/ErrorManager"; +import { ToggleListButton } from "./ToggleListButton"; const { ccclass, property } = _decorator; @@ -167,7 +168,10 @@ export class ItemButton extends Component { * Обработка клика по кнопке с числом аварий для элемента. * @param event Нажатие на кнопку с числом аварий. */ - public onErrorClick(event?: Event) { +/** + * Обработка клика по кнопке с числом аварий для элемента. + */ +public onErrorClick(event?: Event) { console.log("Нажата кнопка Error для элемента:", this.itemData); if (!this.itemData) return; @@ -176,6 +180,16 @@ export class ItemButton extends Component { return; } ErrorLazyLoadList.instance.filterBySensor(this.itemData.name); + + // Проверяем состояние списка через синглтон ToggleListButton + if (ToggleListButton.instance) { + // Если список выключен, включаем его + if (!ToggleListButton.instance.equipmentList.active) { + ToggleListButton.instance.toggleList(); + } + } else { + console.warn("ToggleListButton.instance не инициализирован!"); + } } /** diff --git a/assets/Scripts/ux/ToggleListButton.ts b/assets/Scripts/ux/ToggleListButton.ts index bfb8248..8de38a6 100644 --- a/assets/Scripts/ux/ToggleListButton.ts +++ b/assets/Scripts/ux/ToggleListButton.ts @@ -1,32 +1,103 @@ -import { _decorator, Component, Node } from 'cc'; +import { _decorator, Component, Node, tween, Vec3 } from 'cc'; import { ErrorLazyLoadList } from '../ui/ErrorLazyLoadList'; const { ccclass, property } = _decorator; @ccclass('ToggleListButton') export class ToggleListButton extends Component { - // Ссылка на узел списка, который нужно показать или скрыть + // Синглтон-экземпляр + public static instance: ToggleListButton = null!; + + // Узел списка, который нужно показать или скрыть @property(Node) public equipmentList: Node = null!; - @property(Node) - public viewCtrl : Node = null!; - - // Флаг состояния списка (активен/не активен) + // Флаг состояния списка (открыт/закрыт) private isListActive: boolean = false; + // Позиция, когда список виден (запоминается при загрузке) + private visiblePos: Vec3 = new Vec3(); + + // Позиция, когда список скрыт (справа от видимой позиции) + private hiddenPos: Vec3 = new Vec3(); + + // Длительность анимации в секундах + @property + public slideDuration: number = 0.2; + + // Смещение по оси X для скрытого состояния (например, на сколько пикселей список смещается вправо) + @property + public slideOffset: number = 300; + onLoad() { - // При загрузке сцены скрываем узел списка + // Инициализируем синглтон + ToggleListButton.instance = this; + if (this.equipmentList) { + // Запоминаем позицию, где список должен находиться, когда он виден + this.visiblePos = this.equipmentList.position.clone(); + // Вычисляем скрытую позицию – смещаем вправо от видимой позиции + this.hiddenPos = this.visiblePos.clone(); + this.hiddenPos.x += this.slideOffset; + + // Изначально помещаем список в скрытое состояние и деактивируем его + this.equipmentList.setPosition(this.hiddenPos); this.equipmentList.active = false; + this.isListActive = false; } } - // Метод, который нужно вызвать при клике на кнопку - eventClick() { - if (this.equipmentList) { - this.isListActive = !this.isListActive; - this.equipmentList.active = this.isListActive; - ErrorLazyLoadList.instance?.resetFilter(); + onDestroy() { + if (ToggleListButton.instance === this) { + ToggleListButton.instance = null!; } } + + /** + * Переключение списка с анимацией. + * Если список закрыт – открываем его с анимацией выезда. + * Если открыт – закрываем его с анимацией заезда. + */ + public toggleList() { + if (!this.equipmentList) return; + + if (!this.equipmentList.active) { + // Открываем список: активируем его, ставим в скрытую позицию и запускаем анимацию в видимую позицию + this.equipmentList.active = true; + this.equipmentList.setPosition(this.hiddenPos); + tween(this.equipmentList) + .to(this.slideDuration, { position: this.visiblePos }) + .start(); + this.isListActive = true; + // Если нужно сбросить фильтр при открытии + ErrorLazyLoadList.instance?.resetFilter(); + } else { + // Закрываем список: анимируем его в скрытую позицию справа, затем деактивируем + tween(this.equipmentList) + .to(this.slideDuration, { position: this.hiddenPos }) + .call(() => { + this.equipmentList.active = false; + }) + .start(); + this.isListActive = false; + } + } + + /** + * Гарантированное открытие списка (если он закрыт) и сброс фильтра. + */ + public openAndResetFilter() { + if (!this.equipmentList) return; + + if (!this.equipmentList.active) { + // Активируем список, помещаем его в скрытую позицию и анимированно перемещаем в видимое положение + this.equipmentList.active = true; + this.equipmentList.setPosition(this.hiddenPos); + tween(this.equipmentList) + .to(this.slideDuration, { position: this.visiblePos }) + .start(); + this.isListActive = true; + } + // Сбрасываем фильтр независимо от состояния списка + ErrorLazyLoadList.instance?.resetFilter(); + } }