Advertisement
kamil2321

poprawiony

Dec 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.18 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" : 280,
  12.     "height" : 328 + 26,
  13.  
  14.     "children" :
  15.     (
  16.         {
  17.             "name" : "board",
  18.             "type" : "board",
  19.             "style" : ("attach",),
  20.  
  21.             "x" : 0,
  22.             "y" : 0,
  23.  
  24.             "width" : 280,
  25.             "height" : 328 + 26,
  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" : 265,
  39.                     "color" : "gray",
  40.  
  41.                     "children" :
  42.                     (
  43.                         { "name":"TitleName", "type":"text", "x":132, "y":4, "text":uiScriptLocale.PRIVATE_SHOP_TITLE, "text_horizontal_align":"center" },
  44.                     ),
  45.                 },
  46.                 # NAME
  47.                 {
  48.                     "name" : "NameSlot",
  49.                     "type" : "slotbar",
  50.                     "x" : 13,
  51.                     "y" : 35,
  52.                     "width" : 157+96,
  53.                     "height" : 18,
  54.  
  55.                     "children" :
  56.                     (
  57.                         {
  58.                             "name" : "NameLine",
  59.                             "type" : "text",
  60.                             "x" : 3,
  61.                             "y" : 3,
  62.                             "width" : 157+96,
  63.                             "height" : 15,
  64.                             "input_limit" : 25,
  65.                             "text" : "1234567890123456789012345",
  66.                         },
  67.                     ),
  68.                 },
  69.                 # ITEM SLOT
  70.                 {
  71.                     "name" : "ItemSlot",
  72.                     "type" : "grid_table",
  73.  
  74.                     "x" : 12,
  75.                     "y" : 34 + 26,
  76.  
  77.                     "start_index" : 0,
  78.                     "x_count" : 8,
  79.                     "y_count" : 8,
  80.                     "x_step" : 32,
  81.                     "y_step" : 32,
  82.  
  83.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub",
  84.                 },
  85.                
  86.                 ## Cash
  87.                 {
  88.                     "name":"Total_Money_Slot",
  89.                     "type":"button",
  90.  
  91.                     "x" : 9,
  92.                     "y" : 57,
  93.  
  94.                     "horizontal_align":"center",
  95.                     "vertical_align":"bottom",
  96.  
  97.                     "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  98.                     "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  99.                     "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  100.                     "tooltip_text" : "Suma cen wszystkich przedmiotów wystawionych na sklepie.",
  101.  
  102.                     "children" :
  103.                     (
  104.                         {
  105.                             "name":"Total_Money_Icon",
  106.                             "type":"image",
  107.  
  108.                             "x":-18,
  109.                             "y":2,
  110.  
  111.                             "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  112.                         },
  113.  
  114.                         {
  115.                             "name" : "Total_Money",
  116.                             "type" : "text",
  117.                             "input_limit" : 25,
  118.                            
  119.                             "x" : 3,
  120.                             "y" : 3,
  121.  
  122.                             "horizontal_align" : "right",
  123.                             "text_horizontal_align" : "right",
  124.  
  125.                             "text" : "0 Yang",
  126.                         },
  127.                     ),
  128.                 },
  129.                 # OK
  130.                 {
  131.                     "name" : "OkButton",
  132.                     "type" : "button",
  133.  
  134.                     "x" : 21,
  135.                     "y" : 295 + 26,
  136.  
  137.                     "width" : 61,
  138.                     "height" : 21,
  139.  
  140.                     "text" : uiScriptLocale.OK,
  141.  
  142.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  143.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  144.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  145.                 },
  146.                 # CLOSE
  147.                 {
  148.                     "name" : "CloseButton",
  149.                     "type" : "button",
  150.  
  151.                     "x" : 200,
  152.                     "y" : 295 + 26,
  153.  
  154.                     "width" : 61,
  155.                     "height" : 21,
  156.  
  157.                     "text" : uiScriptLocale.CLOSE,
  158.  
  159.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  160.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  161.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  162.                 },
  163.             ),
  164.         },
  165.     ),
  166. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement