Guest User

costumewindow.py

a guest
Apr 8th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3. import app
  4.  
  5. COSTUME_START_INDEX = item.COSTUME_SLOT_START
  6.  
  7. window = {
  8. "name" : "CostumeWindow",
  9.  
  10. "x" : SCREEN_WIDTH - 175 - 140,
  11. "y" : SCREEN_HEIGHT - 37 - 565,
  12.  
  13. "style" : ("movable", "float",),
  14.  
  15. "width" : 140,
  16. "height" : (180 + 75),
  17.  
  18. "children" :
  19. (
  20. {
  21. "name" : "board",
  22. "type" : "board",
  23. "style" : ("attach",),
  24.  
  25. "x" : 0,
  26. "y" : 0,
  27.  
  28. "width" : 140,
  29. "height" : (180 + 75),
  30.  
  31. "children" :
  32. (
  33. ## Title
  34. {
  35. "name" : "TitleBar",
  36. "type" : "titlebar",
  37. "style" : ("attach",),
  38.  
  39. "x" : 6,
  40. "y" : 6,
  41.  
  42. "width" : 130,
  43. "color" : "yellow",
  44.  
  45. "children" :
  46. (
  47. { "name":"TitleName", "type":"text", "x":60, "y":3, "text":uiScriptLocale.COSTUME_WINDOW_TITLE, "text_horizontal_align":"center" },
  48. ),
  49. },
  50.  
  51. ## Equipment Slot
  52. {
  53. "name" : "Costume_Base",
  54. "type" : "image",
  55.  
  56. "x" : 13,
  57. "y" : 34,
  58.  
  59. "image" : "d:/ymir work/ui/game/interfata/costume.png",
  60.  
  61. "children" :
  62. (
  63.  
  64. {
  65. "name" : "CostumeSlot",
  66. "type" : "slot",
  67.  
  68. "x" : 3,
  69. "y" : 3,
  70.  
  71. "width" : 127,
  72. "height" : 175,
  73.  
  74. "slot" : (
  75. {"index":COSTUME_START_INDEX+0, "x":60, "y":67, "width":32, "height":64}, # ARMURA
  76. {"index":COSTUME_START_INDEX+1, "x":60, "y": 18, "width":32, "height":32}, #FRIZURA
  77. {"index":COSTUME_START_INDEX+2, "x":3, "y":154, "width":32, "height":32}, # MOUNT
  78. {"index":COSTUME_START_INDEX+3, "x":59, "y":154, "width":32, "height":32}, #ESARFA
  79. {"index":item.COSTUME_SLOT_WEAPON, "x":5, "y":35, "width":32, "height":96}, #ARMA
  80. {"index":COSTUME_START_INDEX+5, "x":3, "y":154, "width":32, "height":32}, # arma
  81. {"index":COSTUME_START_INDEX+6, "x":59, "y":154, "width":32, "height":32}, #armura
  82. ),
  83. },
  84. ),
  85. },
  86. ),
  87. },
  88. ),
  89. }
  90.  
Advertisement
Add Comment
Please, Sign In to add comment