Advertisement
samuel-roberto

PrivateShopBuilder ~ 80 Items

Feb 26th, 2015
2,509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.46 KB | None | 0 0
  1. #PrivateShopBuilder ~ 80 Items for Shop
  2. #Developed by Samuel
  3. import uiScriptLocale
  4.  
  5. window = {
  6.     "name" : "PrivateShopBuilder",
  7.  
  8.     "x" : 0,
  9.     "y" : 0,
  10.  
  11.     "style" : ("movable", "float",),
  12.  
  13.     "width" : 345,
  14.     "height" : 328 + 26,
  15.  
  16.     "children" :
  17.     (
  18.         {
  19.             "name" : "board",
  20.             "type" : "board",
  21.             "style" : ("attach",),
  22.  
  23.             "x" : 0,
  24.             "y" : 0,
  25.  
  26.             "width" : 345,
  27.             "height" : 328 + 26,
  28.  
  29.             "children" :
  30.             (
  31.                 ## Title
  32.                 {
  33.                     "name" : "TitleBar",
  34.                     "type" : "titlebar",
  35.                     "style" : ("attach",),
  36.  
  37.                     "x" : 8,
  38.                     "y" : 8,
  39.  
  40.                     "width" : 330,
  41.                     "color" : "gray",
  42.  
  43.                     "children" :
  44.                     (
  45.                         { "name":"TitleName", "type":"text", "x":84, "y":4, "text":uiScriptLocale.PRIVATE_SHOP_TITLE, "text_horizontal_align":"center" },
  46.                     ),
  47.                 },
  48.  
  49.                 ## Name_Static
  50.                 #{
  51.                 #   "name" : "Name_Static", "type" : "text", "x" : 15, "y" : 35 + 3, "text" : uiScriptLocale.PRIVATE_SHOP_NAME,
  52.                 #},
  53.                 ## Name
  54.                 {
  55.                     "name" : "NameSlot",
  56.                     "type" : "slotbar",
  57.                     "x" : 13,
  58.                     "y" : 35,
  59.                     "width" : 90 + 67,
  60.                     "height" : 18,
  61.  
  62.                     "children" :
  63.                     (
  64.                         {
  65.                             "name" : "NameLine",
  66.                             "type" : "text",
  67.                             "x" : 3,
  68.                             "y" : 3,
  69.                             "width" : 157,
  70.                             "height" : 15,
  71.                             "input_limit" : 25,
  72.                             "text" : "1234567890123456789012345",
  73.                         },
  74.                     ),
  75.                 },
  76.  
  77.                 ## Item Slot
  78.                 {
  79.                     "name" : "ItemSlot",
  80.                     "type" : "grid_table",
  81.  
  82.                     "x" : 12,
  83.                     "y" : 34 + 26,
  84.  
  85.                     "start_index" : 0,
  86.                     "x_count" : 10,
  87.                     "y_count" : 8,
  88.                     "x_step" : 32,
  89.                     "y_step" : 32,
  90.  
  91.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub",
  92.                 },
  93.  
  94.                 ## Ok
  95.                 {
  96.                     "name" : "OkButton",
  97.                     "type" : "button",
  98.  
  99.                     "x" : 42,
  100.                     "y" : 295 + 26,
  101.  
  102.                     "width" : 61,
  103.                     "height" : 21,
  104.  
  105.                     "text" : uiScriptLocale.OK,
  106.  
  107.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  108.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  109.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  110.                 },
  111.  
  112.                 ## Close
  113.                 {
  114.                     "name" : "CloseButton",
  115.                     "type" : "button",
  116.  
  117.                     "x" : 250,
  118.                     "y" : 295 + 26,
  119.  
  120.                     "width" : 61,
  121.                     "height" : 21,
  122.  
  123.                     "text" : uiScriptLocale.CLOSE,
  124.  
  125.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  126.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  127.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  128.                 },
  129.             ),
  130.         },
  131.     ),
  132. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement