user_pack_item.prefab 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. [
  2. {
  3. "__type__": "cc.Prefab",
  4. "_name": "",
  5. "_objFlags": 0,
  6. "_native": "",
  7. "data": {
  8. "__id__": 1
  9. },
  10. "optimizationPolicy": 0,
  11. "asyncLoadAssets": false
  12. },
  13. {
  14. "__type__": "cc.Node",
  15. "_name": "user_pack_item",
  16. "_objFlags": 0,
  17. "_parent": null,
  18. "_children": [
  19. {
  20. "__id__": 2
  21. },
  22. {
  23. "__id__": 5
  24. },
  25. {
  26. "__id__": 8
  27. }
  28. ],
  29. "_tag": -1,
  30. "_active": true,
  31. "_components": [
  32. {
  33. "__id__": 20
  34. }
  35. ],
  36. "_prefab": {
  37. "__id__": 21
  38. },
  39. "_id": "",
  40. "_opacity": 255,
  41. "_color": {
  42. "__type__": "cc.Color",
  43. "r": 255,
  44. "g": 255,
  45. "b": 255,
  46. "a": 255
  47. },
  48. "_cascadeOpacityEnabled": true,
  49. "_anchorPoint": {
  50. "__type__": "cc.Vec2",
  51. "x": 0.5,
  52. "y": 0.5
  53. },
  54. "_contentSize": {
  55. "__type__": "cc.Size",
  56. "width": 136,
  57. "height": 136
  58. },
  59. "_rotationX": 0,
  60. "_rotationY": 0,
  61. "_scaleX": 1,
  62. "_scaleY": 1,
  63. "_position": {
  64. "__type__": "cc.Vec2",
  65. "x": 0,
  66. "y": 0
  67. },
  68. "_skewX": 0,
  69. "_skewY": 0,
  70. "_localZOrder": 0,
  71. "_globalZOrder": 0,
  72. "_opacityModifyRGB": false,
  73. "groupIndex": 0
  74. },
  75. {
  76. "__type__": "cc.Node",
  77. "_name": "pack_item_background",
  78. "_objFlags": 0,
  79. "_parent": {
  80. "__id__": 1
  81. },
  82. "_children": [],
  83. "_tag": -1,
  84. "_active": true,
  85. "_components": [
  86. {
  87. "__id__": 3
  88. }
  89. ],
  90. "_prefab": {
  91. "__id__": 4
  92. },
  93. "_id": "",
  94. "_opacity": 255,
  95. "_color": {
  96. "__type__": "cc.Color",
  97. "r": 255,
  98. "g": 255,
  99. "b": 255,
  100. "a": 255
  101. },
  102. "_cascadeOpacityEnabled": true,
  103. "_anchorPoint": {
  104. "__type__": "cc.Vec2",
  105. "x": 0.5,
  106. "y": 0.5
  107. },
  108. "_contentSize": {
  109. "__type__": "cc.Size",
  110. "width": 136,
  111. "height": 136
  112. },
  113. "_rotationX": 0,
  114. "_rotationY": 0,
  115. "_scaleX": 1,
  116. "_scaleY": 1,
  117. "_position": {
  118. "__type__": "cc.Vec2",
  119. "x": 0,
  120. "y": 0
  121. },
  122. "_skewX": 0,
  123. "_skewY": 0,
  124. "_localZOrder": 0,
  125. "_globalZOrder": 0,
  126. "_opacityModifyRGB": false,
  127. "groupIndex": 0
  128. },
  129. {
  130. "__type__": "cc.Sprite",
  131. "_name": "",
  132. "_objFlags": 0,
  133. "node": {
  134. "__id__": 2
  135. },
  136. "_enabled": true,
  137. "_spriteFrame": {
  138. "__uuid__": "4edcb301-9222-45bc-8bda-8dfd2a24714c"
  139. },
  140. "_type": 0,
  141. "_sizeMode": 1,
  142. "_fillType": 0,
  143. "_fillCenter": {
  144. "__type__": "cc.Vec2",
  145. "x": 0,
  146. "y": 0
  147. },
  148. "_fillStart": 0,
  149. "_fillRange": 0,
  150. "_isTrimmedMode": true,
  151. "_srcBlendFactor": 770,
  152. "_dstBlendFactor": 771,
  153. "_atlas": null
  154. },
  155. {
  156. "__type__": "cc.PrefabInfo",
  157. "root": {
  158. "__id__": 1
  159. },
  160. "asset": {
  161. "__uuid__": "4e76fe21-5d04-49c9-b0d4-868b2648d844"
  162. },
  163. "fileId": "13fpUtl8BGmbPQSaVHx2WO",
  164. "sync": false
  165. },
  166. {
  167. "__type__": "cc.Node",
  168. "_name": "pack_item_selected",
  169. "_objFlags": 0,
  170. "_parent": {
  171. "__id__": 1
  172. },
  173. "_children": [],
  174. "_tag": -1,
  175. "_active": false,
  176. "_components": [
  177. {
  178. "__id__": 6
  179. }
  180. ],
  181. "_prefab": {
  182. "__id__": 7
  183. },
  184. "_id": "",
  185. "_opacity": 255,
  186. "_color": {
  187. "__type__": "cc.Color",
  188. "r": 255,
  189. "g": 255,
  190. "b": 255,
  191. "a": 255
  192. },
  193. "_cascadeOpacityEnabled": true,
  194. "_anchorPoint": {
  195. "__type__": "cc.Vec2",
  196. "x": 0.5,
  197. "y": 0.5
  198. },
  199. "_contentSize": {
  200. "__type__": "cc.Size",
  201. "width": 132,
  202. "height": 132
  203. },
  204. "_rotationX": 0,
  205. "_rotationY": 0,
  206. "_scaleX": 1,
  207. "_scaleY": 1,
  208. "_position": {
  209. "__type__": "cc.Vec2",
  210. "x": 0,
  211. "y": 0
  212. },
  213. "_skewX": 0,
  214. "_skewY": 0,
  215. "_localZOrder": 0,
  216. "_globalZOrder": 0,
  217. "_opacityModifyRGB": false,
  218. "groupIndex": 0
  219. },
  220. {
  221. "__type__": "cc.Sprite",
  222. "_name": "",
  223. "_objFlags": 0,
  224. "node": {
  225. "__id__": 5
  226. },
  227. "_enabled": true,
  228. "_spriteFrame": {
  229. "__uuid__": "d0bb2fb3-b6a2-4375-b3cf-d895102ad23f"
  230. },
  231. "_type": 0,
  232. "_sizeMode": 1,
  233. "_fillType": 0,
  234. "_fillCenter": {
  235. "__type__": "cc.Vec2",
  236. "x": 0,
  237. "y": 0
  238. },
  239. "_fillStart": 0,
  240. "_fillRange": 0,
  241. "_isTrimmedMode": true,
  242. "_srcBlendFactor": 770,
  243. "_dstBlendFactor": 771,
  244. "_atlas": null
  245. },
  246. {
  247. "__type__": "cc.PrefabInfo",
  248. "root": {
  249. "__id__": 1
  250. },
  251. "asset": {
  252. "__uuid__": "4e76fe21-5d04-49c9-b0d4-868b2648d844"
  253. },
  254. "fileId": "45mcjjNSZD6IkKdG/iMVB8",
  255. "sync": false
  256. },
  257. {
  258. "__type__": "cc.Node",
  259. "_name": "itemNode",
  260. "_objFlags": 0,
  261. "_parent": {
  262. "__id__": 1
  263. },
  264. "_children": [
  265. {
  266. "__id__": 9
  267. },
  268. {
  269. "__id__": 14
  270. }
  271. ],
  272. "_tag": -1,
  273. "_active": false,
  274. "_components": [
  275. {
  276. "__id__": 18
  277. }
  278. ],
  279. "_prefab": {
  280. "__id__": 19
  281. },
  282. "_id": "",
  283. "_opacity": 255,
  284. "_color": {
  285. "__type__": "cc.Color",
  286. "r": 255,
  287. "g": 255,
  288. "b": 255,
  289. "a": 255
  290. },
  291. "_cascadeOpacityEnabled": true,
  292. "_anchorPoint": {
  293. "__type__": "cc.Vec2",
  294. "x": 0.5,
  295. "y": 0.5
  296. },
  297. "_contentSize": {
  298. "__type__": "cc.Size",
  299. "width": 136,
  300. "height": 136
  301. },
  302. "_rotationX": 0,
  303. "_rotationY": 0,
  304. "_scaleX": 1,
  305. "_scaleY": 1,
  306. "_position": {
  307. "__type__": "cc.Vec2",
  308. "x": 0,
  309. "y": 0
  310. },
  311. "_skewX": 0,
  312. "_skewY": 0,
  313. "_localZOrder": 0,
  314. "_globalZOrder": 0,
  315. "_opacityModifyRGB": false,
  316. "groupIndex": 0
  317. },
  318. {
  319. "__type__": "cc.Node",
  320. "_name": "itemSprite",
  321. "_objFlags": 0,
  322. "_parent": {
  323. "__id__": 8
  324. },
  325. "_children": [],
  326. "_tag": -1,
  327. "_active": true,
  328. "_components": [
  329. {
  330. "__id__": 10
  331. },
  332. {
  333. "__id__": 11
  334. }
  335. ],
  336. "_prefab": {
  337. "__id__": 13
  338. },
  339. "_id": "",
  340. "_opacity": 255,
  341. "_color": {
  342. "__type__": "cc.Color",
  343. "r": 255,
  344. "g": 255,
  345. "b": 255,
  346. "a": 255
  347. },
  348. "_cascadeOpacityEnabled": true,
  349. "_anchorPoint": {
  350. "__type__": "cc.Vec2",
  351. "x": 0.5,
  352. "y": 0.5
  353. },
  354. "_contentSize": {
  355. "__type__": "cc.Size",
  356. "width": 117,
  357. "height": 90
  358. },
  359. "_rotationX": 0,
  360. "_rotationY": 0,
  361. "_scaleX": 1,
  362. "_scaleY": 1,
  363. "_position": {
  364. "__type__": "cc.Vec2",
  365. "x": 0,
  366. "y": 0
  367. },
  368. "_skewX": 0,
  369. "_skewY": 0,
  370. "_localZOrder": 0,
  371. "_globalZOrder": 0,
  372. "_opacityModifyRGB": false,
  373. "groupIndex": 0
  374. },
  375. {
  376. "__type__": "cc.Sprite",
  377. "_name": "",
  378. "_objFlags": 0,
  379. "node": {
  380. "__id__": 9
  381. },
  382. "_enabled": true,
  383. "_spriteFrame": null,
  384. "_type": 0,
  385. "_sizeMode": 1,
  386. "_fillType": 0,
  387. "_fillCenter": {
  388. "__type__": "cc.Vec2",
  389. "x": 0,
  390. "y": 0
  391. },
  392. "_fillStart": 0,
  393. "_fillRange": 0,
  394. "_isTrimmedMode": true,
  395. "_srcBlendFactor": 770,
  396. "_dstBlendFactor": 771,
  397. "_atlas": null
  398. },
  399. {
  400. "__type__": "cc.Button",
  401. "_name": "",
  402. "_objFlags": 0,
  403. "node": {
  404. "__id__": 9
  405. },
  406. "_enabled": true,
  407. "transition": 1,
  408. "pressedColor": {
  409. "__type__": "cc.Color",
  410. "r": 120,
  411. "g": 120,
  412. "b": 120,
  413. "a": 255
  414. },
  415. "hoverColor": {
  416. "__type__": "cc.Color",
  417. "r": 255,
  418. "g": 255,
  419. "b": 255,
  420. "a": 255
  421. },
  422. "duration": 0.1,
  423. "zoomScale": 1.2,
  424. "clickEvents": [
  425. {
  426. "__id__": 12
  427. }
  428. ],
  429. "_N$interactable": true,
  430. "_N$enableAutoGrayEffect": false,
  431. "_N$normalColor": {
  432. "__type__": "cc.Color",
  433. "r": 255,
  434. "g": 255,
  435. "b": 255,
  436. "a": 255
  437. },
  438. "_N$disabledColor": {
  439. "__type__": "cc.Color",
  440. "r": 255,
  441. "g": 255,
  442. "b": 255,
  443. "a": 255
  444. },
  445. "_N$normalSprite": null,
  446. "_N$pressedSprite": {
  447. "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
  448. },
  449. "pressedSprite": {
  450. "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
  451. },
  452. "_N$hoverSprite": {
  453. "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
  454. },
  455. "hoverSprite": {
  456. "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
  457. },
  458. "_N$disabledSprite": {
  459. "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
  460. },
  461. "_N$target": {
  462. "__id__": 9
  463. }
  464. },
  465. {
  466. "__type__": "cc.ClickEvent",
  467. "target": {
  468. "__id__": 1
  469. },
  470. "component": "UserPackItem",
  471. "handler": "selectItem",
  472. "customEventData": ""
  473. },
  474. {
  475. "__type__": "cc.PrefabInfo",
  476. "root": {
  477. "__id__": 1
  478. },
  479. "asset": {
  480. "__uuid__": "4e76fe21-5d04-49c9-b0d4-868b2648d844"
  481. },
  482. "fileId": "82Q5LUYzlC+o3kC7VMjs7I",
  483. "sync": false
  484. },
  485. {
  486. "__type__": "cc.Node",
  487. "_name": "countLabel",
  488. "_objFlags": 0,
  489. "_parent": {
  490. "__id__": 8
  491. },
  492. "_children": [],
  493. "_tag": -1,
  494. "_active": true,
  495. "_components": [
  496. {
  497. "__id__": 15
  498. },
  499. {
  500. "__id__": 16
  501. }
  502. ],
  503. "_prefab": {
  504. "__id__": 17
  505. },
  506. "_id": "",
  507. "_opacity": 255,
  508. "_color": {
  509. "__type__": "cc.Color",
  510. "r": 0,
  511. "g": 0,
  512. "b": 0,
  513. "a": 255
  514. },
  515. "_cascadeOpacityEnabled": true,
  516. "_anchorPoint": {
  517. "__type__": "cc.Vec2",
  518. "x": 1,
  519. "y": 0.5
  520. },
  521. "_contentSize": {
  522. "__type__": "cc.Size",
  523. "width": 12,
  524. "height": 22
  525. },
  526. "_rotationX": 0,
  527. "_rotationY": 0,
  528. "_scaleX": 1,
  529. "_scaleY": 1,
  530. "_position": {
  531. "__type__": "cc.Vec2",
  532. "x": 51,
  533. "y": -44
  534. },
  535. "_skewX": 0,
  536. "_skewY": 0,
  537. "_localZOrder": 0,
  538. "_globalZOrder": 0,
  539. "_opacityModifyRGB": false,
  540. "groupIndex": 0
  541. },
  542. {
  543. "__type__": "cc.Label",
  544. "_name": "",
  545. "_objFlags": 0,
  546. "node": {
  547. "__id__": 14
  548. },
  549. "_enabled": true,
  550. "_useOriginalSize": false,
  551. "_actualFontSize": 22,
  552. "_fontSize": 22,
  553. "_lineHeight": 22,
  554. "_enableWrapText": true,
  555. "_N$file": null,
  556. "_isSystemFontUsed": true,
  557. "_spacingX": 0,
  558. "_N$string": "1",
  559. "_N$horizontalAlign": 2,
  560. "_N$verticalAlign": 1,
  561. "_N$fontFamily": "Arial",
  562. "_N$overflow": 0
  563. },
  564. {
  565. "__type__": "cc.LabelOutline",
  566. "_name": "",
  567. "_objFlags": 0,
  568. "node": {
  569. "__id__": 14
  570. },
  571. "_enabled": true,
  572. "_color": {
  573. "__type__": "cc.Color",
  574. "r": 255,
  575. "g": 255,
  576. "b": 255,
  577. "a": 255
  578. },
  579. "_width": 2
  580. },
  581. {
  582. "__type__": "cc.PrefabInfo",
  583. "root": {
  584. "__id__": 1
  585. },
  586. "asset": {
  587. "__uuid__": "4e76fe21-5d04-49c9-b0d4-868b2648d844"
  588. },
  589. "fileId": "54lZu5xNtDJo6d34Ozsf6z",
  590. "sync": false
  591. },
  592. {
  593. "__type__": "cc.Widget",
  594. "_name": "",
  595. "_objFlags": 0,
  596. "node": {
  597. "__id__": 8
  598. },
  599. "_enabled": true,
  600. "alignMode": 1,
  601. "_target": null,
  602. "_alignFlags": 45,
  603. "_left": 0,
  604. "_right": 0,
  605. "_top": 0,
  606. "_bottom": 0,
  607. "_verticalCenter": 0,
  608. "_horizontalCenter": 0,
  609. "_isAbsLeft": true,
  610. "_isAbsRight": true,
  611. "_isAbsTop": true,
  612. "_isAbsBottom": true,
  613. "_isAbsHorizontalCenter": true,
  614. "_isAbsVerticalCenter": true,
  615. "_originalWidth": 0,
  616. "_originalHeight": 0
  617. },
  618. {
  619. "__type__": "cc.PrefabInfo",
  620. "root": {
  621. "__id__": 1
  622. },
  623. "asset": {
  624. "__uuid__": "4e76fe21-5d04-49c9-b0d4-868b2648d844"
  625. },
  626. "fileId": "c6ZB9GnqtG3bgxW050RnvQ",
  627. "sync": false
  628. },
  629. {
  630. "__type__": "b14e48VLB1PNJARj+zGMKSu",
  631. "_name": "",
  632. "_objFlags": 0,
  633. "node": {
  634. "__id__": 1
  635. },
  636. "_enabled": true,
  637. "backgroundNode": {
  638. "__id__": 2
  639. },
  640. "backgroundSelectedNode": {
  641. "__id__": 5
  642. },
  643. "itemNode": {
  644. "__id__": 8
  645. },
  646. "itemSprite": {
  647. "__id__": 10
  648. },
  649. "countLabel": {
  650. "__id__": 15
  651. }
  652. },
  653. {
  654. "__type__": "cc.PrefabInfo",
  655. "root": {
  656. "__id__": 1
  657. },
  658. "asset": {
  659. "__uuid__": "4e76fe21-5d04-49c9-b0d4-868b2648d844"
  660. },
  661. "fileId": "a4RCU+NcdJZ4GkqlxjR9YV",
  662. "sync": false
  663. }
  664. ]