Guest User

Untitled

a guest
Aug 23rd, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.49 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3.  
  4. EQUIPMENT_START_INDEX = 180
  5.  
  6. window = {
  7.     "name" : "InventoryWindow",
  8.  
  9.     ## 600 - (width + ????? ?? ??? 24 px)
  10.     "x" : SCREEN_WIDTH - 176,
  11.     "y" : SCREEN_HEIGHT - 55 - 565,
  12.  
  13.     "style" : ("movable", "float",),
  14.  
  15.     "width" : 176,
  16.     "height" : 565,
  17.  
  18.     "children" :
  19.     (
  20.         ## Inventory, Equipment Slots
  21.         {
  22.             "name" : "board",
  23.             "type" : "board",
  24.             "style" : ("attach",),
  25.  
  26.             "x" : 0,
  27.             "y" : 0,
  28.  
  29.             "width" : 176,
  30.             "height" : 565,
  31.  
  32.             "children" :
  33.             (
  34.                 ## Title
  35.                 {
  36.                     "name" : "TitleBar",
  37.                     "type" : "titlebar",
  38.                     "style" : ("attach",),
  39.  
  40.                     "x" : 8,
  41.                     "y" : 7,
  42.  
  43.                     "width" : 161,
  44.                     "color" : "yellow",
  45.  
  46.                     "children" :
  47.                     (
  48.                         { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  49.                     ),
  50.                 },
  51.  
  52.                 ## Equipment Slot
  53.                 {
  54.                     "name" : "Equipment_Base",
  55.                     "type" : "image",
  56.  
  57.                     "x" : 10,
  58.                     "y" : 33,
  59.  
  60.                     "image" : "d:/ymir work/ui/equipment_bg_with_ring.tga",
  61.  
  62.                     "children" :
  63.                     (
  64.  
  65.                         {
  66.                             "name" : "EquipmentSlot",
  67.                             "type" : "slot",
  68.  
  69.                             "x" : 3,
  70.                             "y" : 3,
  71.  
  72.                             "width" : 150,
  73.                             "height" : 182,
  74.  
  75.                             "slot" : (
  76.                                         {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  77.                                         {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  78.                                         {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  79.                                         {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  80.                                         {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  81.                                         {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  82.                                         {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  83.                                         {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  84.                                         {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  85.                                         {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  86.                                         {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  87.                                         {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  88.                                     ),
  89.                         },
  90.                         ## Dragon Soul Button
  91.                         {
  92.                             "name" : "DSSButton",
  93.                             "type" : "button",
  94.  
  95.                             "x" : 114,
  96.                             "y" : 107,
  97.  
  98.                             "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  99.  
  100.                             "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  101.                             "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  102.                             "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  103.                         },
  104.                         ## MallButton
  105.                         {
  106.                             "name" : "MallButton",
  107.                             "type" : "button",
  108.  
  109.                             "x" : 118,
  110.                             "y" : 148,
  111.  
  112.                             "tooltip_text" : uiScriptLocale.MALL_TITLE,
  113.  
  114.                             "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  115.                             "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  116.                             "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  117.                         },
  118.                         ## CostumeButton
  119.                         {
  120.                             "name" : "CostumeButton",
  121.                             "type" : "button",
  122.  
  123.                             "x" : 78,
  124.                             "y" : 5,
  125.  
  126.                             "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  127.  
  128.                             "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  129.                             "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  130.                             "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  131.                         },                   
  132.                         {
  133.                             "name" : "Equipment_Tab_01",
  134.                             "type" : "radio_button",
  135.  
  136.                             "x" : 86,
  137.                             "y" : 161,
  138.  
  139.                             "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  140.                             "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  141.                             "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  142.  
  143.                             "children" :
  144.                             (
  145.                                 {
  146.                                     "name" : "Equipment_Tab_01_Print",
  147.                                     "type" : "text",
  148.  
  149.                                     "x" : 0,
  150.                                     "y" : 0,
  151.  
  152.                                     "all_align" : "center",
  153.  
  154.                                     "text" : "I",
  155.                                 },
  156.                             ),
  157.                         },
  158.                         {
  159.                             "name" : "Equipment_Tab_02",
  160.                             "type" : "radio_button",
  161.  
  162.                             "x" : 86 + 32,
  163.                             "y" : 161,
  164.  
  165.                             "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  166.                             "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  167.                             "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  168.  
  169.                             "children" :
  170.                             (
  171.                                 {
  172.                                     "name" : "Equipment_Tab_02_Print",
  173.                                     "type" : "text",
  174.  
  175.                                     "x" : 0,
  176.                                     "y" : 0,
  177.  
  178.                                     "all_align" : "center",
  179.  
  180.                                     "text" : "II",
  181.                                 },
  182.                             ),
  183.                         },
  184.  
  185.                     ),
  186.                 },
  187.  
  188.                 {
  189.                     "name" : "Inventory_Tab_01",
  190.                     "type" : "radio_button",
  191.  
  192.                     "x" : 11,
  193.                     "y" : 33 + 191,
  194.  
  195.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  196.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  197.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  198.                     "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  199.  
  200.                     "children" :
  201.                     (
  202.                         {
  203.                             "name" : "Inventory_Tab_01_Print",
  204.                             "type" : "text",
  205.  
  206.                             "x" : 0,
  207.                             "y" : 0,
  208.  
  209.                             "all_align" : "center",
  210.  
  211.                             "text" : "I",
  212.                         },
  213.                     ),
  214.                 },
  215.                 {
  216.                     "name" : "Inventory_Tab_02",
  217.                     "type" : "radio_button",
  218.  
  219.                     "x" : 13 + 37,
  220.                     "y" : 33 + 191,
  221.  
  222.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  223.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  224.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  225.                     "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  226.  
  227.                     "children" :
  228.                     (
  229.                         {
  230.                             "name" : "Inventory_Tab_02_Print",
  231.                             "type" : "text",
  232.  
  233.                             "x" : 0,
  234.                             "y" : 0,
  235.  
  236.                             "all_align" : "center",
  237.  
  238.                             "text" : "II",
  239.                         },
  240.                     ),
  241.                 },
  242.                 {
  243.                     "name" : "Inventory_Tab_03",
  244.                     "type" : "radio_button",
  245.  
  246.                     "x" : 13 + 77,
  247.                     "y" : 33 + 191,
  248.  
  249.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  250.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  251.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  252.                     "tooltip_text" : "3.Inventar",
  253.  
  254.                     "children" :
  255.                     (
  256.                         {
  257.                             "name" : "Inventory_Tab_03_Print",
  258.                             "type" : "text",
  259.  
  260.                             "x" : 0,
  261.                             "y" : 0,
  262.  
  263.                             "all_align" : "center",
  264.  
  265.                             "text" : "III",
  266.                         },
  267.                     ),
  268.                 },
  269.                 {
  270.                     "name" : "Inventory_Tab_04",
  271.                     "type" : "radio_button",
  272.  
  273.                     "x" : 14 + 116,
  274.                     "y" : 33 + 191,
  275.  
  276.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  277.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  278.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  279.                     "tooltip_text" : "4.Inventar",
  280.  
  281.                     "children" :
  282.                     (
  283.                         {
  284.                             "name" : "Inventory_Tab_04_Print",
  285.                             "type" : "text",
  286.  
  287.                             "x" : 0,
  288.                             "y" : 0,
  289.  
  290.                             "all_align" : "center",
  291.  
  292.                             "text" : "IV",
  293.                         },
  294.                     ),
  295.                 },           
  296.  
  297.                 ## Item Slot
  298.                 {
  299.                     "name" : "ItemSlot",
  300.                     "type" : "grid_table",
  301.  
  302.                     "x" : 8,
  303.                     "y" : 246,
  304.  
  305.                     "start_index" : 0,
  306.                     "x_count" : 5,
  307.                     "y_count" : 9,
  308.                     "x_step" : 32,
  309.                     "y_step" : 32,
  310.  
  311.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  312.                 },
  313.  
  314.                 ## Print
  315.                 {
  316.                     "name":"Money_Slot",
  317.                     "type":"button",
  318.  
  319.                     "x":8,
  320.                     "y":28,
  321.  
  322.                     "horizontal_align":"center",
  323.                     "vertical_align":"bottom",
  324.  
  325.                     "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  326.                     "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  327.                     "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  328.  
  329.                     "children" :
  330.                     (
  331.                         {
  332.                             "name":"Money_Icon",
  333.                             "type":"image",
  334.  
  335.                             "x":-18,
  336.                             "y":2,
  337.  
  338.                             "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  339.                         },
  340.  
  341.                         {
  342.                             "name" : "Money",
  343.                             "type" : "text",
  344.  
  345.                             "x" : 3,
  346.                             "y" : 3,
  347.  
  348.                             "horizontal_align" : "right",
  349.                             "text_horizontal_align" : "right",
  350.  
  351.                             "text" : "123456789",
  352.                         },
  353.                     ),
  354.                 },
  355.  
  356.             ),
  357.         },
  358.     ),
  359. }
Advertisement
Add Comment
Please, Sign In to add comment