Advertisement
Guest User

dungeoninfowindow.py

a guest
May 24th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.10 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. MAINBOARD_WIDTH = 535 + 4
  4. MAINBOARD_HEIGHT = 431
  5.  
  6. LEFTBOARD_WIDTH = 291
  7. LEFTBOARD_HEIGHT = 382
  8. LEFTBOARD_X = 13
  9. LEFTBOARD_Y = 36
  10.  
  11. RIGHTBOARD_WIDTH = 196
  12. RIGHTBOARD_HEIGHT = 382
  13. RIGHTBOARD_X = 328 + 1
  14. RIGHTBOARD_Y = 36
  15.  
  16. window = {
  17. "name" : "DungeonInfoWindow",
  18. "style" : ("movable", "float",),
  19.  
  20. "x" : 0,
  21. "y" : 0,
  22.  
  23. "width" : MAINBOARD_WIDTH,
  24. "height" : MAINBOARD_HEIGHT,
  25.  
  26. "children" :
  27. (
  28. #######################
  29. ## DUNGEON_BOARD ##
  30. {
  31. "name" : "DungeonBoard",
  32. "type" : "board",
  33. "style" : ("attach", "ltr"),
  34.  
  35. "x" : 0,
  36. "y" : 0,
  37.  
  38. "width" : MAINBOARD_WIDTH,
  39. "height" : MAINBOARD_HEIGHT,
  40.  
  41. "children" :
  42. (
  43. ################################
  44. ## DUNGEON_BOARD_TITLEBAR ##
  45. {
  46. "name" : "DungeonBoardTitleBar",
  47. "type" : "titlebar",
  48. "style" : ("attach",),
  49.  
  50. "x" : 6,
  51. "y" : 7,
  52.  
  53. "width" : MAINBOARD_WIDTH - 13,
  54.  
  55. "children" :
  56. (
  57. {
  58. "name" : "TitleName",
  59. "type" : "text",
  60.  
  61. "x" : 0,
  62. "y" : -2,
  63.  
  64. "text": uiScriptLocale.DUNGEON_INFO,
  65. "all_align":"center"
  66. },
  67. ),
  68. },
  69. ## DUNGEON_BOARD_TITLEBAR ##
  70. ################################
  71.  
  72. ##############################
  73. ## DUNGEON_BUTTON_BOARD ##
  74. {
  75. "name" : "DungeonButtonThinBoard",
  76. "type" : "thinboard",
  77.  
  78. "x" : LEFTBOARD_X - 4,
  79. "y" : LEFTBOARD_Y - 4,
  80.  
  81. "width" : LEFTBOARD_WIDTH + 8,
  82. "height" : LEFTBOARD_HEIGHT + 8,
  83. },
  84. {
  85. "name" : "DungeonButtonBoard",
  86. "type" : "board",
  87.  
  88. "x" : LEFTBOARD_X,
  89. "y" : LEFTBOARD_Y,
  90.  
  91. "width" : LEFTBOARD_WIDTH,
  92. "height" : LEFTBOARD_HEIGHT,
  93.  
  94. "children" :
  95. (
  96. ## logininfo.py
  97. ),
  98. },
  99. ## DUNGEON_BUTTON_BOARD ##
  100. ##############################
  101.  
  102. ########################################
  103. ## DUNGEON_BUTTON_BOARD_SCROLLBAR ##
  104. {
  105. "name" : "ScrollBar",
  106. "type" : "scrollbar",
  107.  
  108. "x" : LEFTBOARD_WIDTH + 18,
  109. "y" : 32,
  110.  
  111. "size" : LEFTBOARD_HEIGHT + 9,
  112. },
  113. ## DUNGEON_BUTTON_BOARD_SCROLLBAR ##
  114. ########################################
  115.  
  116. ############################
  117. ## DUNGEON_INFO_BOARD ##
  118. {
  119. "name" : "DungeonInfoThinBoard",
  120. "type" : "thinboard",
  121.  
  122. "x" : RIGHTBOARD_X - 4,
  123. "y" : RIGHTBOARD_Y - 4,
  124.  
  125. "width" : RIGHTBOARD_WIDTH + 8,
  126. "height" : RIGHTBOARD_HEIGHT + 8,
  127. },
  128. {
  129. "name" : "DungeonInfoBoard",
  130. "type" : "image",
  131.  
  132. "x" : RIGHTBOARD_X,
  133. "y" : RIGHTBOARD_Y,
  134.  
  135. #"width" : RIGHTBOARD_WIDTH,
  136. #"height" : RIGHTBOARD_HEIGHT,
  137.  
  138. "image" : "d:/ymir work/ui/game/dungeon_info/dungeon_bg2.tga",
  139.  
  140. "children" :
  141. (
  142. ## Title Bar
  143. {
  144. "name" : "DungeonInfoTitleBar",
  145. "type" : "image",
  146.  
  147. "x" : 332 - RIGHTBOARD_X,
  148. "y" : 39 - RIGHTBOARD_Y,
  149.  
  150. "image" : "d:/ymir work/ui/game/myshop_deco/model_view_title.sub",
  151.  
  152. "children" :
  153. (
  154. {
  155. "name" : "DungeonInfoName",
  156. "type" : "text",
  157.  
  158. "x" : 0,
  159. "y" : 0,
  160.  
  161. "text" : uiScriptLocale.DUNGEON_INFO_DUNGEON,
  162. "color" : 0xFFFEE3AE,
  163. "fontname" : "Tahoma:17",
  164. "all_align" : "center"
  165. },
  166. ),
  167. },
  168.  
  169. ## Dungeon Type
  170. {
  171. "name" : "DungeonInfoType",
  172. "type" : "text",
  173.  
  174. "x" : 10,
  175. "y" : 30 * 1,
  176.  
  177. "text" : uiScriptLocale.DUNGEON_INFO_TYPE,
  178. },
  179.  
  180. ## Dungeon Organization
  181. {
  182. "name" : "DungeonInfoOrganization",
  183. "type" : "text",
  184.  
  185. "x" : 10,
  186. "y" : 30 + 20 * 1,
  187.  
  188. "text" : uiScriptLocale.DUNGEON_INFO_ORGANIZATION,
  189. },
  190.  
  191. ## Dungeon Level Limit
  192. {
  193. "name" : "DungeonInfoLevelLimit",
  194. "type" : "text",
  195.  
  196. "x" : 10,
  197. "y" : 30 + 20 * 2,
  198.  
  199. "text" : uiScriptLocale.DUNGEON_INFO_LEVEL_LIMIT,
  200. },
  201.  
  202. ## Dungeon Party Members
  203. {
  204. "name" : "DungeonInfoPartyMembers",
  205. "type" : "text",
  206.  
  207. "x" : 10,
  208. "y" : 30 + 20 * 3,
  209.  
  210. "text" : uiScriptLocale.DUNGEON_INFO_PARTY_MEMBERS,
  211. },
  212.  
  213. ## Dungeon Cooldown
  214. {
  215. "name" : "DungeonInfoCooldown",
  216. "type" : "text",
  217.  
  218. "x" : 10,
  219. "y" : 30 + 20 * 4,
  220.  
  221. "text" : uiScriptLocale.DUNGEON_INFO_COOLDOWN,
  222. },
  223.  
  224. ## Dungeon Duration
  225. {
  226. "name" : "DungeonInfoDuration",
  227. "type" : "text",
  228.  
  229. "x" : 10,
  230. "y" : 30 + 20 * 5,
  231.  
  232. "text" : uiScriptLocale.DUNGEON_INFO_DURATION,
  233. },
  234.  
  235. ## Dungeon Entrance
  236. {
  237. "name" : "DungeonInfoEntrance",
  238. "type" : "text",
  239.  
  240. "x" : 10,
  241. "y" : 30 + 20 * 6,
  242.  
  243. "text" : uiScriptLocale.DUNGEON_INFO_ENTRANCE,
  244. },
  245.  
  246. ## Dungeon Strength Bonus
  247. {
  248. "name" : "DungeonInfoStrengthBonus",
  249. "type" : "text",
  250.  
  251. "x" : 10,
  252. "y" : 30 + 20 * 7,
  253.  
  254. "text" : uiScriptLocale.DUNGEON_INFO_STRENGTH,
  255. },
  256.  
  257. ## Dungeon Resistance Bonus
  258. {
  259. "name" : "DungeonInfoResistanceBonus",
  260. "type" : "text",
  261.  
  262. "x" : 10,
  263. "y" : 30 + 20 * 8,
  264.  
  265. "text" : uiScriptLocale.DUNGEON_INFO_RESISTANCE,
  266. },
  267.  
  268. ## Dungeon Personal Stats
  269. {
  270. "name" : "DungeonInfoPersonal",
  271. "type" : "image",
  272.  
  273. "x" : -5,
  274. "y" : RIGHTBOARD_HEIGHT / 2 + 15,
  275.  
  276. "image" : "d:/ymir work/ui/pattern/seperator.tga",
  277.  
  278. "children" :
  279. (
  280. # Personal Stats
  281. {
  282. "name" : "DungeonInfoPersonalStats",
  283. "type" : "text",
  284.  
  285. "x" : 0,
  286. "y" : -5,
  287.  
  288. "text" : uiScriptLocale.DUNGEON_INFO_PERSONAL_STATS,
  289. "color" : 0xFFFEE3AE,
  290. "all_align" : "center",
  291. },
  292. ),
  293. },
  294.  
  295. ## Personal Stats - Total Finished
  296. {
  297. "name" : "DungeonInfoTotalFinished",
  298. "type" : "text",
  299.  
  300. "x" : 10,
  301. "y" : 30 + 20 * 9 + 30,
  302.  
  303. "text" : uiScriptLocale.DUNGEON_INFO_TOTAL_FINISHED,
  304. },
  305.  
  306. ## Personal Stats - Fastest Time
  307. {
  308. "name" : "DungeonInfoFastestTime",
  309. "type" : "text",
  310.  
  311. "x" : 10,
  312. "y" : 30 + 20 * 10 + 30,
  313.  
  314. "text" : uiScriptLocale.DUNGEON_INFO_FASTEST_TIME,
  315. },
  316.  
  317. ## Personal Stats - Highest DMG
  318. {
  319. "name" : "DungeonInfoHighestDamage",
  320. "type" : "text",
  321.  
  322. "x" : 10,
  323. "y" : 30 + 20 * 11 + 30,
  324.  
  325. "text" : uiScriptLocale.DUNGEON_INFO_HIGHEST_DAMAGE,
  326. },
  327.  
  328. ## Special Item Slot BG
  329. {
  330. "name" : "DungeonInfoItem",
  331. "type" : "expanded_image",
  332. "style" : ("attach",),
  333.  
  334. "x" : RIGHTBOARD_WIDTH - 50,
  335. "y" : RIGHTBOARD_HEIGHT - 50,
  336.  
  337. "image" : "d:/ymir work/ui/minigame/fish_event/fish_special_slot.sub",
  338.  
  339. "children" :
  340. (
  341. ## Special Item Slot
  342. {
  343. "name" : "DungeonInfoItemSlot",
  344. "type" : "image",
  345.  
  346. "x" : 7,
  347. "y" : 7,
  348. "width" : 32,
  349. "height" : 32,
  350.  
  351. "image" : "d:/ymir work/ui/pet/skill_button/skill_enable_button.sub",
  352. },
  353. ),
  354. },
  355.  
  356. ## Rank buttons
  357. {
  358. "name" : "DungeonRank1Button",
  359. "type" : "button",
  360.  
  361. "x" : RIGHTBOARD_WIDTH /2 - 95,
  362. "y" : RIGHTBOARD_HEIGHT - 80,
  363.  
  364. "tooltip_text" : uiScriptLocale.DUNGEON_RANKING_TYPE1,
  365. "tooltip_x" : 0,
  366. "tooltip_y" : -13,
  367.  
  368. "default_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/king_button00.sub",
  369. "over_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/king_button01.sub",
  370. "down_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/king_button02.sub",
  371. },
  372. {
  373. "name" : "DungeonRank2Button",
  374. "type" : "button",
  375.  
  376. "x" : RIGHTBOARD_WIDTH /2 - 95 + 65,
  377. "y" : RIGHTBOARD_HEIGHT - 80,
  378.  
  379. "tooltip_text" : uiScriptLocale.DUNGEON_RANKING_TYPE2,
  380. "tooltip_x" : 0,
  381. "tooltip_y" : -13,
  382.  
  383. "default_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/time_button00.sub",
  384. "over_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/time_button01.sub",
  385. "down_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/time_button02.sub",
  386. },
  387. {
  388. "name" : "DungeonRank3Button",
  389. "type" : "button",
  390.  
  391. "x" : RIGHTBOARD_WIDTH /2 - 95 + 65 + 65,
  392. "y" : RIGHTBOARD_HEIGHT - 80,
  393.  
  394. "tooltip_text" : uiScriptLocale.DUNGEON_RANKING_TYPE3,
  395. "tooltip_x" : 0,
  396. "tooltip_y" : -13,
  397.  
  398. "default_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/tiger_button00.sub",
  399. "over_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/tiger_button01.sub",
  400. "down_image" : "d:/ymir work/ui/game/guild/guildbuttons/declareselectpage/tiger_button02.sub",
  401. },
  402.  
  403. # Teleport & Close buttons
  404. {
  405. "name" : "DungeonInfoTeleportButton",
  406. "type" : "button",
  407.  
  408. "x" : RIGHTBOARD_WIDTH /2 - 85,
  409. "y" : RIGHTBOARD_HEIGHT - 25 - 25,
  410.  
  411. "text" : uiScriptLocale.DUNGEON_INFO_TELEPORT,
  412. "default_image" : "d:/ymir work/ui/pet/feed_button/feed_button_default.sub",
  413. "over_image" : "d:/ymir work/ui/pet/feed_button/feed_button_over.sub",
  414. "down_image" : "d:/ymir work/ui/pet/feed_button/feed_button_down.sub",
  415. },
  416. {
  417. "name" : "CloseDungeonBoard",
  418. "type" : "button",
  419.  
  420. "x" : RIGHTBOARD_WIDTH /2 - 85,
  421. "y" : RIGHTBOARD_HEIGHT - 25,
  422.  
  423. "text" : uiScriptLocale.DUNGEON_INFO_CLOSE,
  424. "default_image" : "d:/ymir work/ui/pet/feed_button/feed_button_default.sub",
  425. "over_image" : "d:/ymir work/ui/pet/feed_button/feed_button_over.sub",
  426. "down_image" : "d:/ymir work/ui/pet/feed_button/feed_button_down.sub",
  427. },
  428. ),
  429. },
  430. ## DUNGEON_INFO_BOARD ##
  431. ############################
  432. ),
  433. },
  434. ## DUNGEON_BOARD ##
  435. #######################
  436. ),
  437. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement