Advertisement
Guest User

Untitled

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