ui.json 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. {
  2. "fonts": [
  3. ],
  4. "images": [
  5. {
  6. "abso_filename": "C:/Users/luatTest/Pictures/Saved Pictures/rabbit.png",
  7. "colorFormat": "RGBA",
  8. "rela_filename": "img/rabbit.png"
  9. }
  10. ],
  11. "pages": [
  12. {
  13. "children": [
  14. {
  15. "class": "lv_textarea",
  16. "click": true,
  17. "cursor blink time": 400,
  18. "cursor position": 49,
  19. "drag": false,
  20. "edge flash": false,
  21. "events": [
  22. ],
  23. "geometry": {
  24. "height": 62,
  25. "width": 227,
  26. "x": 107,
  27. "y": 64
  28. },
  29. "hidden": false,
  30. "locked": false,
  31. "max length": 0,
  32. "name": "text_area_1",
  33. "one line mode": false,
  34. "password mode": false,
  35. "placeholder": "",
  36. "scroll propagation": false,
  37. "scrollbars": "Drag",
  38. "styles": [
  39. {
  40. "Text": {
  41. "text_font": "123abc 16"
  42. },
  43. "part": 0,
  44. "state": 0
  45. },
  46. {
  47. "Text": {
  48. "text_font": "123abc 16"
  49. },
  50. "part": 0,
  51. "state": 1
  52. },
  53. {
  54. "Text": {
  55. "text_font": "123abc 16"
  56. },
  57. "part": 0,
  58. "state": 2
  59. },
  60. {
  61. "Text": {
  62. "text_font": "123abc 16"
  63. },
  64. "part": 0,
  65. "state": 3
  66. },
  67. {
  68. "Text": {
  69. "text_font": "123abc 16"
  70. },
  71. "part": 0,
  72. "state": 4
  73. },
  74. {
  75. "Text": {
  76. "text_font": "123abc 16"
  77. },
  78. "part": 0,
  79. "state": 5
  80. },
  81. {
  82. "Text": {
  83. "text_font": "123abc 16"
  84. },
  85. "part": 0,
  86. "state": 6
  87. },
  88. {
  89. "part": 1,
  90. "state": 0
  91. },
  92. {
  93. "part": 1,
  94. "state": 1
  95. },
  96. {
  97. "part": 1,
  98. "state": 2
  99. },
  100. {
  101. "part": 1,
  102. "state": 3
  103. },
  104. {
  105. "part": 1,
  106. "state": 4
  107. },
  108. {
  109. "part": 1,
  110. "state": 5
  111. },
  112. {
  113. "part": 1,
  114. "state": 6
  115. },
  116. {
  117. "part": 2,
  118. "state": 0
  119. },
  120. {
  121. "part": 2,
  122. "state": 1
  123. },
  124. {
  125. "part": 2,
  126. "state": 2
  127. },
  128. {
  129. "part": 2,
  130. "state": 3
  131. },
  132. {
  133. "part": 2,
  134. "state": 4
  135. },
  136. {
  137. "part": 2,
  138. "state": 5
  139. },
  140. {
  141. "part": 2,
  142. "state": 6
  143. },
  144. {
  145. "part": 3,
  146. "state": 0
  147. },
  148. {
  149. "part": 3,
  150. "state": 1
  151. },
  152. {
  153. "part": 3,
  154. "state": 2
  155. },
  156. {
  157. "part": 3,
  158. "state": 3
  159. },
  160. {
  161. "part": 3,
  162. "state": 4
  163. },
  164. {
  165. "part": 3,
  166. "state": 5
  167. },
  168. {
  169. "part": 3,
  170. "state": 6
  171. },
  172. {
  173. "Text": {
  174. "text_font": "123abc 16"
  175. },
  176. "part": 4,
  177. "state": 0
  178. },
  179. {
  180. "Text": {
  181. "text_font": "123abc 16"
  182. },
  183. "part": 4,
  184. "state": 1
  185. },
  186. {
  187. "Text": {
  188. "text_font": "123abc 16"
  189. },
  190. "part": 4,
  191. "state": 2
  192. },
  193. {
  194. "Text": {
  195. "text_font": "123abc 16"
  196. },
  197. "part": 4,
  198. "state": 3
  199. },
  200. {
  201. "Text": {
  202. "text_font": "123abc 16"
  203. },
  204. "part": 4,
  205. "state": 4
  206. },
  207. {
  208. "Text": {
  209. "text_font": "123abc 16"
  210. },
  211. "part": 4,
  212. "state": 5
  213. },
  214. {
  215. "Text": {
  216. "text_font": "123abc 16"
  217. },
  218. "part": 4,
  219. "state": 6
  220. }
  221. ],
  222. "text": "Here is a test project,do you know how to use it?",
  223. "text align": "Left",
  224. "type": "Text area"
  225. },
  226. {
  227. "checkable": false,
  228. "class": "lv_btn",
  229. "click": true,
  230. "drag": false,
  231. "events": [
  232. ],
  233. "fit": "None",
  234. "geometry": {
  235. "height": 35,
  236. "width": 100,
  237. "x": 115,
  238. "y": 200
  239. },
  240. "hidden": false,
  241. "layout": "Center",
  242. "locked": false,
  243. "name": "button_1",
  244. "state": "Released",
  245. "style": "Custome Style",
  246. "styles": [
  247. {
  248. "Value": {
  249. "value_font": "123abc 16",
  250. "value_str": "YES"
  251. },
  252. "part": 0,
  253. "state": 0
  254. },
  255. {
  256. "Value": {
  257. "value_font": "123abc 16",
  258. "value_str": "YES"
  259. },
  260. "part": 0,
  261. "state": 1
  262. },
  263. {
  264. "Value": {
  265. "value_font": "123abc 16",
  266. "value_str": "YES"
  267. },
  268. "part": 0,
  269. "state": 2
  270. },
  271. {
  272. "Value": {
  273. "value_font": "123abc 16",
  274. "value_str": "YES"
  275. },
  276. "part": 0,
  277. "state": 3
  278. },
  279. {
  280. "Value": {
  281. "value_font": "123abc 16",
  282. "value_str": "YES"
  283. },
  284. "part": 0,
  285. "state": 4
  286. },
  287. {
  288. "Value": {
  289. "value_font": "123abc 16",
  290. "value_str": "YES"
  291. },
  292. "part": 0,
  293. "state": 5
  294. },
  295. {
  296. "Value": {
  297. "value_font": "123abc 16",
  298. "value_str": "YES"
  299. },
  300. "part": 0,
  301. "state": 6
  302. }
  303. ],
  304. "type": "Button"
  305. },
  306. {
  307. "checkable": false,
  308. "class": "lv_btn",
  309. "click": true,
  310. "drag": false,
  311. "events": [
  312. ],
  313. "fit": "None",
  314. "geometry": {
  315. "height": 35,
  316. "width": 100,
  317. "x": 271,
  318. "y": 201
  319. },
  320. "hidden": false,
  321. "layout": "Center",
  322. "locked": false,
  323. "name": "button_2",
  324. "state": "Released",
  325. "style": "Custome Style",
  326. "styles": [
  327. {
  328. "Value": {
  329. "value_font": "123abc 16",
  330. "value_str": "NO"
  331. },
  332. "part": 0,
  333. "state": 0
  334. },
  335. {
  336. "Value": {
  337. "value_font": "123abc 16",
  338. "value_str": "NO"
  339. },
  340. "part": 0,
  341. "state": 1
  342. },
  343. {
  344. "Value": {
  345. "value_font": "123abc 16",
  346. "value_str": "NO"
  347. },
  348. "part": 0,
  349. "state": 2
  350. },
  351. {
  352. "Value": {
  353. "value_font": "123abc 16",
  354. "value_str": "NO"
  355. },
  356. "part": 0,
  357. "state": 3
  358. },
  359. {
  360. "Value": {
  361. "value_font": "123abc 16",
  362. "value_str": "NO"
  363. },
  364. "part": 0,
  365. "state": 4
  366. },
  367. {
  368. "Value": {
  369. "value_font": "123abc 16",
  370. "value_str": "NO"
  371. },
  372. "part": 0,
  373. "state": 5
  374. },
  375. {
  376. "Value": {
  377. "value_font": "123abc 16",
  378. "value_str": "NO"
  379. },
  380. "part": 0,
  381. "state": 6
  382. }
  383. ],
  384. "type": "Button"
  385. },
  386. {
  387. "brightness": 255,
  388. "class": "lv_led",
  389. "click": true,
  390. "drag": false,
  391. "events": [
  392. ],
  393. "geometry": {
  394. "height": 43,
  395. "width": 43,
  396. "x": 142,
  397. "y": 251
  398. },
  399. "hidden": false,
  400. "locked": false,
  401. "name": "led_1",
  402. "styles": [
  403. {
  404. "Background": {
  405. "bg_color": "0x00ff00"
  406. },
  407. "part": 0,
  408. "state": 0
  409. },
  410. {
  411. "Background": {
  412. "bg_color": "0x00ff00"
  413. },
  414. "part": 0,
  415. "state": 1
  416. },
  417. {
  418. "Background": {
  419. "bg_color": "0x00ff00"
  420. },
  421. "part": 0,
  422. "state": 2
  423. },
  424. {
  425. "Background": {
  426. "bg_color": "0x00ff00"
  427. },
  428. "part": 0,
  429. "state": 3
  430. },
  431. {
  432. "Background": {
  433. "bg_color": "0x00ff00"
  434. },
  435. "part": 0,
  436. "state": 4
  437. },
  438. {
  439. "Background": {
  440. "bg_color": "0x00ff00"
  441. },
  442. "part": 0,
  443. "state": 5
  444. },
  445. {
  446. "Background": {
  447. "bg_color": "0x00ff00"
  448. },
  449. "part": 0,
  450. "state": 6
  451. }
  452. ],
  453. "switch": "On",
  454. "type": "LED"
  455. },
  456. {
  457. "brightness": 255,
  458. "class": "lv_led",
  459. "click": true,
  460. "drag": false,
  461. "events": [
  462. ],
  463. "geometry": {
  464. "height": 43,
  465. "width": 43,
  466. "x": 302,
  467. "y": 252
  468. },
  469. "hidden": false,
  470. "locked": false,
  471. "name": "led_2",
  472. "styles": [
  473. {
  474. "Background": {
  475. "bg_color": "0xff0000"
  476. },
  477. "part": 0,
  478. "state": 0
  479. },
  480. {
  481. "Background": {
  482. "bg_color": "0xff0000"
  483. },
  484. "part": 0,
  485. "state": 1
  486. },
  487. {
  488. "Background": {
  489. "bg_color": "0xff0000"
  490. },
  491. "part": 0,
  492. "state": 2
  493. },
  494. {
  495. "Background": {
  496. "bg_color": "0xff0000"
  497. },
  498. "part": 0,
  499. "state": 3
  500. },
  501. {
  502. "Background": {
  503. "bg_color": "0xff0000"
  504. },
  505. "part": 0,
  506. "state": 4
  507. },
  508. {
  509. "Background": {
  510. "bg_color": "0xff0000"
  511. },
  512. "part": 0,
  513. "state": 5
  514. },
  515. {
  516. "Background": {
  517. "bg_color": "0xff0000"
  518. },
  519. "part": 0,
  520. "state": 6
  521. }
  522. ],
  523. "switch": "Off",
  524. "type": "LED"
  525. }
  526. ],
  527. "events": [
  528. ],
  529. "geometry": {
  530. "height": 320,
  531. "width": 480,
  532. "x": 0,
  533. "y": 0
  534. },
  535. "name": "mainpage",
  536. "styles": [
  537. {
  538. "bg_color": "0xff5500",
  539. "disable": false,
  540. "part": 0,
  541. "state": 0
  542. }
  543. ],
  544. "type": "screen",
  545. "visible": true
  546. }
  547. ],
  548. "project_name": "demo_1-2",
  549. "project_settings": {
  550. "color_depth": 32,
  551. "keyBoard": {
  552. "chinese_input": false,
  553. "chinese_library": "mini",
  554. "display_kb": false,
  555. "keyboard_font_size": 18,
  556. "keyboard_font_type": "SourceHanSerifSC_Regular"
  557. },
  558. "resolution": {
  559. "height": 320,
  560. "width": 480
  561. },
  562. "screen_retated": 90
  563. },
  564. "ui_version": "8.1.0",
  565. "version": "1.0.0"
  566. }