diff --git a/assets/resources/game/gui/bbox.prefab b/assets/resources/game/gui/bbox.prefab index 6d06ca28..4eaa1b3a 100644 --- a/assets/resources/game/gui/bbox.prefab +++ b/assets/resources/game/gui/bbox.prefab @@ -87,7 +87,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 0, + "y": -400, "z": 0 }, "_lrot": { @@ -99,8 +99,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1, - "y": 1, + "x": 0.7, + "y": 0.7, "z": 1 }, "_mobility": 0, diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index ca70f202..22225551 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -54379,10 +54379,10 @@ "__id__": 2391 }, { - "__id__": 2499 + "__id__": 2399 }, { - "__id__": 2509 + "__id__": 2507 } ], "_active": true, @@ -54803,6 +54803,174 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, + { + "__type__": "cc.Node", + "_name": "items", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2372 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 2392 + }, + { + "__id__": 2394 + }, + { + "__id__": 2396 + } + ], + "_prefab": { + "__id__": 2398 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 950, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2391 + }, + "_enabled": true, + "__prefab": { + "__id__": 2393 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 720, + "height": 400 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "80vZsTJbpN56LiME2JcC5V" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2391 + }, + "_enabled": true, + "__prefab": { + "__id__": 2395 + }, + "_alignFlags": 44, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 750, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0fb3Ab95FGTpyJhK+EcQEe" + }, + { + "__type__": "cc.Layout", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2391 + }, + "_enabled": true, + "__prefab": { + "__id__": 2397 + }, + "_resizeMode": 2, + "_layoutType": 3, + "_cellSize": { + "__type__": "cc.Size", + "width": 115, + "height": 115 + }, + "_startAxis": 0, + "_paddingLeft": 10, + "_paddingRight": 10, + "_paddingTop": 0, + "_paddingBottom": 0, + "_spacingX": 0, + "_spacingY": 0, + "_verticalDirection": 1, + "_horizontalDirection": 0, + "_constraint": 2, + "_constraintNum": 6, + "_affectedByScale": false, + "_isAlign": false, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e7hevd3A9BEKpCpbeGp6VM" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "2fBF6GlgZNbKQkaLd73roj", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, { "__type__": "cc.Node", "_name": "boxs", @@ -54813,35 +54981,35 @@ }, "_children": [ { - "__id__": 2392 + "__id__": 2400 }, { - "__id__": 2398 + "__id__": 2406 }, { - "__id__": 2413 + "__id__": 2421 }, { - "__id__": 2428 + "__id__": 2436 }, { - "__id__": 2443 + "__id__": 2451 }, { - "__id__": 2468 + "__id__": 2476 } ], "_active": true, "_components": [ { - "__id__": 2494 + "__id__": 2502 }, { - "__id__": 2496 + "__id__": 2504 } ], "_prefab": { - "__id__": 2498 + "__id__": 2506 }, "_lpos": { "__type__": "cc.Vec3", @@ -54878,20 +55046,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2391 + "__id__": 2399 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2393 + "__id__": 2401 }, { - "__id__": 2395 + "__id__": 2403 } ], "_prefab": { - "__id__": 2397 + "__id__": 2405 }, "_lpos": { "__type__": "cc.Vec3", @@ -54928,11 +55096,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2392 + "__id__": 2400 }, "_enabled": true, "__prefab": { - "__id__": 2394 + "__id__": 2402 }, "_contentSize": { "__type__": "cc.Size", @@ -54956,11 +55124,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2392 + "__id__": 2400 }, "_enabled": true, "__prefab": { - "__id__": 2396 + "__id__": 2404 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -55014,27 +55182,27 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2391 + "__id__": 2399 }, "_children": [ { - "__id__": 2399 + "__id__": 2407 } ], "_active": true, "_components": [ { - "__id__": 2405 + "__id__": 2413 }, { - "__id__": 2407 + "__id__": 2415 }, { - "__id__": 2409 + "__id__": 2417 } ], "_prefab": { - "__id__": 2412 + "__id__": 2420 }, "_lpos": { "__type__": "cc.Vec3", @@ -55071,20 +55239,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2398 + "__id__": 2406 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2400 + "__id__": 2408 }, { - "__id__": 2402 + "__id__": 2410 } ], "_prefab": { - "__id__": 2404 + "__id__": 2412 }, "_lpos": { "__type__": "cc.Vec3", @@ -55121,11 +55289,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2399 + "__id__": 2407 }, "_enabled": true, "__prefab": { - "__id__": 2401 + "__id__": 2409 }, "_contentSize": { "__type__": "cc.Size", @@ -55149,11 +55317,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2399 + "__id__": 2407 }, "_enabled": true, "__prefab": { - "__id__": 2403 + "__id__": 2411 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -55230,11 +55398,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2398 + "__id__": 2406 }, "_enabled": true, "__prefab": { - "__id__": 2406 + "__id__": 2414 }, "_contentSize": { "__type__": "cc.Size", @@ -55258,11 +55426,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2398 + "__id__": 2406 }, "_enabled": true, "__prefab": { - "__id__": 2408 + "__id__": 2416 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -55303,15 +55471,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2398 + "__id__": 2406 }, "_enabled": true, "__prefab": { - "__id__": 2410 + "__id__": 2418 }, "clickEvents": [ { - "__id__": 2411 + "__id__": 2419 } ], "_interactable": true, @@ -55386,27 +55554,27 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2391 + "__id__": 2399 }, "_children": [ { - "__id__": 2414 + "__id__": 2422 } ], "_active": true, "_components": [ { - "__id__": 2420 + "__id__": 2428 }, { - "__id__": 2422 + "__id__": 2430 }, { - "__id__": 2424 + "__id__": 2432 } ], "_prefab": { - "__id__": 2427 + "__id__": 2435 }, "_lpos": { "__type__": "cc.Vec3", @@ -55443,20 +55611,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2413 + "__id__": 2421 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2415 + "__id__": 2423 }, { - "__id__": 2417 + "__id__": 2425 } ], "_prefab": { - "__id__": 2419 + "__id__": 2427 }, "_lpos": { "__type__": "cc.Vec3", @@ -55493,11 +55661,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2414 + "__id__": 2422 }, "_enabled": true, "__prefab": { - "__id__": 2416 + "__id__": 2424 }, "_contentSize": { "__type__": "cc.Size", @@ -55521,11 +55689,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2414 + "__id__": 2422 }, "_enabled": true, "__prefab": { - "__id__": 2418 + "__id__": 2426 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -55602,11 +55770,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2413 + "__id__": 2421 }, "_enabled": true, "__prefab": { - "__id__": 2421 + "__id__": 2429 }, "_contentSize": { "__type__": "cc.Size", @@ -55630,11 +55798,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2413 + "__id__": 2421 }, "_enabled": true, "__prefab": { - "__id__": 2423 + "__id__": 2431 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -55675,15 +55843,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2413 + "__id__": 2421 }, "_enabled": true, "__prefab": { - "__id__": 2425 + "__id__": 2433 }, "clickEvents": [ { - "__id__": 2426 + "__id__": 2434 } ], "_interactable": true, @@ -55758,27 +55926,27 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2391 + "__id__": 2399 }, "_children": [ { - "__id__": 2429 + "__id__": 2437 } ], "_active": true, "_components": [ { - "__id__": 2435 + "__id__": 2443 }, { - "__id__": 2437 + "__id__": 2445 }, { - "__id__": 2439 + "__id__": 2447 } ], "_prefab": { - "__id__": 2442 + "__id__": 2450 }, "_lpos": { "__type__": "cc.Vec3", @@ -55815,20 +55983,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2428 + "__id__": 2436 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2430 + "__id__": 2438 }, { - "__id__": 2432 + "__id__": 2440 } ], "_prefab": { - "__id__": 2434 + "__id__": 2442 }, "_lpos": { "__type__": "cc.Vec3", @@ -55865,11 +56033,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2429 + "__id__": 2437 }, "_enabled": true, "__prefab": { - "__id__": 2431 + "__id__": 2439 }, "_contentSize": { "__type__": "cc.Size", @@ -55893,11 +56061,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2429 + "__id__": 2437 }, "_enabled": true, "__prefab": { - "__id__": 2433 + "__id__": 2441 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -55974,11 +56142,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2428 + "__id__": 2436 }, "_enabled": true, "__prefab": { - "__id__": 2436 + "__id__": 2444 }, "_contentSize": { "__type__": "cc.Size", @@ -56002,11 +56170,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2428 + "__id__": 2436 }, "_enabled": true, "__prefab": { - "__id__": 2438 + "__id__": 2446 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -56047,15 +56215,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2428 + "__id__": 2436 }, "_enabled": true, "__prefab": { - "__id__": 2440 + "__id__": 2448 }, "clickEvents": [ { - "__id__": 2441 + "__id__": 2449 } ], "_interactable": true, @@ -56130,30 +56298,30 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2391 + "__id__": 2399 }, "_children": [ { - "__id__": 2444 + "__id__": 2452 }, { - "__id__": 2450 - }, - { - "__id__": 2456 - } - ], - "_active": true, - "_components": [ - { - "__id__": 2462 + "__id__": 2458 }, { "__id__": 2464 } ], + "_active": true, + "_components": [ + { + "__id__": 2470 + }, + { + "__id__": 2472 + } + ], "_prefab": { - "__id__": 2467 + "__id__": 2475 }, "_lpos": { "__type__": "cc.Vec3", @@ -56190,20 +56358,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2443 + "__id__": 2451 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2445 + "__id__": 2453 }, { - "__id__": 2447 + "__id__": 2455 } ], "_prefab": { - "__id__": 2449 + "__id__": 2457 }, "_lpos": { "__type__": "cc.Vec3", @@ -56240,11 +56408,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2444 + "__id__": 2452 }, "_enabled": true, "__prefab": { - "__id__": 2446 + "__id__": 2454 }, "_contentSize": { "__type__": "cc.Size", @@ -56268,11 +56436,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2444 + "__id__": 2452 }, "_enabled": true, "__prefab": { - "__id__": 2448 + "__id__": 2456 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -56326,20 +56494,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2443 + "__id__": 2451 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2451 + "__id__": 2459 }, { - "__id__": 2453 + "__id__": 2461 } ], "_prefab": { - "__id__": 2455 + "__id__": 2463 }, "_lpos": { "__type__": "cc.Vec3", @@ -56376,11 +56544,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2450 + "__id__": 2458 }, "_enabled": true, "__prefab": { - "__id__": 2452 + "__id__": 2460 }, "_contentSize": { "__type__": "cc.Size", @@ -56404,11 +56572,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2450 + "__id__": 2458 }, "_enabled": true, "__prefab": { - "__id__": 2454 + "__id__": 2462 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -56462,20 +56630,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2443 + "__id__": 2451 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2457 + "__id__": 2465 }, { - "__id__": 2459 + "__id__": 2467 } ], "_prefab": { - "__id__": 2461 + "__id__": 2469 }, "_lpos": { "__type__": "cc.Vec3", @@ -56512,11 +56680,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2456 + "__id__": 2464 }, "_enabled": true, "__prefab": { - "__id__": 2458 + "__id__": 2466 }, "_contentSize": { "__type__": "cc.Size", @@ -56540,11 +56708,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2456 + "__id__": 2464 }, "_enabled": true, "__prefab": { - "__id__": 2460 + "__id__": 2468 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -56621,11 +56789,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2443 + "__id__": 2451 }, "_enabled": true, "__prefab": { - "__id__": 2463 + "__id__": 2471 }, "_contentSize": { "__type__": "cc.Size", @@ -56649,15 +56817,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2443 + "__id__": 2451 }, "_enabled": true, "__prefab": { - "__id__": 2465 + "__id__": 2473 }, "clickEvents": [ { - "__id__": 2466 + "__id__": 2474 } ], "_interactable": true, @@ -56732,33 +56900,33 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2391 + "__id__": 2399 }, "_children": [ { - "__id__": 2469 + "__id__": 2477 }, { - "__id__": 2475 + "__id__": 2483 }, { - "__id__": 2481 + "__id__": 2489 } ], "_active": true, "_components": [ { - "__id__": 2487 + "__id__": 2495 }, { - "__id__": 2489 + "__id__": 2497 }, { - "__id__": 2491 + "__id__": 2499 } ], "_prefab": { - "__id__": 2493 + "__id__": 2501 }, "_lpos": { "__type__": "cc.Vec3", @@ -56795,20 +56963,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2468 + "__id__": 2476 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2470 + "__id__": 2478 }, { - "__id__": 2472 + "__id__": 2480 } ], "_prefab": { - "__id__": 2474 + "__id__": 2482 }, "_lpos": { "__type__": "cc.Vec3", @@ -56845,11 +57013,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2469 + "__id__": 2477 }, "_enabled": true, "__prefab": { - "__id__": 2471 + "__id__": 2479 }, "_contentSize": { "__type__": "cc.Size", @@ -56873,11 +57041,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2469 + "__id__": 2477 }, "_enabled": true, "__prefab": { - "__id__": 2473 + "__id__": 2481 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -56931,20 +57099,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2468 + "__id__": 2476 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2476 + "__id__": 2484 }, { - "__id__": 2478 + "__id__": 2486 } ], "_prefab": { - "__id__": 2480 + "__id__": 2488 }, "_lpos": { "__type__": "cc.Vec3", @@ -56981,11 +57149,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2475 + "__id__": 2483 }, "_enabled": true, "__prefab": { - "__id__": 2477 + "__id__": 2485 }, "_contentSize": { "__type__": "cc.Size", @@ -57009,11 +57177,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2475 + "__id__": 2483 }, "_enabled": true, "__prefab": { - "__id__": 2479 + "__id__": 2487 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -57067,20 +57235,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2468 + "__id__": 2476 }, "_children": [], "_active": true, "_components": [ { - "__id__": 2482 + "__id__": 2490 }, { - "__id__": 2484 + "__id__": 2492 } ], "_prefab": { - "__id__": 2486 + "__id__": 2494 }, "_lpos": { "__type__": "cc.Vec3", @@ -57117,11 +57285,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2481 + "__id__": 2489 }, "_enabled": true, "__prefab": { - "__id__": 2483 + "__id__": 2491 }, "_contentSize": { "__type__": "cc.Size", @@ -57145,11 +57313,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2481 + "__id__": 2489 }, "_enabled": true, "__prefab": { - "__id__": 2485 + "__id__": 2493 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -57226,11 +57394,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2468 + "__id__": 2476 }, "_enabled": true, "__prefab": { - "__id__": 2488 + "__id__": 2496 }, "_contentSize": { "__type__": "cc.Size", @@ -57254,11 +57422,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2468 + "__id__": 2476 }, "_enabled": true, "__prefab": { - "__id__": 2490 + "__id__": 2498 }, "clickEvents": [], "_interactable": true, @@ -57310,11 +57478,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2468 + "__id__": 2476 }, "_enabled": true, "__prefab": { - "__id__": 2492 + "__id__": 2500 }, "_id": "" }, @@ -57341,11 +57509,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2391 + "__id__": 2399 }, "_enabled": true, "__prefab": { - "__id__": 2495 + "__id__": 2503 }, "_contentSize": { "__type__": "cc.Size", @@ -57369,11 +57537,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2391 + "__id__": 2399 }, "_enabled": true, "__prefab": { - "__id__": 2497 + "__id__": 2505 }, "_alignFlags": 4, "_target": null, @@ -57422,22 +57590,22 @@ }, "_children": [ { - "__id__": 2500 + "__id__": 2508 } ], "_active": true, "_components": [ { - "__id__": 2506 + "__id__": 2514 } ], "_prefab": { - "__id__": 2508 + "__id__": 2516 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 630.871, + "y": 831.648, "z": 0 }, "_lrot": { @@ -57469,25 +57637,25 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 2499 + "__id__": 2507 }, "_children": [], "_active": false, "_components": [ { - "__id__": 2501 + "__id__": 2509 }, { - "__id__": 2503 + "__id__": 2511 } ], "_prefab": { - "__id__": 2505 + "__id__": 2513 }, "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 0, + "y": -400, "z": 0 }, "_lrot": { @@ -57499,8 +57667,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 3, - "y": 3, + "x": 2, + "y": 2, "z": 1 }, "_mobility": 0, @@ -57519,11 +57687,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2500 + "__id__": 2508 }, "_enabled": true, "__prefab": { - "__id__": 2502 + "__id__": 2510 }, "_contentSize": { "__type__": "cc.Size", @@ -57547,11 +57715,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2500 + "__id__": 2508 }, "_enabled": true, "__prefab": { - "__id__": 2504 + "__id__": 2512 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -57561,14 +57729,14 @@ "r": 253, "g": 246, "b": 73, - "a": 255 + "a": 128 }, "_spriteFrame": { "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@0285f", "__expectedType__": "cc.SpriteFrame" }, - "_type": 0, - "_fillType": 0, + "_type": 3, + "_fillType": 1, "_sizeMode": 1, "_fillCenter": { "__type__": "cc.Vec2", @@ -57576,7 +57744,7 @@ "y": 0 }, "_fillStart": 0, - "_fillRange": 0, + "_fillRange": 1, "_isTrimmedMode": true, "_useGrayscale": false, "_atlas": null, @@ -57605,11 +57773,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 2499 + "__id__": 2507 }, "_enabled": true, "__prefab": { - "__id__": 2507 + "__id__": 2515 }, "_contentSize": { "__type__": "cc.Size", @@ -57640,174 +57808,6 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.Node", - "_name": "items", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 2372 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 2510 - }, - { - "__id__": 2512 - }, - { - "__id__": 2514 - } - ], - "_prefab": { - "__id__": 2516 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 950, - "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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2509 - }, - "_enabled": true, - "__prefab": { - "__id__": 2511 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 720, - "height": 400 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "80vZsTJbpN56LiME2JcC5V" - }, - { - "__type__": "cc.Widget", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2509 - }, - "_enabled": true, - "__prefab": { - "__id__": 2513 - }, - "_alignFlags": 44, - "_target": null, - "_left": 0, - "_right": 0, - "_top": 0, - "_bottom": 750, - "_horizontalCenter": 0, - "_verticalCenter": 0, - "_isAbsLeft": true, - "_isAbsRight": true, - "_isAbsTop": true, - "_isAbsBottom": true, - "_isAbsHorizontalCenter": true, - "_isAbsVerticalCenter": true, - "_originalWidth": 100, - "_originalHeight": 0, - "_alignMode": 2, - "_lockFlags": 0, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "0fb3Ab95FGTpyJhK+EcQEe" - }, - { - "__type__": "cc.Layout", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2509 - }, - "_enabled": true, - "__prefab": { - "__id__": 2515 - }, - "_resizeMode": 2, - "_layoutType": 3, - "_cellSize": { - "__type__": "cc.Size", - "width": 115, - "height": 115 - }, - "_startAxis": 0, - "_paddingLeft": 10, - "_paddingRight": 10, - "_paddingTop": 0, - "_paddingBottom": 0, - "_spacingX": 0, - "_spacingY": 0, - "_verticalDirection": 1, - "_horizontalDirection": 0, - "_constraint": 2, - "_constraintNum": 6, - "_affectedByScale": false, - "_isAlign": false, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e7hevd3A9BEKpCpbeGp6VM" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "2fBF6GlgZNbKQkaLd73roj", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, { "__type__": "cc.UITransform", "_name": "", @@ -57885,16 +57885,16 @@ "__id__": 2522 }, "sbn": { - "__id__": 2398 + "__id__": 2406 }, "mbn": { - "__id__": 2413 + "__id__": 2421 }, "lbn": { - "__id__": 2428 + "__id__": 2436 }, "btnno": { - "__id__": 2468 + "__id__": 2476 }, "itmes": null, "_id": "" diff --git a/assets/script/game/common/config/RewardSet.ts b/assets/script/game/common/config/RewardSet.ts index 8945566c..cb2e4714 100644 --- a/assets/script/game/common/config/RewardSet.ts +++ b/assets/script/game/common/config/RewardSet.ts @@ -1,9 +1,9 @@ export const BoxDrop={ 1:[ - {uuid: 1009,dropRate: 10,num_max: 10,type:0}, - {uuid: 1010,dropRate: 10,num_max: 10,type:0}, - {uuid: 1011,dropRate: 10,num_max: 10,type:0}, + {uuid: 1001,dropRate: 10,num_max: 10,type:0}, + {uuid: 1002,dropRate: 10,num_max: 10,type:0}, + {uuid: 1003,dropRate: 10,num_max: 10,type:0}, ], 2:[ {uuid: 1001,dropRate: 10,num_max: 10,type:0}, diff --git a/assets/script/game/map/Item.ts b/assets/script/game/map/Item.ts index ab83c5f3..6d2f5def 100644 --- a/assets/script/game/map/Item.ts +++ b/assets/script/game/map/Item.ts @@ -15,35 +15,12 @@ export class Item extends ecs.Entity { var path = "game/gui/item"; var prefab: Prefab = oops.res.get(path, Prefab)!; var node = instantiate(prefab); - node.getChildByName("num").getComponent(Label).string = num.toString(); - if(num==0){ - node.getChildByName("num").getComponent(Label).string =""; - } - - let url = "gui/items"; - let pathName= Items[uuid].path; - switch(Items[uuid].lv){ - case 1: - node.getChildByName("lv1").active = true; - break; - case 2: - node.getChildByName("lv2").active = true; - break; - case 3: - node.getChildByName("lv3").active = true; - break; - case 4: - node.getChildByName("lv4").active = true; - break; - } - resources.load(url, SpriteAtlas, (err: any, atlas) => { - const sprite = node.getChildByName("icon").getComponent(Sprite); - sprite.spriteFrame = atlas.getSpriteFrame(pathName); - }); + node.parent = praent let iv = node.getComponent(ItemComp)!; iv.i_uuid = uuid iv.num=num + iv.update_data(uuid,num) this.add(iv) } /** 模块资源释放 */ diff --git a/assets/script/game/map/ItemComp.ts b/assets/script/game/map/ItemComp.ts index a6fde697..fd19aa22 100644 --- a/assets/script/game/map/ItemComp.ts +++ b/assets/script/game/map/ItemComp.ts @@ -17,6 +17,34 @@ export class ItemComp extends CCComp { //todo 设定icon 显示 } + update_data(uuid:number,num:number){ + this.i_uuid=uuid; + this.num=num; + this.node.getChildByName("num").getComponent(Label).string = num.toString(); + if(num==0){ + this.node.getChildByName("num").getComponent(Label).string =""; + } + let url = "gui/items"; + let pathName= Items[uuid].path; + switch(Items[uuid].lv){ + case 1: + this.node.getChildByName("lv1").active = true; + break; + case 2: + this.node.getChildByName("lv2").active = true; + break; + case 3: + this.node.getChildByName("lv3").active = true; + break; + case 4: + this.node.getChildByName("lv4").active = true; + break; + } + resources.load(url, SpriteAtlas, (err: any, atlas) => { + const sprite = this.node.getChildByName("icon").getComponent(Sprite); + sprite.spriteFrame = atlas.getSpriteFrame(pathName); + }); + } show_info(){ oops.gui.open(UIID.ItemInfo, {uuid:this.i_uuid,type:0}); } diff --git a/assets/script/game/map/LuckHomeComp.ts b/assets/script/game/map/LuckHomeComp.ts index 2e0b4e38..2a9e7308 100644 --- a/assets/script/game/map/LuckHomeComp.ts +++ b/assets/script/game/map/LuckHomeComp.ts @@ -1,4 +1,4 @@ -import { _decorator, instantiate, Prefab ,Node, Label, Sprite, resources, SpriteAtlas} from "cc"; +import { _decorator, instantiate, Prefab ,Node, Label, Sprite, resources, SpriteAtlas, v3} from "cc"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; @@ -9,6 +9,7 @@ import { HChipComp } from "../hero/HChipComp"; import { BoxDrop } from "../common/config/RewardSet"; import { RandomManager } from "db://oops-framework/core/common/random/RandomManager"; import { SChipComp } from "../hero/SChipComp"; +import { ItemComp } from "./ItemComp"; const { ccclass, property } = _decorator; @@ -145,11 +146,13 @@ export class LuckHomeCompComp extends CCComp { let path = "game/gui/hchip"; let prefab: Prefab = oops.res.get(path, Prefab)!; let node = instantiate(prefab); + node.setScale(2,2) let hc= node.getComponent(HChipComp) hc.update_data(uuid,num) node.parent = this.node.getChildByName("bbox"); this.scheduleOnce(()=>{ node.parent = this.node.getChildByName("items"); + node.setScale(1,1) }, 0.5) this.scheduleOnce(()=>{ node.destroy(); @@ -160,34 +163,13 @@ export class LuckHomeCompComp extends CCComp { var path = "game/gui/item"; var prefab: Prefab = oops.res.get(path, Prefab)!; var node = instantiate(prefab); - node.getChildByName("num").getComponent(Label).string = num.toString(); - if(num==0){ - node.getChildByName("num").getComponent(Label).string =""; - } - - let url = "gui/items"; - let pathName= Items[uuid].path; - switch(Items[uuid].lv){ - case 1: - node.getChildByName("lv1").active = true; - break; - case 2: - node.getChildByName("lv2").active = true; - break; - case 3: - node.getChildByName("lv3").active = true; - break; - case 4: - node.getChildByName("lv4").active = true; - break; - } - resources.load(url, SpriteAtlas, (err: any, atlas) => { - const sprite = node.getChildByName("icon").getComponent(Sprite); - sprite.spriteFrame = atlas.getSpriteFrame(pathName); - }); + node.setScale(2,2) + let ic= node.getComponent(ItemComp) + ic.update_data(uuid,num) node.parent = this.node.getChildByName("bbox"); this.scheduleOnce(()=>{ node.parent = this.node.getChildByName("items"); + node.setScale(1,1) }, 0.5) this.scheduleOnce(()=>{ node.destroy(); @@ -197,11 +179,13 @@ export class LuckHomeCompComp extends CCComp { let path = "game/gui/schip"; let prefab: Prefab = oops.res.get(path, Prefab)!; let node = instantiate(prefab); + node.setScale(2,2) let sc= node.getComponent(SChipComp) sc.update_data(uuid,num) node.parent = this.node.getChildByName("bbox"); this.scheduleOnce(()=>{ node.parent = this.node.getChildByName("items"); + node.setScale(1,1) }, 0.5) this.scheduleOnce(()=>{ node.destroy(); @@ -213,7 +197,7 @@ export class LuckHomeCompComp extends CCComp { var prefab: Prefab = oops.res.get(path, Prefab)!; let box = instantiate(prefab); box.parent = parent; - // parent.getChildByName("light").active = true; + parent.getChildByName("light").active = true; this.scheduleOnce(()=>{ parent.getChildByName("light").active = false; }, 0.5)