eri000n

Untitled

Apr 7th, 2023
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3.  
  4. COSTUME_START_INDEX = item.COSTUME_SLOT_START
  5.  
  6. window = {
  7. "name" : "CostumeWindow",
  8.  
  9. "x" : SCREEN_WIDTH - 175 - 140,
  10. "y" : SCREEN_HEIGHT - 37 - 565,
  11.  
  12. "style" : ("movable", "float",),
  13.  
  14. "width" : 140,
  15. "height" : (180 + 47), #기존보다 47 길어짐
  16.  
  17. "children" :
  18. (
  19. {
  20. "name" : "board",
  21. "type" : "board",
  22. "style" : ("attach",),
  23.  
  24. "x" : 0,
  25. "y" : 0,
  26.  
  27. "width" : 140,
  28. "height" : (180 + 47),
  29.  
  30. "children" :
  31. (
  32. ## Title
  33. {
  34. "name" : "TitleBar",
  35. "type" : "titlebar",
  36. "style" : ("attach",),
  37.  
  38. "x" : 6,
  39. "y" : 6,
  40.  
  41. "width" : 130,
  42. "color" : "yellow",
  43.  
  44. "children" :
  45. (
  46. { "name":"TitleName", "type":"text", "x":60, "y":3, "text":uiScriptLocale.COSTUME_WINDOW_TITLE, "text_horizontal_align":"center" },
  47. ),
  48. },
  49.  
  50. ## Equipment Slot
  51. {
  52. "name" : "Costume_Base",
  53. "type" : "image",
  54.  
  55. "x" : 13,
  56. "y" : 38,
  57.  
  58. "image" : "d:/ymir work/ui/costume/new_costume_bg.jpg",
  59.  
  60. "children" :
  61. (
  62.  
  63. {
  64. "name" : "CostumeSlot",
  65. "type" : "slot",
  66.  
  67. "x" : 3,
  68. "y" : 3,
  69.  
  70. "width" : 127,
  71. "height" : 145 + 47,
  72.  
  73. "slot" : (
  74. {"index":COSTUME_START_INDEX+0, "x":61, "y":45, "width":32, "height":64},#몸
  75. {"index":COSTUME_START_INDEX+1, "x":61, "y": 8, "width":32, "height":32},#머리
  76. {"index":COSTUME_START_INDEX+2, "x":13, "y":13, "width":32, "height":32},#마운트
  77. {"index":COSTUME_START_INDEX+3, "x":61, "y":125, "width":32, "height":32},
  78. {"index":COSTUME_START_INDEX+4, "x":10, "y":125, "width":32, "height":32},
  79. {"index":item.COSTUME_SLOT_WEAPON, "x":5, "y":37, "width":32, "height":32},#무기
  80. ),
  81. },
  82. ## ENABLE_HIDE_COSTUME_SYSTEM
  83. {
  84. "name" : "BodyToolTipButton",
  85. "type" : "toggle_button",
  86.  
  87. "x" : 62 + 32 - 10,
  88. "y" : 45 - 5,
  89. "tooltip_text" : uiScriptLocale.HIDE_COSTUME,
  90.  
  91. "default_image" : "d:/ymir work/ui/pattern/visible_mark_01.tga",
  92. "over_image" : "d:/ymir work/ui/pattern/visible_mark_02.tga",
  93. "down_image" : "d:/ymir work/ui/pattern/visible_mark_03.tga",
  94. },
  95. {
  96. "name" : "HairToolTipButton",
  97. "type" : "toggle_button",
  98.  
  99. "x" : 62 + 32 -6,
  100. "y" : 9 - 3,
  101. "tooltip_text" : uiScriptLocale.HIDE_COSTUME,
  102.  
  103. "default_image" : "d:/ymir work/ui/pattern/visible_mark_01.tga",
  104. "over_image" : "d:/ymir work/ui/pattern/visible_mark_02.tga",
  105. "down_image" : "d:/ymir work/ui/pattern/visible_mark_03.tga",
  106. },
  107. {
  108. "name" : "SashToolTipButton",
  109. "type" : "toggle_button",
  110.  
  111. "x" : 62 + 32,
  112. "y" : 126,
  113. "tooltip_text" : uiScriptLocale.HIDE_COSTUME,
  114.  
  115. "default_image" : "d:/ymir work/ui/pattern/visible_mark_01.tga",
  116. "over_image" : "d:/ymir work/ui/pattern/visible_mark_02.tga",
  117. "down_image" : "d:/ymir work/ui/pattern/visible_mark_03.tga",
  118. },
  119. {
  120. "name" : "WeaponToolTipButton",
  121. "type" : "toggle_button",
  122.  
  123. "x" : 13 + 32 - 6,
  124. "y" : 13,
  125. "tooltip_text" : uiScriptLocale.HIDE_COSTUME,
  126.  
  127. "default_image" : "d:/ymir work/ui/pattern/visible_mark_01.tga",
  128. "over_image" : "d:/ymir work/ui/pattern/visible_mark_02.tga",
  129. "down_image" : "d:/ymir work/ui/pattern/visible_mark_03.tga",
  130. },
  131. ),
  132. },
  133. ),
  134. },
  135. ),
  136. }
  137.  
  138.  
Advertisement
Add Comment
Please, Sign In to add comment