Advertisement
P3NG3R

EquipmentDialog.py

Sep 10th, 2014
818
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.89 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. window = {
  4.     "name" : "EquipmentDialog",
  5.     "style" : ("movable", "float",),
  6.  
  7.     "x" : 0,
  8.     "y" : 0,
  9.  
  10.     "width" : 180,
  11.     "height" : 230,
  12.  
  13.     "children" :
  14.     (
  15.         {
  16.             "name" : "Board",
  17.             "type" : "board_with_titlebar",
  18.  
  19.             "x" : 0,
  20.             "y" : 0,
  21.  
  22.             "width" : 180,
  23.             "height" : 230,
  24.  
  25.             "title" : "Character Name",
  26.  
  27.             "children" :
  28.             (
  29.                 {
  30.                     "name":"EquipmentBaseImage",
  31.                     "type":"image",
  32.                     "style" : ("attach",),
  33.  
  34.                     "x" : 0,
  35.                     "y" : 9,
  36.                     "horizontal_align" : "center",
  37.                     "vertical_align" : "center",
  38.  
  39.                     "image" : "d:/ymir work/ui/equipment_bg_with_ring_my_noRLE.tga",
  40.  
  41.                     "children" :
  42.                     (
  43.  
  44.                         {
  45.                             "name" : "EquipmentSlot",
  46.                             "type" : "slot",
  47.  
  48.                             "x" : 3,
  49.                             "y" : 3,
  50.  
  51.                             "width" : 150,
  52.                             "height" : 182,
  53.  
  54.                             "slot" : (
  55.                                 {"index":0, "x":39, "y":37, "width":32, "height":64},
  56.                                 {"index":1, "x":39, "y":2, "width":32, "height":32},
  57.                                 {"index":2, "x":39, "y":145, "width":32, "height":32},
  58.                                 {"index":3, "x":75, "y":67, "width":32, "height":32},
  59.                                 {"index":4, "x":3, "y":3, "width":32, "height":96},
  60.                                 {"index":5, "x":114, "y":67, "width":32, "height":32},
  61.                                 {"index":6, "x":114, "y":35, "width":32, "height":32},
  62.                                 {"index":7, "x":2, "y":145, "width":32, "height":32},
  63.                                 {"index":8, "x":75, "y":145, "width":32, "height":32},
  64.                                 {"index":9, "x":114, "y":2, "width":32, "height":32},
  65.                                 {"index":10, "x":75, "y":35, "width":32, "height":32},
  66.  
  67.                                 ##index 11 and 12 are the costumes
  68.  
  69.                                 ## NEW_EQUIPMENT_SYSTEM
  70.                                 ## Ring1
  71.                                 {"index":13, "x":2, "y":106, "width":32, "height":32},
  72.                                 ## Ring
  73.                                 {"index":14, "x":75, "y":106, "width":32, "height":32},
  74.                                 ## Belt
  75.                                 {"index":15, "x":39, "y":106, "width":32, "height":32},
  76.                             ),
  77.                         },
  78.                     ),
  79.                 },
  80.             ),
  81.         },
  82.     ),
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement