1. import uiScriptLocale
  2. import item
  3. COSTUME_START_INDEX = item.COSTUME_SLOT_START
  4. window = {
  5. "name" : "CostumeWindow",
  6. "x" : SCREEN_WIDTH - 175 - 140,
  7. "y" : SCREEN_HEIGHT - 37 - 565,
  8. "style" : ("movable", "float",),
  9. "width" : 140,
  10. "height" : 180,
  11. "children" :
  12. (
  13. {
  14. "name" : "board",
  15. "type" : "board",
  16. "style" : ("attach",),
  17. "x" : 0,
  18. "y" : 0,
  19. "width" : 140,
  20. "height" : 180,
  21. "children" :
  22. (
  23. ## Title
  24. {
  25. "name" : "TitleBar",
  26. "type" : "titlebar",
  27. "style" : ("attach",),
  28. "x" : 6,
  29. "y" : 6,
  30. "width" : 130,
  31. "color" : "yellow",
  32. "children" :
  33. (
  34. { "name":"TitleName", "type":"text", "x":60, "y":3, "text":uiScriptLocale.COSTUME_WINDOW_TITLE, "text_horizontal_align":"center" },
  35. ),
  36. },
  37. ## Equipment Slot
  38. {
  39. "name" : "Costume_Base",
  40. "type" : "image",
  41. "x" : 13,
  42. "y" : 38,
  43. "image" : "d:/ymir work/ui/new_costume_bg.jpg",
  44. "children" :
  45. (
  46. {
  47. "name" : "CostumeSlot",
  48. "type" : "slot",
  49. "x" : 3,
  50. "y" : 3,
  51. "width" : 127,
  52. "height" : 145,
  53. "slot" : (
  54. {"index":COSTUME_START_INDEX+0, "x":61, "y":45, "width":32, "height":64},
  55. {"index":COSTUME_START_INDEX+1, "x":61, "y": 8, "width":32, "height":32},
  56. {"index":COSTUME_START_INDEX+2, "x":5, "y":145, "width":32, "height":32},
  57. ),
  58. },
  59. ),
  60. },
  61. {
  62. "name" : "costume",
  63. "type" : "button",
  64. "x" : 44,
  65. "y" : 167,
  66. "default_image" : "d:/ymir work/ui/game/windows/tab_button_middle_01.sub",
  67. "over_image" : "d:/ymir work/ui/game/windows/tab_button_middle_02.sub",
  68. "down_image" : "d:/ymir work/ui/game/windows/tab_button_middle_03.sub",
  69. "children" :
  70. (
  71. {
  72. "name" : "costume2",
  73. "type" : "text",
  74. "x" : 0,
  75. "y" : 0,
  76. "all_align" : "center",
  77. "text" : "Costume Change",
  78. },
  79. ),
  80. },
  81. ),
  82. },
  83. ),
  84. }