Guest User

Untitled

a guest
Sep 22nd, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. ROOT = "d:/ymir work/ui/game/"
  4.  
  5. window = {
  6. "name" : "ExchangeDialog",
  7.  
  8. "x" : 0,
  9. "y" : 0,
  10.  
  11. "style" : ("movable", "float",),
  12.  
  13. "width" : 282,
  14. "height" : 263,
  15.  
  16. "children" :
  17. (
  18. {
  19. "name" : "board",
  20. "type" : "board",
  21. "style" : ("attach",),
  22.  
  23. "x" : 0,
  24. "y" : 0,
  25.  
  26. "width" : 282,
  27. "height" : 263,
  28.  
  29. "children" :
  30. (
  31. {
  32. "name" : "TitleBar",
  33. "type" : "titlebar",
  34. "style" : ("attach",),
  35.  
  36. "x" : 8,
  37. "y" : 8,
  38.  
  39. "width" : 266,
  40. "color" : "gray",
  41.  
  42. "children" :
  43. (
  44. { "name":"TitleName", "type":"text", "x":133, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
  45. ),
  46. },
  47.  
  48. {
  49. "name" : "Middle_Bar",
  50. "type" : "image",
  51.  
  52. "x" : 139,
  53. "y" : 31,
  54.  
  55. "image" : ROOT + "windows/middlebar.sub",
  56. },
  57.  
  58. {
  59. "name" : "Middle_Bar2",
  60. "type" : "image",
  61.  
  62. "x" : 139,
  63. "y" : 95,
  64.  
  65. "image" : ROOT + "windows/middlebar.sub",
  66. },
  67.  
  68. {
  69. "name" : "Owner",
  70. "type" : "window",
  71.  
  72. "x" : 144,
  73. "y" : 33,
  74.  
  75. "width" : 130,
  76. "height" : 130 + 96,
  77.  
  78. "children" :
  79. (
  80. {
  81. "name" : "Owner_Slot",
  82. "type" : "grid_table",
  83.  
  84. "x" : 0,
  85. "y" : 0,
  86.  
  87. "start_index" : 0,
  88. "x_count" : 4,
  89. "y_count" : 6,
  90. "x_step" : 32,
  91. "y_step" : 32,
  92. "x_blank" : 0,
  93. "y_blank" : 0,
  94.  
  95.  
  96. "image" : "d:/ymir work/ui/public/slot_base.sub",
  97. },
  98. {
  99. "name" : "Owner_Money",
  100. "type" : "button",
  101.  
  102. "x" : 0,
  103. "y" : 198,
  104.  
  105. "default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  106. "over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  107. "down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  108.  
  109. "children" :
  110. (
  111. {
  112. "name" : "Owner_Money_Value",
  113. "type" : "text",
  114.  
  115. "x" : 59,
  116. "y" : 2,
  117.  
  118. "text" : "1234567",
  119.  
  120. "text_horizontal_align" : "right",
  121. },
  122. ),
  123. },
  124. {
  125. "name" : "Owner_Accept_Light",
  126. "type" : "toggle_button",
  127.  
  128. "x" : 62,
  129. "y" : 197,
  130.  
  131. "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
  132. "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
  133. "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
  134. },
  135. {
  136. "name" : "Owner_Accept_Button",
  137. "type" : "toggle_button",
  138.  
  139. "x" : 85,
  140. "y" : 197,
  141.  
  142. "text" : uiScriptLocale.EXCHANGE_ACCEPT,
  143.  
  144. "default_image" : "d:/ymir work/ui/public/small_button_01.sub",
  145. "over_image" : "d:/ymir work/ui/public/small_button_02.sub",
  146. "down_image" : "d:/ymir work/ui/public/small_button_03.sub",
  147. },
  148. ),
  149. },
  150.  
  151. {
  152. "name" : "Target",
  153. "type" : "window",
  154.  
  155. "x" : 10,
  156. "y" : 33,
  157.  
  158. "width" : 130,
  159. "height" : 130 + 96,
  160.  
  161. "children" :
  162. (
  163. {
  164. "name" : "Target_Slot",
  165. "type" : "grid_table",
  166.  
  167. "x" : 0,
  168. "y" : 0,
  169.  
  170. "start_index" : 0,
  171. "x_count" : 4,
  172. "y_count" : 6,
  173. "x_step" : 32,
  174. "y_step" : 32,
  175. "x_blank" : 0,
  176. "y_blank" : 0,
  177.  
  178. "image" : "d:/ymir work/ui/public/slot_base.sub",
  179. },
  180. {
  181. "name" : "Target_Money",
  182. "type" : "image",
  183.  
  184. "x" : 0,
  185. "y" : 198,
  186.  
  187. "image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  188.  
  189. "children" :
  190. (
  191. {
  192. "name" : "Target_Money_Value",
  193. "type" : "text",
  194.  
  195. "x" : 59,
  196. "y" : 2,
  197.  
  198. "text" : "1234567",
  199.  
  200. "text_horizontal_align" : "right",
  201. },
  202. ),
  203. },
  204. {
  205. "name" : "Target_Accept_Light",
  206. "type" : "toggle_button",
  207.  
  208. "x" : 62,
  209. "y" : 197,
  210.  
  211. "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
  212. "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
  213. "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
  214. },
  215. ),
  216. },
  217. ),
  218. },
  219. ),
  220. }
Advertisement
Add Comment
Please, Sign In to add comment