button.prefab 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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. "readonly": false
  13. },
  14. {
  15. "__type__": "cc.Node",
  16. "_name": "button",
  17. "_objFlags": 0,
  18. "_parent": null,
  19. "_children": [
  20. {
  21. "__id__": 2
  22. }
  23. ],
  24. "_active": true,
  25. "_level": 1,
  26. "_components": [
  27. {
  28. "__id__": 9
  29. }
  30. ],
  31. "_prefab": {
  32. "__id__": 10
  33. },
  34. "_opacity": 255,
  35. "_color": {
  36. "__type__": "cc.Color",
  37. "r": 255,
  38. "g": 255,
  39. "b": 255,
  40. "a": 255
  41. },
  42. "_contentSize": {
  43. "__type__": "cc.Size",
  44. "width": 100,
  45. "height": 40
  46. },
  47. "_anchorPoint": {
  48. "__type__": "cc.Vec2",
  49. "x": 0.5,
  50. "y": 0.5
  51. },
  52. "_position": {
  53. "__type__": "cc.Vec3",
  54. "x": 0,
  55. "y": 0,
  56. "z": 0
  57. },
  58. "_scale": {
  59. "__type__": "cc.Vec3",
  60. "x": 1,
  61. "y": 1,
  62. "z": 1
  63. },
  64. "_eulerAngles": {
  65. "__type__": "cc.Vec3",
  66. "x": 0,
  67. "y": 0,
  68. "z": 0
  69. },
  70. "_skewX": 0,
  71. "_skewY": 0,
  72. "_is3DNode": false,
  73. "groupIndex": 0,
  74. "_id": ""
  75. },
  76. {
  77. "__type__": "cc.Node",
  78. "_name": "Background",
  79. "_objFlags": 0,
  80. "_parent": {
  81. "__id__": 1
  82. },
  83. "_children": [
  84. {
  85. "__id__": 3
  86. }
  87. ],
  88. "_active": true,
  89. "_level": 2,
  90. "_components": [
  91. {
  92. "__id__": 6
  93. },
  94. {
  95. "__id__": 7
  96. }
  97. ],
  98. "_prefab": {
  99. "__id__": 8
  100. },
  101. "_opacity": 255,
  102. "_color": {
  103. "__type__": "cc.Color",
  104. "r": 255,
  105. "g": 255,
  106. "b": 255,
  107. "a": 255
  108. },
  109. "_contentSize": {
  110. "__type__": "cc.Size",
  111. "width": 100,
  112. "height": 40
  113. },
  114. "_anchorPoint": {
  115. "__type__": "cc.Vec2",
  116. "x": 0.5,
  117. "y": 0.5
  118. },
  119. "_position": {
  120. "__type__": "cc.Vec3",
  121. "x": 0,
  122. "y": 0,
  123. "z": 0
  124. },
  125. "_scale": {
  126. "__type__": "cc.Vec3",
  127. "x": 1,
  128. "y": 1,
  129. "z": 1
  130. },
  131. "_eulerAngles": {
  132. "__type__": "cc.Vec3",
  133. "x": 0,
  134. "y": 0,
  135. "z": 0
  136. },
  137. "_skewX": 0,
  138. "_skewY": 0,
  139. "_is3DNode": false,
  140. "groupIndex": 0,
  141. "_id": ""
  142. },
  143. {
  144. "__type__": "cc.Node",
  145. "_name": "Label",
  146. "_objFlags": 0,
  147. "_parent": {
  148. "__id__": 2
  149. },
  150. "_children": [],
  151. "_active": true,
  152. "_level": 3,
  153. "_components": [
  154. {
  155. "__id__": 4
  156. }
  157. ],
  158. "_prefab": {
  159. "__id__": 5
  160. },
  161. "_opacity": 255,
  162. "_color": {
  163. "__type__": "cc.Color",
  164. "r": 0,
  165. "g": 0,
  166. "b": 0,
  167. "a": 255
  168. },
  169. "_contentSize": {
  170. "__type__": "cc.Size",
  171. "width": 100,
  172. "height": 40
  173. },
  174. "_anchorPoint": {
  175. "__type__": "cc.Vec2",
  176. "x": 0.5,
  177. "y": 0.5
  178. },
  179. "_position": {
  180. "__type__": "cc.Vec3",
  181. "x": 0,
  182. "y": 0,
  183. "z": 0
  184. },
  185. "_scale": {
  186. "__type__": "cc.Vec3",
  187. "x": 1,
  188. "y": 1,
  189. "z": 1
  190. },
  191. "_eulerAngles": {
  192. "__type__": "cc.Vec3",
  193. "x": 0,
  194. "y": 0,
  195. "z": 0
  196. },
  197. "_skewX": 0,
  198. "_skewY": 0,
  199. "_is3DNode": false,
  200. "groupIndex": 0,
  201. "_id": ""
  202. },
  203. {
  204. "__type__": "cc.Label",
  205. "_name": "",
  206. "_objFlags": 0,
  207. "node": {
  208. "__id__": 3
  209. },
  210. "_enabled": true,
  211. "_materials": [
  212. {
  213. "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
  214. }
  215. ],
  216. "_useOriginalSize": false,
  217. "_string": "button",
  218. "_N$string": "button",
  219. "_fontSize": 20,
  220. "_lineHeight": 40,
  221. "_enableWrapText": false,
  222. "_N$file": null,
  223. "_isSystemFontUsed": true,
  224. "_spacingX": 0,
  225. "_batchAsBitmap": false,
  226. "_N$horizontalAlign": 1,
  227. "_N$verticalAlign": 1,
  228. "_N$fontFamily": "Arial",
  229. "_N$overflow": 1,
  230. "_N$cacheMode": 0,
  231. "_id": ""
  232. },
  233. {
  234. "__type__": "cc.PrefabInfo",
  235. "root": {
  236. "__id__": 1
  237. },
  238. "asset": {
  239. "__uuid__": "972b9a4d-47ee-4c74-b5c3-61d8a69bc29f"
  240. },
  241. "fileId": "89ZOGI9GxIA7ukuWhMzutw",
  242. "sync": false
  243. },
  244. {
  245. "__type__": "cc.Sprite",
  246. "_name": "",
  247. "_objFlags": 0,
  248. "node": {
  249. "__id__": 2
  250. },
  251. "_enabled": true,
  252. "_materials": [
  253. {
  254. "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
  255. }
  256. ],
  257. "_srcBlendFactor": 770,
  258. "_dstBlendFactor": 771,
  259. "_spriteFrame": {
  260. "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
  261. },
  262. "_type": 1,
  263. "_sizeMode": 0,
  264. "_fillType": 0,
  265. "_fillCenter": {
  266. "__type__": "cc.Vec2",
  267. "x": 0,
  268. "y": 0
  269. },
  270. "_fillStart": 0,
  271. "_fillRange": 0,
  272. "_isTrimmedMode": true,
  273. "_atlas": null,
  274. "_id": ""
  275. },
  276. {
  277. "__type__": "cc.Widget",
  278. "_name": "",
  279. "_objFlags": 0,
  280. "node": {
  281. "__id__": 2
  282. },
  283. "_enabled": true,
  284. "alignMode": 0,
  285. "_target": null,
  286. "_alignFlags": 45,
  287. "_left": 0,
  288. "_right": 0,
  289. "_top": 0,
  290. "_bottom": 0,
  291. "_verticalCenter": 0,
  292. "_horizontalCenter": 0,
  293. "_isAbsLeft": true,
  294. "_isAbsRight": true,
  295. "_isAbsTop": true,
  296. "_isAbsBottom": true,
  297. "_isAbsHorizontalCenter": true,
  298. "_isAbsVerticalCenter": true,
  299. "_originalWidth": 100,
  300. "_originalHeight": 40,
  301. "_id": ""
  302. },
  303. {
  304. "__type__": "cc.PrefabInfo",
  305. "root": {
  306. "__id__": 1
  307. },
  308. "asset": {
  309. "__uuid__": "972b9a4d-47ee-4c74-b5c3-61d8a69bc29f"
  310. },
  311. "fileId": "abgf9KGgdMsahHlBHOj/Jv",
  312. "sync": false
  313. },
  314. {
  315. "__type__": "cc.Button",
  316. "_name": "",
  317. "_objFlags": 0,
  318. "node": {
  319. "__id__": 1
  320. },
  321. "_enabled": true,
  322. "duration": 0.1,
  323. "zoomScale": 1.2,
  324. "clickEvents": [],
  325. "_N$interactable": true,
  326. "_N$enableAutoGrayEffect": false,
  327. "_N$transition": 2,
  328. "transition": 2,
  329. "_N$normalColor": {
  330. "__type__": "cc.Color",
  331. "r": 230,
  332. "g": 230,
  333. "b": 230,
  334. "a": 255
  335. },
  336. "_N$pressedColor": {
  337. "__type__": "cc.Color",
  338. "r": 200,
  339. "g": 200,
  340. "b": 200,
  341. "a": 255
  342. },
  343. "pressedColor": {
  344. "__type__": "cc.Color",
  345. "r": 200,
  346. "g": 200,
  347. "b": 200,
  348. "a": 255
  349. },
  350. "_N$hoverColor": {
  351. "__type__": "cc.Color",
  352. "r": 255,
  353. "g": 255,
  354. "b": 255,
  355. "a": 255
  356. },
  357. "hoverColor": {
  358. "__type__": "cc.Color",
  359. "r": 255,
  360. "g": 255,
  361. "b": 255,
  362. "a": 255
  363. },
  364. "_N$disabledColor": {
  365. "__type__": "cc.Color",
  366. "r": 120,
  367. "g": 120,
  368. "b": 120,
  369. "a": 200
  370. },
  371. "_N$normalSprite": {
  372. "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
  373. },
  374. "_N$pressedSprite": {
  375. "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
  376. },
  377. "pressedSprite": {
  378. "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
  379. },
  380. "_N$hoverSprite": {
  381. "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
  382. },
  383. "hoverSprite": {
  384. "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
  385. },
  386. "_N$disabledSprite": {
  387. "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
  388. },
  389. "_N$target": {
  390. "__id__": 2
  391. },
  392. "_id": ""
  393. },
  394. {
  395. "__type__": "cc.PrefabInfo",
  396. "root": {
  397. "__id__": 1
  398. },
  399. "asset": {
  400. "__uuid__": "972b9a4d-47ee-4c74-b5c3-61d8a69bc29f"
  401. },
  402. "fileId": "59d3ePxgxhP17q/bKZe2Mkj",
  403. "sync": false
  404. }
  405. ]