1. import uiScriptLocale
  2. import item
  3. EQUIPMENT_START_INDEX = 225
  4. window = {
  5. "name" : "InventoryWindow",
  6. "x" : SCREEN_WIDTH - 176 - 38 - 72+70,
  7. "y" : SCREEN_HEIGHT - 50 - 565 -2,
  8. "style" : ("movable", "float",),
  9. "width" : 176+70,
  10. "height" : 585,
  11. "children" :
  12. (
  13. {
  14. "name" : "buttonboard",
  15. "type" : "board",
  16. "style" : ("attach",),
  17. "x" : 73 - 70,
  18. "y" : 10,
  19. "width" : 50,
  20. "height" : 120,##yükseklik bunu ayarlıyabilirsiniz
  21. "children" :
  22. (
  23. ## Title
  24. {
  25. "name" : "TitleBar",
  26. "type" : "titlebar",
  27. "style" : ("attach",),
  28. "x" : 8,
  29. "y" : 7,
  30. "width" : 80,
  31. "color" : "yellow",
  32. "children" :
  33. (
  34. { "name":"TitleName", "type":"text", "x":27, "y":3, "text":uiScriptLocale.HIZLI_MENU_TITLE, "text_horizontal_align":"center" },
  35. ),
  36. },
  37. #HZLI
  38. {
  39. "name" : "EkipmanButton",
  40. "type" : "button",
  41. "x" : 8,
  42. "y" : 9,
  43. "tooltip_x" : -45,
  44. "tooltip_y" : 0,
  45. "tooltip_text" : "Hizli Ekipman",
  46. "default_image" : "costume_01.tga",
  47. "over_image" : "costume_02.tga",
  48. "down_image" : "costume_03.tga",
  49. },
  50. #CostumeButton
  51. {
  52. "name" : "CostumeButton",
  53. "type" : "button",
  54. "x" : 8,
  55. "y" : 9+35,
  56. "tooltip_x" : -45,
  57. "tooltip_y" : 0,
  58. "tooltip_text" : "Kostüm ",
  59. "default_image" : "costume_001.tga",
  60. "over_image" : "costume_002.tga",
  61. "down_image" : "costume_003.tga",
  62. },
  63. #TAMEKRAN
  64. {
  65. "name" : "TamEkran",
  66. "type" : "button",
  67. "x" : 8,
  68. "y" : 9+35+35,
  69. "tooltip_x" : -45,
  70. "tooltip_y" : 0,
  71. "tooltip_text" : "Tam Ekran",
  72. "default_image" : "3.tga",
  73. "over_image" : "4.tga",
  74. "down_image" : "3.tga",
  75. },
  76. ),
  77. },
  78. ## Inventory, Equipment Slots
  79. {
  80. "name" : "board",
  81. "type" : "board",
  82. "style" : ("attach",),
  83. "x" : 37+45+30 - 70,
  84. "y" : 0,
  85. "width" : 176,
  86. "height" : 595,
  87. "children" :
  88. (
  89. ## Title
  90. {
  91. "name" : "TitleBar",
  92. "type" : "titlebar",
  93. "style" : ("attach",),
  94. "x" : 8,
  95. "y" : 7,
  96. "width" : 161,
  97. "color" : "yellow",
  98. "children" :
  99. (
  100. { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  101. ),
  102. },
  103. ## Equipment Slot
  104. {
  105. "name" : "Equipment_Base",
  106. "type" : "image",
  107. "x" : 10,
  108. "y" : 33,
  109. "image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
  110. "children" :
  111. (
  112. {
  113. "name" : "EquipmentSlot",
  114. "type" : "slot",
  115. "x" : 3,
  116. "y" : 3,
  117. "width" : 150,
  118. "height" : 182,
  119. "slot" : (
  120. {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  121. {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  122. {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  123. {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  124. {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  125. {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  126. {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  127. {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  128. {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  129. {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  130. {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  131. {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  132. ),
  133. },
  134. {
  135. "name" : "Sil_Slot",
  136. "type" : "grid_table",
  137. "x" : 78,
  138. "y" : 107-2,
  139. "start_index" : 0,
  140. "x_count" : 1,
  141. "y_count" : 1,
  142. "x_step" : 32,
  143. "y_step" : 32,
  144. "image" : "locale/tr/ui/config/sil_icon.tga",
  145. },
  146. ## MallButton
  147. {
  148. "name" : "MallButton",
  149. "type" : "button",
  150. "x" : 118,
  151. "y" : 148,
  152. "tooltip_text" : uiScriptLocale.MALL_TITLE,
  153. "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  154. "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  155. "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  156. },
  157. {
  158. "name" : "Kilit_Slot",
  159. "type" : "grid_table",
  160. "x" : 3,
  161. "y" : 107,
  162. "start_index" : 0,
  163. "x_count" : 1,
  164. "y_count" : 1,
  165. "x_step" : 34,
  166. "y_step" : 32,
  167. "image" : "locale/tr/ui/config/kilit_icon.tga",
  168. "tooltip_text" : "Item Kilitle",
  169. },
  170. # CostumeButton
  171. {
  172. "name" : "CostumeButton",
  173. "type" : "button",
  174. "x" : 78,
  175. "y" : 5,
  176. "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  177. "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  178. "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  179. "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  180. },
  181. {
  182. "name" : "Equipment_Tab_01",
  183. "type" : "radio_button",
  184. "x" : 86,
  185. "y" : 161,
  186. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  187. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  188. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  189. "children" :
  190. (
  191. {
  192. "name" : "Equipment_Tab_01_Print",
  193. "type" : "text",
  194. "x" : 0,
  195. "y" : 0,
  196. "all_align" : "center",
  197. "text" : "I",
  198. },
  199. ),
  200. },
  201. {
  202. "name" : "Equipment_Tab_02",
  203. "type" : "radio_button",
  204. "x" : 86 + 32,
  205. "y" : 161,
  206. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  207. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  208. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  209. "children" :
  210. (
  211. {
  212. "name" : "Equipment_Tab_02_Print",
  213. "type" : "text",
  214. "x" : 0,
  215. "y" : 0,
  216. "all_align" : "center",
  217. "text" : "II",
  218. },
  219. ),
  220. },
  221. ),
  222. },
  223. {
  224. "name" : "Inventory_Tab_01",
  225. "type" : "radio_button",
  226. "x" : 7,
  227. "y" : 33 + 191,
  228. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  229. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  230. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  231. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  232. "children" :
  233. (
  234. {
  235. "name" : "Inventory_Tab_01_Print",
  236. "type" : "text",
  237. "x" : 0,
  238. "y" : 0,
  239. "all_align" : "center",
  240. "text" : "I",
  241. },
  242. ),
  243. },
  244. {
  245. "name" : "Inventory_Tab_02",
  246. "type" : "radio_button",
  247. "x" : 7 + 32,
  248. "y" : 33 + 191,
  249. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  250. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  251. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  252. "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  253. "children" :
  254. (
  255. {
  256. "name" : "Inventory_Tab_02_Print",
  257. "type" : "text",
  258. "x" : 0,
  259. "y" : 0,
  260. "all_align" : "center",
  261. "text" : "II",
  262. },
  263. ),
  264. },
  265. {
  266. "name" : "Inventory_Tab_03",
  267. "type" : "radio_button",
  268. "x" : 7 + 32*2,
  269. "y" : 33 + 191,
  270. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  271. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  272. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  273. "tooltip_text" : "3. Envanter",
  274. "children" :
  275. (
  276. {
  277. "name" : "Inventory_Tab_03_Print",
  278. "type" : "text",
  279. "x" : 0,
  280. "y" : 0,
  281. "all_align" : "center",
  282. "text" : "III",
  283. },
  284. ),
  285. },
  286. {
  287. "name" : "Inventory_Tab_04",
  288. "type" : "radio_button",
  289. "x" : 7 + 32*3,
  290. "y" : 33 + 191,
  291. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  292. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  293. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  294. "tooltip_text" : "4. Envanter",
  295. "children" :
  296. (
  297. {
  298. "name" : "Inventory_Tab_04_Print",
  299. "type" : "text",
  300. "x" : 0,
  301. "y" : 0,
  302. "all_align" : "center",
  303. "text" : "IV",
  304. },
  305. ),
  306. },
  307. {
  308. "name" : "Inventory_Tab_05",
  309. "type" : "radio_button",
  310. "x" : 7 + 32*4,
  311. "y" : 33 + 191,
  312. "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  313. "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  314. "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  315. "tooltip_text" : "5. Envanter",
  316. "children" :
  317. (
  318. {
  319. "name" : "Inventory_Tab_05_Print",
  320. "type" : "text",
  321. "x" : 0,
  322. "y" : 0,
  323. "all_align" : "center",
  324. "text" : "V",
  325. },
  326. ),
  327. },
  328. ## Item Slot
  329. {
  330. "name" : "ItemSlot",
  331. "type" : "grid_table",
  332. "x" : 8,
  333. "y" : 246,
  334. "start_index" : 0,
  335. "x_count" : 5,
  336. "y_count" : 9,
  337. "x_step" : 32,
  338. "y_step" : 32,
  339. "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  340. },
  341. ## Print
  342. ## Print
  343. {
  344. "name":"Money_Slot",
  345. "type":"button",
  346. "x":8,
  347. "y":28+10-5,
  348. "horizontal_align":"center",
  349. "vertical_align":"bottom",
  350. "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  351. "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  352. "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  353. "children" :
  354. (
  355. {
  356. "name":"Money_Icon",
  357. "type":"image",
  358. "x":-18,
  359. "y":2,
  360. "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  361. },
  362. {
  363. "name" : "Money",
  364. "type" : "text",
  365. "x" : 3,
  366. "y" : 3,
  367. "horizontal_align" : "right",
  368. "text_horizontal_align" : "right",
  369. "text" : "123456789",
  370. },
  371. ),
  372. },
  373. ),
  374. },
  375. ),
  376. }