Guest User

Untitled

a guest
Oct 29th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.39 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.                 ## Equipment Slot
  50.                 {
  51.                     "name" : "Costume_Base",
  52.                     "type" : "image",
  53.  
  54.                     "x" : 13,
  55.                     "y" : 38,
  56.                
  57.                     "image" : "d:/ymir work/ui/costume/new_costume_bg.jpg",
  58.  
  59.                     "children" :
  60.                     (
  61.                         {
  62.                             "name" : "CostumeSlot",
  63.                             "type" : "slot",
  64.  
  65.                             "x" : 3,
  66.                             "y" : 3,
  67.  
  68.                             "width" : 127,
  69.                             "height" : 145 + 47,
  70.  
  71.                             "slot" : (
  72.                                         {"index":COSTUME_START_INDEX+0, "x":62, "y":45, "width":32, "height":64},#몸
  73.                                         {"index":COSTUME_START_INDEX+1, "x":62, "y": 9, "width":32, "height":32},#머리
  74.                                         {"index":COSTUME_START_INDEX+2, "x":13, "y":126, "width":32, "height":32},#마운트
  75.                                         {"index":COSTUME_START_INDEX+3, "x":62, "y":126, "width":32, "height":32},#악세서리
  76.                                         {"index":item.COSTUME_SLOT_WEAPON, "x":13, "y":13, "width":32, "height":96},#무기
  77.                                     ),
  78.                         },
  79.                     ),
  80.                 },
  81.                 ## Kostium<->Zbroja
  82.                 {
  83.                     "name" : "costume",
  84.                     "type" : "button",
  85.  
  86.                     "x" : 44,
  87.                     "y" : 30,
  88.  
  89.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_middle_01.sub",
  90.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_middle_02.sub",
  91.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_middle_03.sub",
  92.                     "children" :
  93.                     (
  94.                         {
  95.                             "name" : "Inventory_Tab_02_Print",
  96.                             "type" : "text",
  97.  
  98.                             "x" : 0,
  99.                             "y" : 0,
  100.  
  101.                             "all_align" : "center",
  102.  
  103.                             "text" : "Wygląd",
  104.                         },
  105.                     ),
  106.                 },
  107.             ),
  108.         },
  109.     ),
  110. }
Advertisement
Add Comment
Please, Sign In to add comment