Advertisement
Guest User

inventorywindow.py

a guest
Jul 18th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 8.33 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3.  
  4. EQUIPMENT_START_INDEX = 180
  5. LOCALE_PATH = "locale/ro/ui/inventory_button/"
  6.  
  7. window = {
  8.     "name" : "InventoryWindow",
  9.    
  10.     ## 600 - (width + ¿À¸¥ÂÊÀ¸·Î ºÎÅÍ ¶ç¿ì±â 24 px) 568
  11.     "x" : SCREEN_WIDTH - 180,
  12.     "y" : SCREEN_HEIGHT - 37 - 610,
  13.    
  14.     "style" : ("movable", "float",),
  15.    
  16.     "width" : 176,
  17.     "height" : 568,
  18.    
  19.     "children" :
  20.     (
  21.         ## Inventory, Equipment Slots
  22.         {
  23.             "name" : "board",
  24.             "type" : "board",
  25.             "style" : ("attach",),
  26.    
  27.             "x" : 0,
  28.             "y" : 0,
  29.    
  30.             "width" : 176,
  31.             "height" : 568,
  32.    
  33.             "children" :
  34.             (
  35.                 ## Title
  36.                 {
  37.                     "name" : "TitleBar",
  38.                     "type" : "titlebar",
  39.                     "style" : ("attach",),
  40.    
  41.                     "x" : 8,
  42.                     "y" : 7,
  43.    
  44.                     "width" : 161,
  45.                     "color" : "yellow",
  46.    
  47.                     "children" :
  48.                     (
  49.                         { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  50.                     ),
  51.                 },
  52.                 ## Equipment Slot
  53.                 {
  54.                     "name" : "Equipment_Base",
  55.                     "type" : "image",
  56.                     "x" : 10,
  57.                     "y" : 33,
  58.                     "image" : "d:/ymir work/ui/equipment_bg_wit_pet1.png",
  59.                     "children" :
  60.                     (
  61.                         {
  62.                             "name" : "EquipmentSlot",
  63.                             "type" : "slot",
  64.    
  65.                             "x" : 3,
  66.                             "y" : 3,
  67.    
  68.                             "width" : 150,
  69.                             "height" : 217,
  70.    
  71.                             "slot" : (
  72.                                         {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  73.                                         {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  74.                                         {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  75.                                         {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  76.                                         {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  77.                                         {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  78.                                         {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  79.                                         {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  80.                                         {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  81.                                         {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  82.                                         {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  83.                                         {"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  84.                                         {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  85.                                         {"index":item.EQUIPMENT_PET , "x":75, "y":106, "width":32, "height":32},
  86.                                         {"index":item.EQUIPMENT_TITLE , "x":0, "y":180, "width":32, "height":32},
  87.                                         {"index":item.EQUIPMENT_BUFF , "x":38, "y":180, "width":32, "height":32},
  88.                                     ),
  89.                         },
  90.                         {
  91.                             "name" : "OFFButton",
  92.                             "type" : "button",
  93.  
  94.                             # "x" : 77,
  95.                             # "y" : 110,
  96.                             "x" : 116,
  97.                             "y" : 145,
  98.  
  99.                             "tooltip_text" : "Magazin Privat",
  100.  
  101.                             "default_image" : LOCALE_PATH+"private_button_01.tga",
  102.                             "over_image" : LOCALE_PATH+"private_button_02.tga",
  103.                             "down_image" : LOCALE_PATH+"private_button_01.tga",
  104.                         },
  105.                         {
  106.                             "name" : "SWITCHButton",
  107.                             "type" : "button",
  108.  
  109.                             "x" : 76,
  110.                             "y" : 180,
  111.  
  112.                             "tooltip_text" : "Depozit Special",
  113.  
  114.                             "default_image" : LOCALE_PATH+"depozit_special_2.png",
  115.                             "over_image" : LOCALE_PATH+"depozit_special.png",
  116.                             "down_image" : LOCALE_PATH+"depozit_special_2.png",
  117.                         },
  118.                         {
  119.                             "name" : "INFOCHESTButton",
  120.                             "type" : "button",
  121.  
  122.                             "x" : 114,
  123.                             "y" : 180,
  124.  
  125.                             "tooltip_text" : "Meniu",
  126.  
  127.                             "default_image" : LOCALE_PATH+"mcard_button_01.png",
  128.                             "over_image" : LOCALE_PATH+"mcard_button_02.png",
  129.                             "down_image" : LOCALE_PATH+"mcard_button_01.png",
  130.                         },
  131.                         ## CostumeButton
  132.                         {
  133.                             "name" : "CostumeButton",
  134.                             "type" : "button",
  135.    
  136.                             "x" : 78,
  137.                             "y" : 5,
  138.    
  139.                             "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  140.    
  141.                             "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  142.                             "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  143.                             "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  144.                         },                      
  145.                         {
  146.                             "name" : "Equipment_Tab_01",
  147.                             "type" : "radio_button",
  148.  
  149.                             "x" : 86,
  150.                             # "y" : 161,
  151.                             "y" : 215,
  152.  
  153.                             "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  154.                             "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  155.                             "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  156.  
  157.                             "children" :
  158.                             (
  159.                                 {
  160.                                     "name" : "Equipment_Tab_01_Print",
  161.                                     "type" : "text",
  162.  
  163.                                     "x" : 0,
  164.                                     "y" : 0,
  165.  
  166.                                     "all_align" : "center",
  167.  
  168.                                     "text" : "I",
  169.                                 },
  170.                             ),
  171.                         },
  172.                         {
  173.                             "name" : "Equipment_Tab_02",
  174.                             "type" : "radio_button",
  175.  
  176.                             "x" : 86 + 32,
  177.                             "y" : 215,
  178.  
  179.                             "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  180.                             "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  181.                             "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  182.  
  183.                             "children" :
  184.                             (
  185.                                 {
  186.                                     "name" : "Equipment_Tab_02_Print",
  187.                                     "type" : "text",
  188.  
  189.                                     "x" : 0,
  190.                                     "y" : 0,
  191.  
  192.                                     "all_align" : "center",
  193.  
  194.                                     "text" : "II",
  195.                                 },
  196.                             ),
  197.                         },
  198.  
  199.                     ),
  200.                 },
  201.  
  202.                 {
  203.                     "name" : "Inventory_Tab_01",
  204.                     "type" : "radio_button",
  205.                     "x" : 10,
  206.                     "y" : 33 + 215,
  207.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  208.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  209.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  210.                     "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  211.                     "children" :
  212.                     (
  213.                         {
  214.                             "name" : "Inventory_Tab_01_Print",
  215.                             "type" : "text",
  216.                             "x" : 0,
  217.                             "y" : 0,
  218.                             "all_align" : "center",
  219.                             "text" : "I",
  220.                         },
  221.                     ),
  222.                 },
  223.                 {
  224.                     "name" : "Inventory_Tab_02",
  225.                     "type" : "radio_button",
  226.                     "x" : 10 + 39,
  227.                     "y" : 33 + 215,
  228.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  229.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  230.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  231.                     "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  232.                     "children" :
  233.                     (
  234.                         {
  235.                             "name" : "Inventory_Tab_02_Print",
  236.                             "type" : "text",
  237.                             "x" : 0,
  238.                             "y" : 0,
  239.                             "all_align" : "center",
  240.                             "text" : "II",
  241.                         },
  242.                     ),
  243.                 },
  244.                 {
  245.                     "name" : "Inventory_Tab_03",
  246.                     "type" : "radio_button",
  247.                     "x" : 10 + 39 + 39,
  248.                     "y" : 33 + 215,
  249.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  250.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  251.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  252.                     "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  253.                     "children" :
  254.                     (
  255.                         {
  256.                             "name" : "Inventory_Tab_03_Print",
  257.                             "type" : "text",
  258.                             "x" : 0,
  259.                             "y" : 0,
  260.                             "all_align" : "center",
  261.                             "text" : "III",
  262.                         },
  263.                     ),
  264.                 },
  265.                 {
  266.                     "name" : "Inventory_Tab_04",
  267.                     "type" : "radio_button",
  268.                     "x" : 10 + 39 + 39 + 39,
  269.                     "y" : 33 + 215,
  270.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  271.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  272.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  273.                     "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  274.                     "children" :
  275.                     (
  276.                         {
  277.                             "name" : "Inventory_Tab_04_Print",
  278.                             "type" : "text",
  279.                             "x" : 0,
  280.                             "y" : 0,
  281.                             "all_align" : "center",
  282.                             "text" : "IV",
  283.                         },
  284.                     ),
  285.                 },
  286.                 ## Item Slot
  287.                 {
  288.                     "name" : "ItemSlot",
  289.                     "type" : "grid_table",
  290.    
  291.                     "x" : 8,
  292.                     "y" : 266,
  293.    
  294.                     "start_index" : 0,
  295.                     "x_count" : 5,
  296.                     "y_count" : 9,
  297.                     "x_step" : 32,
  298.                     "y_step" : 32,
  299.    
  300.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  301.                 }
  302.             ),
  303.         },
  304.     ),
  305. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement