Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.74 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3.  
  4. EQUIPMENT_START_INDEX = 90
  5.  
  6. window = {
  7.     "name" : "InventoryWindow",
  8.  
  9.     "x" : SCREEN_WIDTH - 210,
  10.     "y" : SCREEN_HEIGHT - 600,
  11.  
  12.     "style" : ("movable", "float",),
  13.    
  14.     "width" : 263,
  15.     "height" : 566,
  16.  
  17.     "children" :
  18.     (
  19.         {
  20.             "name" : "Panel",
  21.             "type" : "board",
  22.             "style" : ("attach",),
  23.  
  24.             "x" : 0,
  25.             "y" : 0,
  26.  
  27.             "width" : 60,
  28.             "height" : 469,
  29.  
  30.             "children" :
  31.             (
  32.  
  33.                 ## Button1
  34.                 {
  35.                     "name" : "Button1",
  36.                     "type" : "button",
  37.  
  38.                     "x" : 6,
  39.                     "y" : 7,
  40.  
  41.                     "tooltip_text" : "Bonusy",
  42.  
  43.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  44.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  45.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  46.                 },
  47.  
  48.                 ## Button2
  49.                 {
  50.                     "name" : "Button2",
  51.                     "type" : "button",
  52.  
  53.                     "x" : 6,
  54.                     "y" : 40,
  55.  
  56.                     "tooltip_text" : "Button2",
  57.  
  58.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  59.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  60.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  61.                 },
  62.  
  63.                 ## Button3
  64.                 {
  65.                     "name" : "Button3",
  66.                     "type" : "button",
  67.  
  68.                     "x" : 6,
  69.                     "y" : 73,
  70.  
  71.                     "tooltip_text" : "Button3",
  72.  
  73.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  74.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  75.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  76.                 },
  77.  
  78.                 ## Button4
  79.                 {
  80.                     "name" : "Button4",
  81.                     "type" : "button",
  82.  
  83.                     "x" : 6,
  84.                     "y" : 106,
  85.  
  86.                     "tooltip_text" : "Button4",
  87.  
  88.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  89.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  90.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  91.                 },
  92.  
  93.                 ## Button5
  94.                 {
  95.                     "name" : "Button5",
  96.                     "type" : "button",
  97.  
  98.                     "x" : 6,
  99.                     "y" : 139,
  100.  
  101.                     "tooltip_text" : "Button5",
  102.  
  103.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  104.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  105.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  106.                 },
  107.  
  108.                 ## Button6
  109.                 {
  110.                     "name" : "Button6",
  111.                     "type" : "button",
  112.  
  113.                     "x" : 6,
  114.                     "y" : 172,
  115.  
  116.                     "tooltip_text" : "Button6",
  117.  
  118.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  119.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  120.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  121.                 },
  122.  
  123.                 ## Button7
  124.                 {
  125.                     "name" : "Button7",
  126.                     "type" : "button",
  127.  
  128.                     "x" : 6,
  129.                     "y" : 205,
  130.  
  131.                     "tooltip_text" : "Button7",
  132.  
  133.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  134.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  135.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  136.                 },
  137.                 ## Button8
  138.                 {
  139.                     "name" : "Button8",
  140.                     "type" : "button",
  141.  
  142.                     "x" : 6,
  143.                     "y" : 238,
  144.  
  145.                     "tooltip_text" : "Button8",
  146.  
  147.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  148.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  149.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  150.                 },
  151.                 ## Button9
  152.                 {
  153.                     "name" : "Button9",
  154.                     "type" : "button",
  155.  
  156.                     "x" : 6,
  157.                     "y" : 271,
  158.  
  159.                     "tooltip_text" : "Button9",
  160.  
  161.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  162.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  163.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  164.                 },
  165.                 ## Button10
  166.                 {
  167.                     "name" : "Button10",
  168.                     "type" : "button",
  169.  
  170.                     "x" : 5,
  171.                     "y" : 304,
  172.  
  173.                     "tooltip_text" : "Button10",
  174.  
  175.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  176.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  177.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  178.                 }
  179.                 ## Button11
  180.                 {
  181.                     "name" : "Button11",
  182.                     "type" : "button",
  183.  
  184.                     "x" : 5,
  185.                     "y" : 335,
  186.  
  187.                     "tooltip_text" : "Button11",
  188.  
  189.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  190.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  191.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  192.                 },     
  193.                 ## Button12
  194.                 {
  195.                     "name" : "Button12",
  196.                     "type" : "button",
  197.  
  198.                     "x" : 5,
  199.                     "y" : 366,
  200.  
  201.                     "tooltip_text" : "Button12",
  202.  
  203.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  204.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  205.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  206.                 },         
  207.                 ## Button13
  208.                 {
  209.                     "name" : "Button13",
  210.                     "type" : "button",
  211.  
  212.                     "x" : 5,
  213.                     "y" : 397,
  214.  
  215.                     "tooltip_text" : "Button13",
  216.  
  217.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  218.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  219.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  220.                 },     
  221.                 ## Button14
  222.                 {
  223.                     "name" : "Button14",
  224.                     "type" : "button",
  225.  
  226.                     "x" : 5,
  227.                     "y" : 428,
  228.  
  229.                     "tooltip_text" : "Button14",
  230.  
  231.                     "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  232.                     "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  233.                     "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  234.                 },
  235.             ),
  236.         },
  237.         ## Inventory, Equipment Slots
  238.         {
  239.             "name" : "board",
  240.             "type" : "board",
  241.             "style" : ("attach",),
  242.  
  243.             "x" : 37,
  244.             "y" : 0,
  245.  
  246.             "width" : 176,
  247.             "height" : 565,
  248.  
  249.             "children" :
  250.             (
  251.                 ## Title
  252.                 {
  253.                     "name" : "TitleBar",
  254.                     "type" : "titlebar",
  255.                     "style" : ("attach",),
  256.  
  257.                     "x" : 8,
  258.                     "y" : 7,
  259.  
  260.                     "width" : 161,
  261.                     "color" : "yellow",
  262.  
  263.                     "children" :
  264.                     (
  265.                         { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  266.                     ),
  267.                 },
  268.  
  269.                 ## Equipment Slot
  270.                 {
  271.                     "name" : "Equipment_Base",
  272.                     "type" : "image",
  273.  
  274.                     "x" : 10,
  275.                     "y" : 33,
  276.  
  277.                     "image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
  278.                     "image" : "d:/ymir work/ui/equipment_bg_with_ring.tga",
  279.  
  280.                     "children" :
  281.                     (
  282.  
  283.                         {
  284.                             "name" : "EquipmentSlot",
  285.                             "type" : "slot",
  286.  
  287.                             "x" : 3,
  288.                             "y" : 3,
  289.  
  290.                             "width" : 150,
  291.                             "height" : 182,
  292.  
  293.                             "slot" : (
  294.                                         {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  295.                                         {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  296.                                         {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  297.                                         {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  298.                                         {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  299.                                         {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  300.                                         {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  301.                                         {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  302.                                         {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  303.                                         {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  304.                                         {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  305.                                         ## 새 반지1
  306.                                         ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  307.                                         ## 새 반지2
  308.                                         ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  309.                                         ## 새 벨트
  310.                                         {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  311.                                     ),
  312.                         },
  313.                         ## Dragon Soul Button
  314.                         {
  315.                             "name" : "DSSButton",
  316.                             "type" : "button",
  317.  
  318.                             "x" : 114,
  319.                             "y" : 107,
  320.  
  321.                             "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  322.  
  323.                             "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  324.                             "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  325.                             "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  326.                         },
  327.                         ## MallButton
  328.                         {
  329.                             "name" : "MallButton",
  330.                             "type" : "button",
  331.  
  332.                             "x" : 118,
  333.                             "y" : 148,
  334.  
  335.                             "tooltip_text" : uiScriptLocale.MALL_TITLE,
  336.  
  337.                             "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  338.                             "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  339.                             "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  340.                         },
  341.                         ## CostumeButton
  342.                         {
  343.                             "name" : "CostumeButton",
  344.                             "type" : "button",
  345.  
  346.                             "x" : 78,
  347.                             "y" : 5,
  348.  
  349.                             "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  350.  
  351.                             "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  352.                             "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  353.                             "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  354.                         },                     
  355.                         {
  356.                             "name" : "Equipment_Tab_01",
  357.                             "type" : "radio_button",
  358.  
  359.                             "x" : 86,
  360.                             "y" : 161,
  361.  
  362.                             "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  363.                             "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  364.                             "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  365.  
  366.                             "children" :
  367.                             (
  368.                                 {
  369.                                     "name" : "Equipment_Tab_01_Print",
  370.                                     "type" : "text",
  371.  
  372.                                     "x" : 0,
  373.                                     "y" : 0,
  374.  
  375.                                     "all_align" : "center",
  376.  
  377.                                     "text" : "I",
  378.                                 },
  379.                             ),
  380.                         },
  381.                         {
  382.                             "name" : "Equipment_Tab_02",
  383.                             "type" : "radio_button",
  384.  
  385.                             "x" : 86 + 32,
  386.                             "y" : 161,
  387.  
  388.                             "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  389.                             "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  390.                             "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  391.  
  392.                             "children" :
  393.                             (
  394.                                 {
  395.                                     "name" : "Equipment_Tab_02_Print",
  396.                                     "type" : "text",
  397.  
  398.                                     "x" : 0,
  399.                                     "y" : 0,
  400.  
  401.                                     "all_align" : "center",
  402.  
  403.                                     "text" : "II",
  404.                                 },
  405.                             ),
  406.                         },
  407.  
  408.                     ),
  409.                 },
  410.  
  411.                 {
  412.                     "name" : "Inventory_Tab_01",
  413.                     "type" : "radio_button",
  414.  
  415.                     "x" : 10,
  416.                     "y" : 33 + 191,
  417.  
  418.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  419.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  420.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  421.                     "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  422.  
  423.                     "children" :
  424.                     (
  425.                         {
  426.                             "name" : "Inventory_Tab_01_Print",
  427.                             "type" : "text",
  428.  
  429.                             "x" : 0,
  430.                             "y" : 0,
  431.  
  432.                             "all_align" : "center",
  433.  
  434.                             "text" : "I",
  435.                         },
  436.                     ),
  437.                 },
  438.                 {
  439.                     "name" : "Inventory_Tab_02",
  440.                     "type" : "radio_button",
  441.  
  442.                     "x" : 10 + 78,
  443.                     "y" : 33 + 191,
  444.  
  445.                     "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  446.                     "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  447.                     "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  448.                     "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  449.  
  450.                     "children" :
  451.                     (
  452.                         {
  453.                             "name" : "Inventory_Tab_02_Print",
  454.                             "type" : "text",
  455.  
  456.                             "x" : 0,
  457.                             "y" : 0,
  458.  
  459.                             "all_align" : "center",
  460.  
  461.                             "text" : "II",
  462.                         },
  463.                     ),
  464.                 },
  465.  
  466.                 ## Item Slot
  467.                 {
  468.                     "name" : "ItemSlot",
  469.                     "type" : "grid_table",
  470.  
  471.                     "x" : 8,
  472.                     "y" : 246,
  473.  
  474.                     "start_index" : 0,
  475.                     "x_count" : 5,
  476.                     "y_count" : 9,
  477.                     "x_step" : 32,
  478.                     "y_step" : 32,
  479.  
  480.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  481.                 },
  482.  
  483.                 ## Print
  484.                 {
  485.                     "name":"Money_Slot",
  486.                     "type":"button",
  487.  
  488.                     "x":8,
  489.                     "y":28,
  490.  
  491.                     "horizontal_align":"center",
  492.                     "vertical_align":"bottom",
  493.  
  494.                     "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  495.                     "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  496.                     "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  497.  
  498.                     "children" :
  499.                     (
  500.                         {
  501.                             "name":"Money_Icon",
  502.                             "type":"image",
  503.  
  504.                             "x":-18,
  505.                             "y":2,
  506.  
  507.                             "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  508.                         },
  509.  
  510.                         {
  511.                             "name" : "Money",
  512.                             "type" : "text",
  513.  
  514.                             "x" : 3,
  515.                             "y" : 3,
  516.  
  517.                             "horizontal_align" : "right",
  518.                             "text_horizontal_align" : "right",
  519.  
  520.                             "text" : "123456789",
  521.                         },
  522.                     ),
  523.                 },
  524.  
  525.             ),
  526.         },
  527.     ),
  528. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement