Advertisement
Guest User

Untitled

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