Advertisement
samuel-roberto

ShopDialog2 ~ 80 Items

Feb 24th, 2015
2,799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.31 KB | None | 0 0
  1. #ShopDialog2 ~ 80 Items for Shop
  2. #Developed by Samuel
  3. import uiScriptLocale
  4.  
  5. window = {
  6.     "name" : "ShopDialog",
  7.  
  8.     "x" : SCREEN_WIDTH - 400,
  9.     "y" : 10,
  10.  
  11.     "style" : ("movable", "float",),
  12.  
  13.     "width" : 184,
  14.     "height" : 328,
  15.  
  16.     "children" :
  17.     (
  18.         {
  19.             "name" : "board",
  20.             "type" : "board",
  21.             "style" : ("attach",),
  22.  
  23.             "x" : 0,
  24.             "y" : 0,
  25.  
  26.             "width" : 184,
  27.             "height" : 328,
  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" : 169,
  41.                     "color" : "gray",
  42.  
  43.                     "children" :
  44.                     (
  45.                         { "name":"TitleName", "type":"text", "x":84, "y":4, "text":uiScriptLocale.SHOP_TITLE, "text_horizontal_align":"center" },
  46.                     ),
  47.                 },
  48.  
  49.                 ## Item Slot
  50.                 {
  51.                     "name" : "ItemSlot",
  52.                     "type" : "grid_table",
  53.  
  54.                     "x" : 12,
  55.                     "y" : 34,
  56.  
  57.                     "start_index" : 0,
  58.                     "x_count" : 5,
  59.                     "y_count" : 8,
  60.                     "x_step" : 32,
  61.                     "y_step" : 32,
  62.  
  63.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub",
  64.                 },
  65.  
  66.                 ## Buy
  67.                 {
  68.                     "name" : "BuyButton",
  69.                     "type" : "toggle_button",
  70.  
  71.                     "x" : 21,
  72.                     "y" : 295,
  73.  
  74.                     "width" : 61,
  75.                     "height" : 21,
  76.  
  77.                     "text" : uiScriptLocale.SHOP_BUY,
  78.  
  79.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  80.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  81.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  82.                 },
  83.  
  84.                 ## Sell
  85.                 {
  86.                     "name" : "SellButton",
  87.                     "type" : "toggle_button",
  88.  
  89.                     "x" : 104,
  90.                     "y" : 295,
  91.  
  92.                     "width" : 61,
  93.                     "height" : 21,
  94.  
  95.                     "text" : uiScriptLocale.SHOP_SELL,
  96.  
  97.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  98.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  99.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  100.                 },
  101.  
  102.                 ## Close
  103.                 {
  104.                     "name" : "CloseButton",
  105.                     "type" : "button",
  106.  
  107.                     "x" : 0,
  108.                     "y" : 295,
  109.  
  110.                     "horizontal_align" : "center",
  111.  
  112.                     "text" : uiScriptLocale.PRIVATE_SHOP_CLOSE_BUTTON,
  113.  
  114.                     "default_image" : "d:/ymir work/ui/public/large_button_01.sub",
  115.                     "over_image" : "d:/ymir work/ui/public/large_button_02.sub",
  116.                     "down_image" : "d:/ymir work/ui/public/large_button_03.sub",
  117.                 },
  118.  
  119.  
  120.  
  121.  
  122.  
  123.             ),
  124.         },
  125.     ),
  126. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement