1. import app
  2. import uiScriptLocale
  3. ROOT = "d:/ymir work/ui/minimap/"
  4. window = {
  5. "name" : "MiniMap",
  6. "x" : SCREEN_WIDTH - 136,
  7. "y" : 0,
  8. "width" : 136,
  9. "height" : 137,
  10. "children" :
  11. (
  12. ## OpenWindow
  13. {
  14. "name" : "OpenWindow",
  15. "type" : "window",
  16. "x" : 0,
  17. "y" : 0,
  18. "width" : 136,
  19. "height" : 137,
  20. "children" :
  21. (
  22. {
  23. "name" : "OpenWindowBGI",
  24. "type" : "image",
  25. "x" : 0,
  26. "y" : 0,
  27. "image" : ROOT + "minimap.sub",
  28. },
  29. {
  30. "name" : "Vectors1",
  31. "type" : "text",
  32. "text_horizontal_align" : "center",
  33. "outline" : 1,
  34. "x" : 70,
  35. "y" : 185,
  36. "text" : "",
  37. },
  38. ## MiniMapWindow
  39. {
  40. "name" : "MiniMapWindow",
  41. "type" : "window",
  42. "x" : 4,
  43. "y" : 5,
  44. "width" : 128,
  45. "height" : 128,
  46. },
  47. ## ScaleUpButton
  48. {
  49. "name" : "ScaleUpButton",
  50. "type" : "button",
  51. "x" : 101,
  52. "y" : 116,
  53. "default_image" : ROOT + "minimap_scaleup_default.sub",
  54. "over_image" : ROOT + "minimap_scaleup_over.sub",
  55. "down_image" : ROOT + "minimap_scaleup_down.sub",
  56. },
  57. ## ScaleDownButton
  58. {
  59. "name" : "ScaleDownButton",
  60. "type" : "button",
  61. "x" : 115,
  62. "y" : 103,
  63. "default_image" : ROOT + "minimap_scaledown_default.sub",
  64. "over_image" : ROOT + "minimap_scaledown_over.sub",
  65. "down_image" : ROOT + "minimap_scaledown_down.sub",
  66. },
  67. ## MiniMapHideButton
  68. {
  69. "name" : "MiniMapHideButton",
  70. "type" : "button",
  71. "x" : 111,
  72. "y" : 6,
  73. "default_image" : ROOT + "minimap_close_default.sub",
  74. "over_image" : ROOT + "minimap_close_over.sub",
  75. "down_image" : ROOT + "minimap_close_down.sub",
  76. },
  77. ## AtlasShowButton
  78. {
  79. "name" : "AtlasShowButton",
  80. "type" : "button",
  81. "x" : 12,
  82. "y" : 12,
  83. "default_image" : ROOT + "atlas_open_default.sub",
  84. "over_image" : ROOT + "atlas_open_over.sub",
  85. "down_image" : ROOT + "atlas_open_down.sub",
  86. },
  87. ## BattleButton
  88. {
  89. "name" : "BattleButton",
  90. "type" : "button",
  91. "x" : 6,
  92. "y" : 105,
  93. "default_image" : ROOT + "battle_open_default.tga",
  94. "over_image" : ROOT + "battle_open_over.tga",
  95. "down_image" : ROOT + "battle_open_down.tga",
  96. },
  97. ## ServerInfo
  98. {
  99. "name" : "ServerInfo",
  100. "type" : "text",
  101. "text_horizontal_align" : "center",
  102. "outline" : 1,
  103. "x" : 70,
  104. "y" : 140,
  105. "text" : "",
  106. },
  107. ## PositionInfo
  108. {
  109. "name" : "PositionInfo",
  110. "type" : "text",
  111. "text_horizontal_align" : "center",
  112. "outline" : 1,
  113. "x" : 70,
  114. "y" : 200,
  115. "text" : "",
  116. },
  117. ## ObserverCount
  118. {
  119. "name" : "ObserverCount",
  120. "type" : "text",
  121. "text_horizontal_align" : "center",
  122. "outline" : 1,
  123. "x" : 70,
  124. "y" : 180,
  125. "text" : "",
  126. },
  127. ),
  128. },
  129. {
  130. "name" : "MastWindow",
  131. "type" : "thinboard",
  132. "x" : 35,
  133. "y" : 160,
  134. "width" : 105,
  135. "height" : 37,
  136. "children" :
  137. (
  138. {
  139. "name" : "MastText",
  140. "type" : "text",
  141. "text_horizontal_align" : "center",
  142. "x" : 35,
  143. "y" : 8,
  144. "text" : uiScriptLocale.DEFANCE_WAWE_MAST_TEXT,
  145. },
  146. {
  147. "name" : "MastHp",
  148. "type" : "gauge",
  149. "x" : 10,
  150. "y" : 23,
  151. "width" : 85,
  152. "color" : "red",
  153. "tooltip_text" : uiScriptLocale.DEFANCE_WAWE_GAUGE_TOOLTIP,
  154. },
  155. ),
  156. },
  157. {
  158. "name" : "CloseWindow",
  159. "type" : "window",
  160. "x" : 0,
  161. "y" : 0,
  162. "width" : 132,
  163. "height" : 48,
  164. "children" :
  165. (
  166. ## ShowButton
  167. {
  168. "name" : "MiniMapShowButton",
  169. "type" : "button",
  170. "x" : 100,
  171. "y" : 4,
  172. "default_image" : ROOT + "minimap_open_default.sub",
  173. "over_image" : ROOT + "minimap_open_default.sub",
  174. "down_image" : ROOT + "minimap_open_default.sub",
  175. },
  176. ),
  177. },
  178. ),
  179. }

AstroMetin2