Advertisement
Guest User

UIEditor format

a guest
Aug 23rd, 2010
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. objects
  2. add(2):Main
  3. begin
  4. rgba 0.000 0.502 0.502 1.000
  5. size 0.000 0.000 688.000 498.000
  6. bool 1 1 1 1 0 0
  7. texture ui_panel
  8. end
  9. 3
  10. add(2):Panel1
  11. begin
  12. rgba 1.000 1.000 1.000 1.000
  13. size 0.009 0.012 0.372 0.488
  14. bool 1 1 0 0 0 0
  15. texture ui_panel
  16. end
  17. 10
  18. add(4):Label1
  19. begin
  20. rgba 1.000 1.000 1.000 1.000
  21. size 0.055 0.053 0.164 0.103
  22. bool 1 1 0 0 0 0
  23. text Text
  24. font Arial1
  25. centered 0
  26. end
  27. add(5):Edit1
  28. begin
  29. rgba 1.000 1.000 1.000 1.000
  30. size 0.270 0.053 0.676 0.103
  31. bool 1 1 0 0 0 0
  32. texture ui_edit
  33. text Text value
  34. font Arial1
  35. maxlength 64
  36. centered 0
  37. end
  38. add(4):Label2
  39. begin
  40. rgba 1.000 1.000 1.000 1.000
  41. size 0.055 0.206 0.164 0.103
  42. bool 1 1 0 0 0 0
  43. text Label2
  44. font Arial1
  45. centered 0
  46. end
  47. add(4):Label3
  48. begin
  49. rgba 1.000 1.000 1.000 1.000
  50. size 0.055 0.358 0.164 0.107
  51. bool 1 1 0 0 0 0
  52. text Label3
  53. font Arial1
  54. centered 0
  55. end
  56. add(4):Label4
  57. begin
  58. rgba 1.000 1.000 1.000 1.000
  59. size 0.055 0.514 0.164 0.103
  60. bool 1 1 0 0 0 0
  61. text Label4
  62. font Arial1
  63. centered 0
  64. end
  65. add(5):Edit2
  66. begin
  67. rgba 1.000 1.000 1.000 1.000
  68. size 0.270 0.206 0.676 0.103
  69. bool 1 1 0 0 0 0
  70. texture ui_edit
  71. text Edit2
  72. font Arial1
  73. maxlength 64
  74. centered 0
  75. end
  76. add(5):Edit3
  77. begin
  78. rgba 1.000 1.000 1.000 1.000
  79. size 0.270 0.358 0.676 0.107
  80. bool 1 1 0 0 0 0
  81. texture ui_edit
  82. text Edit3
  83. font Arial1
  84. maxlength 64
  85. centered 0
  86. end
  87. add(5):Edit4
  88. begin
  89. rgba 1.000 1.000 1.000 1.000
  90. size 0.270 0.510 0.676 0.107
  91. bool 1 1 0 0 0 0
  92. texture ui_edit
  93. text Last value
  94. font Arial1
  95. maxlength 64
  96. centered 0
  97. end
  98. add(3):Button1
  99. begin
  100. rgba 0.502 1.000 1.000 1.000
  101. size 0.055 0.844 0.406 0.107
  102. bool 1 1 0 0 0 0
  103. texture ui_button
  104. text Action 1
  105. font Arial1
  106. end
  107. add(3):Button2
  108. begin
  109. rgba 1.000 1.000 0.502 0.530
  110. size 0.512 0.844 0.434 0.107
  111. bool 1 1 0 0 0 0
  112. texture ui_button
  113. text Do something
  114. font Arial1
  115. end
  116. add(2):Panel2
  117. begin
  118. rgba 1.000 1.000 1.000 1.000
  119. size 0.390 0.012 0.602 0.976
  120. bool 1 1 0 0 0 0
  121. texture ui_panel
  122. end
  123. 5
  124. add(6):List1
  125. begin
  126. rgba 1.000 1.000 1.000 1.000
  127. size 0.580 0.076 0.386 0.424
  128. bool 1 1 0 0 0 0
  129. texture ui_list
  130. font Arial1
  131. itemindex 0
  132. centered 0
  133. strings
  134. n:=n-32;
  135. tx:=(n mod 16)*sx*d1+d1;
  136. ty:=(n div 16)*sy*d1;
  137. glTexCoord2f(tx,ty);
  138. glVertex2f(x1,y1);
  139. glTexCoord2f(tx,ty+(sy-1)*d1);
  140. glVertex2i(x1,y1+sy-1);
  141. glTexCoord2f(tx+cw*d1,ty+(sy-1)*d1);
  142. glVertex2i(x1+cw,y1+sy-1);
  143. glTexCoord2f(tx+cw*d1,ty);
  144. glVertex2i(x1+cw,y1);inc(x1,cw);
  145.  
  146.  
  147. ¤end¤
  148. end
  149. add(2):Panel1
  150. begin
  151. rgba 0.890 0.894 0.949 1.000
  152. size 0.031 0.539 0.935 0.438
  153. bool 1 1 0 0 0 0
  154. texture ui_panel
  155. end
  156. 12
  157. add(3):Button1
  158. begin
  159. rgba 1.000 1.000 1.000 1.000
  160. size 14.000 13.000 105.000 32.000
  161. bool 1 1 1 1 0 0
  162. texture ui_button
  163. text First
  164. font Arial1
  165. end
  166. add(3):Button2
  167. begin
  168. rgba 1.000 1.000 1.000 1.000
  169. size 131.000 13.000 111.000 32.000
  170. bool 1 1 1 1 0 0
  171. texture ui_button
  172. text Button2
  173. font Arial1
  174. end
  175. add(3):Button3
  176. begin
  177. rgba 1.000 1.000 1.000 1.000
  178. size 255.000 13.000 118.000 32.000
  179. bool 1 1 1 1 0 0
  180. texture ui_button
  181. text Button3
  182. font Arial1
  183. end
  184. add(3):Button4
  185. begin
  186. rgba 0.643 0.875 0.725 1.000
  187. size 14.000 62.000 105.000 32.000
  188. bool 1 1 1 1 0 0
  189. texture ui_button
  190. text Button4
  191. font Arial1
  192. end
  193. add(3):Button5
  194. begin
  195. rgba 1.000 1.000 1.000 1.000
  196. size 131.000 62.000 111.000 32.000
  197. bool 1 1 1 1 0 0
  198. texture ui_button
  199. text Button5
  200. font Arial1
  201. end
  202. add(3):Button6
  203. begin
  204. rgba 0.471 0.490 0.745 0.430
  205. size 255.000 62.000 118.000 32.000
  206. bool 1 1 1 1 0 0
  207. texture ui_button
  208. text Button6
  209. font Arial1
  210. end
  211. add(3):Button7
  212. begin
  213. rgba 1.000 1.000 1.000 1.000
  214. size 14.000 112.000 105.000 32.000
  215. bool 1 1 1 1 0 0
  216. texture ui_button
  217. text Button7
  218. font Arial1
  219. end
  220. add(3):Button8
  221. begin
  222. rgba 1.000 1.000 1.000 1.000
  223. size 131.000 112.000 111.000 32.000
  224. bool 1 1 1 1 0 0
  225. texture ui_button
  226. text Button8
  227. font Arial1
  228. end
  229. add(3):Button9
  230. begin
  231. rgba 1.000 1.000 1.000 1.000
  232. size 255.000 112.000 118.000 32.000
  233. bool 1 1 1 1 0 0
  234. texture ui_button
  235. text Button9
  236. font Arial1
  237. end
  238. add(3):Button10
  239. begin
  240. rgba 1.000 1.000 1.000 1.000
  241. size 14.000 162.000 105.000 32.000
  242. bool 1 1 1 1 0 0
  243. texture ui_button
  244. text Button10
  245. font Arial1
  246. end
  247. add(3):Button11
  248. begin
  249. rgba 1.000 1.000 1.000 0.190
  250. size 131.000 162.000 111.000 32.000
  251. bool 1 1 1 1 0 0
  252. texture ui_button
  253. text Button11
  254. font Arial1
  255. end
  256. add(3):Button12
  257. begin
  258. rgba 1.000 1.000 1.000 1.000
  259. size 255.000 162.000 118.000 32.000
  260. bool 1 1 1 1 0 0
  261. texture ui_button
  262. text Last
  263. font Arial1
  264. end
  265. add(4):Label1
  266. begin
  267. rgba 1.000 1.000 1.000 1.000
  268. size 0.031 0.025 0.519 0.041
  269. bool 1 1 0 0 0 0
  270. text Memo
  271. font Arial1
  272. centered 1
  273. end
  274. add(8):Memo1
  275. begin
  276. rgba 1.000 1.000 1.000 1.000
  277. size 0.031 0.078 0.519 0.422
  278. bool 1 1 0 0 0 0
  279. texture ui_list
  280. font Arial1
  281. wrap 1
  282. strings
  283. procedure TGLFont.Draw(x, y:
  284. single; s: string; maxW: integ
  285. er);
  286. var i,cw,n,x1,y1,wLimit: intege
  287. r; d1,tx,ty: single;
  288. begin
  289. s:=UTF8toSys(s); wLimit:=0;
  290. d1:=1/TexSize; x1:=round(x);
  291. y1:=round(y);
  292. glBegin(GL_QUADS);
  293. for i:=1 to length(s) do begin
  294. n:=byte(s[i]); cw:=charW[n
  295. ];
  296. if maxW>0 then begin
  297. wLimit:=wLimit+cw;
  298. if wLimit>maxW then bre
  299. ak;
  300. end;
  301. n:=n-32; tx:=(n mod 16)*s
  302. x*d1+d1; ty:=(n div 16)*sy*d1;
  303. glTexCoord2f(tx,ty); glVert
  304. ex2f(x1,y1);
  305. glTexCoord2f(tx,ty+(sy-1)*
  306. d1); glVertex2i(x1,y1+sy-1);
  307. glTexCoord2f(tx+cw*d1,ty
  308. +(sy-1)*d1); glVertex2i(x1+cw,
  309. y1+sy-1);
  310. glTexCoord2f(tx+cw*d1,ty)
  311. ; glVertex2i(x1+cw,y1);
  312. x1:=x1+cw;
  313. end;
  314. glEnd;
  315. end;
  316.  
  317.  
  318. ¤end¤
  319. end
  320. add(4):Label2
  321. begin
  322. rgba 1.000 1.000 1.000 1.000
  323. size 0.580 0.025 0.386 0.041
  324. bool 1 1 0 0 0 0
  325. text List
  326. font Arial1
  327. centered 1
  328. end
  329. add(2):Panel3
  330. begin
  331. rgba 1.000 1.000 1.000 0.720
  332. size 0.009 0.512 0.372 0.476
  333. bool 1 1 0 0 0 0
  334. texture ui_panel
  335. end
  336. 4
  337. add(10):CheckBox1
  338. begin
  339. rgba 1.000 1.000 1.000 1.000
  340. size 0.055 0.051 0.328 0.084
  341. bool 1 1 0 0 0 0
  342. texture ui_checkbox
  343. text Option 1
  344. font Arial1
  345. checked 1
  346. group 0
  347. end
  348. add(10):CheckBox2
  349. begin
  350. rgba 1.000 1.000 1.000 1.000
  351. size 0.055 0.181 0.328 0.084
  352. bool 1 1 0 0 0 0
  353. texture ui_checkbox
  354. text Option 2
  355. font Arial1
  356. checked 0
  357. group 0
  358. end
  359. add(9):ScrollBar1
  360. begin
  361. rgba 1.000 1.000 1.000 0.810
  362. size 0.457 0.051 0.488 0.084
  363. bool 1 1 0 0 0 0
  364. max 100
  365. position 0
  366. end
  367. add(10):CheckBox3
  368. begin
  369. rgba 1.000 1.000 1.000 1.000
  370. size 0.055 0.316 0.328 0.080
  371. bool 1 1 0 0 0 0
  372. texture ui_checkbox
  373. text Option 3
  374. font Arial1
  375. checked 0
  376. group 0
  377. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement