1. import uiScriptLocale
  2. LOCALE_PATH = uiScriptLocale.WINDOWS_PATH
  3. ROOT_PATH = "d:/ymir work/ui/game/windows/"
  4. ROOT = "d:/ymir work/ui/game/"
  5. PET_UI_ROOT = "d:/ymir work/ui/pet/"
  6. MINI_WINDOW_WIDTH = 111
  7. MINI_WINDOW_HEIGHT = 44
  8. ## Slot File
  9. BASE_SLOT_FILE = "d:/ymir work/ui/public/slot_base.sub"
  10. PET_MINI_INFO_SLOT_FILE = "d:/ymir work/ui/pet/mini_window/pet_slot_corver.sub"
  11. ## EXP Gague interval
  12. EXP_GAGUE_INTERVAL = 2
  13. EXP_GAGUE_SCALE = 0.8
  14. EXP_IMG_WIDTH = 16 * EXP_GAGUE_SCALE
  15. EXP_IMG_HEIGHT = 16 * EXP_GAGUE_SCALE
  16. ##LifeTime Gauge
  17. LIFE_TIME_SCALE_X = 0.536
  18. LIFE_TIME_SCALE_Y = 0.636
  19. ## Skill Slot
  20. SKILL_SLOT_SCALE_X = 0.5
  21. SKILL_SLOT_SCALE_Y = 0.5
  22. window = {
  23. "name" : "PetMiniInformationWindow",
  24. "style" : ("movable", "float",),
  25. "x" : 10,
  26. "y" : SCREEN_HEIGHT - 150,
  27. "width" : MINI_WINDOW_WIDTH,
  28. "height" : MINI_WINDOW_HEIGHT,
  29. "children" :
  30. (
  31. ## Pet Mini Information Window Back Ground
  32. {
  33. "name" : "main_bg",
  34. "type" : "expanded_image",
  35. "style" : ("attach",),
  36. "x" : 0,
  37. "y" : 0,
  38. "image" : "d:/ymir work/ui/pet/mini_window/pet_mini_info_back.sub",
  39. "width" : MINI_WINDOW_WIDTH,
  40. "height" : MINI_WINDOW_HEIGHT,
  41. },
  42. ## Icon Slot
  43. {
  44. "name" : "icon_base",
  45. "type" : "window",
  46. "style" : ("attach",),
  47. "x" : 0,
  48. "y" : 0,
  49. "width" : 32 + 3,
  50. "height" : MINI_WINDOW_HEIGHT,
  51. "children" :
  52. (
  53. ## Main Slot Img
  54. {
  55. "name" : "main_slot_img",
  56. "type" : "expanded_image",
  57. "style" : ("attach",),
  58. "x" : 3,
  59. "y" : 3,
  60. "image" : PET_MINI_INFO_SLOT_FILE,
  61. "width" : 32,
  62. "height" : 38,
  63. },
  64. ## Main Slot
  65. {
  66. "name" : "pet_icon_slot",
  67. "type" : "slot",
  68. #"style" : ("attach",),
  69. "x" : 3,
  70. "y" : 6,
  71. "width" : 35,
  72. "height" : MINI_WINDOW_HEIGHT,
  73. "slot" : ({"index":0, "x":0, "y":0, "width":32, "height":32,},),
  74. },
  75. ## Main Slot Effect
  76. {
  77. "name" : "pet_icon_slot_ani_img",
  78. "type" : "ani_image",
  79. "style" : ("attach",),
  80. "x" : 3,
  81. "y" : 3,
  82. "delay" : 6,
  83. "images" :
  84. (
  85. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect1.sub",
  86. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect2.sub",
  87. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect3.sub",
  88. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect4.sub",
  89. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect5.sub",
  90. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect6.sub",
  91. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect6.sub",
  92. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect6.sub",
  93. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect5.sub",
  94. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect4.sub",
  95. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect3.sub",
  96. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect2.sub",
  97. "D:/Ymir Work/UI/pet/mini_window/main_slot_effect/main_slot_effect1.sub",
  98. ),
  99. },
  100. ),
  101. },
  102. ## EXP Gauge
  103. {
  104. "name" : "pet_mini_info_exp_gauge_board",
  105. "type" : "window",
  106. "style": ("ltr",),
  107. "x" : 36,
  108. "y" : 3,
  109. "width" : 72,
  110. "height" : 13,
  111. "children" :
  112. (
  113. {
  114. "name" : "pet_mini_EXPGauge_01",
  115. "type" : "expanded_image",
  116. "style" : ("attach",),
  117. "x_scale" : EXP_GAGUE_SCALE,
  118. "y_scale" : EXP_GAGUE_SCALE,
  119. "x" : 0,
  120. "y" : 0,
  121. "image" : PET_UI_ROOT + "exp_gauge/exp_on.sub",
  122. },
  123. {
  124. "name" : "pet_mini_EXPGauge_02",
  125. "type" : "expanded_image",
  126. "style" : ("attach",),
  127. "x_scale" : EXP_GAGUE_SCALE,
  128. "y_scale" : EXP_GAGUE_SCALE,
  129. "x" : EXP_IMG_WIDTH + EXP_GAGUE_INTERVAL,
  130. "y" : 0,
  131. "image" : PET_UI_ROOT + "exp_gauge/exp_on.sub",
  132. },
  133. {
  134. "name" : "pet_mini_EXPGauge_03",
  135. "type" : "expanded_image",
  136. "style" : ("attach",),
  137. "x_scale" : EXP_GAGUE_SCALE,
  138. "y_scale" : EXP_GAGUE_SCALE,
  139. "x" : EXP_IMG_WIDTH * 2 + EXP_GAGUE_INTERVAL * 2,
  140. "y" : 0,
  141. "image" : PET_UI_ROOT + "exp_gauge/exp_on.sub",
  142. },
  143. {
  144. "name" : "pet_mini_EXPGauge_04",
  145. "type" : "expanded_image",
  146. "style" : ("attach",),
  147. "x_scale" : EXP_GAGUE_SCALE,
  148. "y_scale" : EXP_GAGUE_SCALE,
  149. "x" : EXP_IMG_WIDTH * 3 + EXP_GAGUE_INTERVAL * 3,
  150. "y" : 0,
  151. "image" : PET_UI_ROOT + "exp_gauge/exp_on.sub",
  152. },
  153. {
  154. "name" : "pet_mini_EXPGauge_05",
  155. "type" : "expanded_image",
  156. "style" : ("attach",),
  157. "x_scale" : EXP_GAGUE_SCALE,
  158. "y_scale" : EXP_GAGUE_SCALE,
  159. "x" : EXP_IMG_WIDTH * 4 + EXP_GAGUE_INTERVAL * 4,
  160. "y" : 0,
  161. "image" : PET_UI_ROOT + "exp_gauge/item_exp_on.sub",
  162. },
  163. ),
  164. }, #End of EXP
  165. ## LIFE Time Gauge Bar
  166. {
  167. "name" : "LifeGaugeWindow", "type" : "window", "x" : 36, "y":17, "width" : 71, "height" : 7, "style" : ("attach",),
  168. "children" :
  169. (
  170. ## left img
  171. {
  172. "name" : "gauge_left",
  173. "type" : "expanded_image",
  174. "style" : ("attach",),
  175. "x" : 0,
  176. "y" : 0,
  177. "image" : "D:/Ymir Work/UI/Pattern/gauge_slot_left.tga",
  178. },
  179. ## right img
  180. {
  181. "name" : "gauge_right",
  182. "type" : "expanded_image",
  183. "style" : ("attach",),
  184. "x" : 55,
  185. "y" : 0,
  186. "image" : "D:/Ymir Work/UI/Pattern/gauge_slot_right.tga",
  187. },
  188. ## center img
  189. {
  190. "name" : "gauge_center",
  191. "type" : "expanded_image",
  192. "style" : ("attach",),
  193. "x" : 10,
  194. "y" : 0,
  195. "x_scale" : 3.1875,
  196. "y_scale" : 1.0,
  197. "image" : "D:/Ymir Work/UI/Pattern/gauge_slot_center.tga",
  198. },
  199. ## red gauge
  200. {
  201. "name" : "LifeGauge",
  202. "type" : "ani_image",
  203. "style" : ("attach",),
  204. "x" : 10,
  205. "y" : 0,
  206. "x_scale" : LIFE_TIME_SCALE_X,
  207. "y_scale" : LIFE_TIME_SCALE_Y,
  208. "delay" : 6,
  209. "images" :
  210. (
  211. "D:/Ymir Work/UI/Pattern/HPGauge/01.tga",
  212. "D:/Ymir Work/UI/Pattern/HPGauge/02.tga",
  213. "D:/Ymir Work/UI/Pattern/HPGauge/03.tga",
  214. "D:/Ymir Work/UI/Pattern/HPGauge/04.tga",
  215. "D:/Ymir Work/UI/Pattern/HPGauge/05.tga",
  216. "D:/Ymir Work/UI/Pattern/HPGauge/06.tga",
  217. "D:/Ymir Work/UI/Pattern/HPGauge/07.tga",
  218. ),
  219. },
  220. ),
  221. }, ## End of LIFE Time Gauge Bar
  222. ## Skill Slot 1
  223. {
  224. "name" : "mini_skill_slot0",
  225. "type" : "slot",
  226. "style" : ("attach",),
  227. "x" : 0,
  228. "y" : 0,
  229. "width" : 16,
  230. "height" : 16,
  231. "x_scale" : SKILL_SLOT_SCALE_X,
  232. "y_scale" : SKILL_SLOT_SCALE_Y,
  233. "image" : BASE_SLOT_FILE,
  234. "slot" : ({"index":0, "x":36, "y":25, "width":16, "height":16,},{"index":1, "x":56, "y":25, "width":16, "height":16,},{"index":2, "x":76, "y":25, "width":16, "height":16,},),
  235. },
  236. {
  237. "name" : "pet_mini_info_exp_gauge_board1",
  238. "type" : "window",
  239. "style": ("ltr",),
  240. "x" : 36,
  241. "y" : 3,
  242. "width" : 72,
  243. "height" : 13,
  244. },
  245. ),
  246. }