Advertisement
Guest User

inventorywindowex.py

a guest
Apr 21st, 2019
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 26.72 KB | None | 0 0
  1. import uiScriptLocale
  2. import item
  3. import app
  4. import player
  5.  
  6. EQUIPMENT_START_INDEX = player.EQUIPMENT_SLOT_START
  7.  
  8. if app.ENABLE_EXTEND_INVEN_SYSTEM and app.ENABLE_CHEQUE_SYSTEM:
  9.     window = {
  10.         "name" : "InventoryWindow",
  11.  
  12.         ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
  13.         "x" : SCREEN_WIDTH - 176,
  14.         "y" : SCREEN_HEIGHT - 37 - 565,
  15.  
  16.         "style" : ("movable", "float",),
  17.  
  18.         "width" : 176,
  19.         "height" : 565,
  20.  
  21.         "children" :
  22.         (
  23.             ## Inventory, Equipment Slots
  24.             {
  25.                 "name" : "board",
  26.                 "type" : "board",
  27.                 "style" : ("attach",),
  28.  
  29.                 "x" : 0,
  30.                 "y" : 0,
  31.  
  32.                 "width" : 176,
  33.                 "height" : 543,
  34.  
  35.                 "children" :
  36.                 (
  37.                     ## Title
  38.                     {
  39.                         "name" : "TitleBar",
  40.                         "type" : "titlebar",
  41.                         "style" : ("attach",),
  42.  
  43.                         "x" : 8,
  44.                         "y" : 7,
  45.  
  46.                         "width" : 161,
  47.                         "color" : "yellow",
  48.  
  49.                         "children" :
  50.                         (
  51.                             { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  52.                         ),
  53.                     },
  54.  
  55.                     ## Equipment Slot
  56.                     {
  57.                         "name" : "Equipment_Base",
  58.                         "type" : "image",
  59.  
  60.                         "x" : 10,
  61.                         "y" : 33,
  62.  
  63.                         "image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
  64.  
  65.                         "children" :
  66.                         (
  67.  
  68.                             {
  69.                                 "name" : "EquipmentSlot",
  70.                                 "type" : "slot",
  71.  
  72.                                 "x" : 3,
  73.                                 "y" : 3,
  74.  
  75.                                 "width" : 150,
  76.                                 "height" : 182,
  77.  
  78.                                 "slot" : (
  79.                                             {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  80.                                             {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  81.                                             {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  82.                                             {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  83.                                             {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  84.                                             {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  85.                                             {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  86.                                             {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  87.                                             {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  88.                                             {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  89.                                             {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  90.                                             ## 새 반지1
  91.                                             ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  92.                                             ## 새 반지2
  93.                                             ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  94.                                             ## 새 벨트
  95.                                             {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  96.                                         ),
  97.                             },
  98.                             ## Dragon Soul Button
  99.                             {
  100.                                 "name" : "DSSButton",
  101.                                 "type" : "button",
  102.  
  103.                                 "x" : 114,
  104.                                 "y" : 107,
  105.  
  106.                                 "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  107.  
  108.                                 "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  109.                                 "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  110.                                 "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  111.                             },
  112.                             ## MallButton
  113.                             {
  114.                                 "name" : "MallButton",
  115.                                 "type" : "button",
  116.  
  117.                                 "x" : 118,
  118.                                 "y" : 148,
  119.  
  120.                                 "tooltip_text" : uiScriptLocale.MALL_TITLE,
  121.  
  122.                                 "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  123.                                 "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  124.                                 "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  125.                             },
  126.                             ## CostumeButton
  127.                             {
  128.                                 "name" : "CostumeButton",
  129.                                 "type" : "button",
  130.  
  131.                                 "x" : 78,
  132.                                 "y" : 5,
  133.  
  134.                                 "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  135.  
  136.                                 "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  137.                                 "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  138.                                 "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  139.                             },
  140.                             {
  141.                                 "name" : "Equipment_Tab_01",
  142.                                 "type" : "radio_button",
  143.  
  144.                                 "x" : 86,
  145.                                 "y" : 161,
  146.  
  147.                                 "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  148.                                 "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  149.                                 "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  150.  
  151.                                 "children" :
  152.                                 (
  153.                                     {
  154.                                         "name" : "Equipment_Tab_01_Print",
  155.                                         "type" : "text",
  156.  
  157.                                         "x" : 0,
  158.                                         "y" : 0,
  159.  
  160.                                         "all_align" : "center",
  161.  
  162.                                         "text" : "I",
  163.                                     },
  164.                                 ),
  165.                             },
  166.                             {
  167.                                 "name" : "Equipment_Tab_02",
  168.                                 "type" : "radio_button",
  169.  
  170.                                 "x" : 86 + 32,
  171.                                 "y" : 161,
  172.  
  173.                                 "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  174.                                 "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  175.                                 "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  176.  
  177.                                 "children" :
  178.                                 (
  179.                                     {
  180.                                         "name" : "Equipment_Tab_02_Print",
  181.                                         "type" : "text",
  182.  
  183.                                         "x" : 0,
  184.                                         "y" : 0,
  185.  
  186.                                         "all_align" : "center",
  187.  
  188.                                         "text" : "II",
  189.                                     },
  190.                                 ),
  191.                             },
  192.  
  193.                         ),
  194.                     },
  195.  
  196.                     {
  197.                         "name" : "Inventory_Tab_01",
  198.                         "type" : "radio_button",
  199.  
  200.                         "x" : 10,
  201.                         "y" : 33 + 191,
  202.  
  203.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  204.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  205.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  206.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  207.  
  208.                         "children" :
  209.                         (
  210.                             {
  211.                                 "name" : "Inventory_Tab_01_Print",
  212.                                 "type" : "text",
  213.  
  214.                                 "x" : 0,
  215.                                 "y" : 0,
  216.  
  217.                                 "all_align" : "center",
  218.  
  219.                                 "text" : "I",
  220.                             },
  221.                         ),
  222.                     },
  223.                     {
  224.                         "name" : "Inventory_Tab_02",
  225.                         "type" : "radio_button",
  226.  
  227.                         #"x" : 10 + 78,
  228.                         "x" : 10 + 39,
  229.                         "y" : 33 + 191,
  230.  
  231.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  232.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  233.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  234.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  235.  
  236.                         "children" :
  237.                         (
  238.                             {
  239.                                 "name" : "Inventory_Tab_02_Print",
  240.                                 "type" : "text",
  241.  
  242.                                 "x" : 0,
  243.                                 "y" : 0,
  244.  
  245.                                 "all_align" : "center",
  246.  
  247.                                 "text" : "II",
  248.                             },
  249.                         ),
  250.                     },
  251.                    
  252.                     {
  253.                         "name" : "Inventory_Tab_03",
  254.                         "type" : "radio_button",
  255.  
  256.                         "x" : 10 + 39 + 39,
  257.                         "y" : 33 + 191,
  258.  
  259.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  260.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  261.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  262.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  263.  
  264.                         "children" :
  265.                         (
  266.                             {
  267.                                 "name" : "Inventory_Tab_03_Print",
  268.                                 "type" : "text",
  269.  
  270.                                 "x" : 0,
  271.                                 "y" : 0,
  272.  
  273.                                 "all_align" : "center",
  274.  
  275.                                 "text" : "III",
  276.                             },
  277.                         ),
  278.                     },
  279.                    
  280.                     {
  281.                         "name" : "Inventory_Tab_04",
  282.                         "type" : "radio_button",
  283.  
  284.                         "x" : 10 + 39 + 39 + 39,
  285.                         "y" : 33 + 191,
  286.  
  287.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  288.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  289.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  290.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  291.  
  292.                         "children" :
  293.                         (
  294.                             {
  295.                                 "name" : "Inventory_Tab_04_Print",
  296.                                 "type" : "text",
  297.  
  298.                                 "x" : 0,
  299.                                 "y" : 0,
  300.  
  301.                                 "all_align" : "center",
  302.  
  303.                                 "text" : "IV",
  304.                             },
  305.                         ),
  306.                     },
  307.  
  308.                     ## Item Slot
  309.                     {
  310.                         "name" : "ItemSlot",
  311.                         "type" : "grid_table",
  312.  
  313.                         "x" : 8,
  314.                         "y" : 246,
  315.  
  316.                         "start_index" : 0,
  317.                         "x_count" : 5,
  318.                         "y_count" : 9,
  319.                         "x_step" : 32,
  320.                         "y_step" : 32,
  321.  
  322.                         "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  323.                     },
  324.  
  325.                     ## Print
  326.                     {
  327.                         "name":"Money_Icon",
  328.                         "type":"image",
  329.                         "vertical_align":"bottom",
  330.                        
  331.                         "x":57,
  332.                         "y":26,
  333.  
  334.                         "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  335.                     },
  336.                     {
  337.                         "name":"Money_Slot",
  338.                         "type":"button",
  339.  
  340.                         "x":75,
  341.                         "y":28,
  342.  
  343.                         #"horizontal_align":"center",
  344.                         "vertical_align":"bottom",
  345.  
  346.                         "default_image" : "d:/ymir work/ui/public/gold_slot.sub",
  347.                         "over_image" : "d:/ymir work/ui/public/gold_slot.sub",
  348.                         "down_image" : "d:/ymir work/ui/public/gold_slot.sub",
  349.  
  350.                         "children" :
  351.                         (
  352.                             {
  353.                                 "name" : "Money",
  354.                                 "type" : "text",
  355.  
  356.                                 "x" : 3,
  357.                                 "y" : 3,
  358.  
  359.                                 "horizontal_align" : "right",
  360.                                 "text_horizontal_align" : "right",
  361.  
  362.                                 "text" : "123456789",
  363.                             },
  364.                         ),
  365.                     },
  366.                     {
  367.                         "name":"Cheque_Icon",
  368.                         "type":"image",
  369.                         "vertical_align":"bottom",
  370.                        
  371.                         "x":10,
  372.                         "y":26,
  373.  
  374.                         "image":"d:/ymir work/ui/game/windows/cheque_icon.sub",
  375.                     },
  376.                     {
  377.                         "name":"Cheque_Slot",
  378.                         "type":"button",
  379.  
  380.                         "x":28,
  381.                         "y":28,
  382.  
  383.                         #"horizontal_align":"center",
  384.                         "vertical_align":"bottom",
  385.  
  386.                         "default_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  387.                         "over_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  388.                         "down_image" : "d:/ymir work/ui/public/cheque_slot.sub",
  389.  
  390.                         "children" :
  391.                         (
  392.                             {
  393.                                 "name" : "Cheque",
  394.                                 "type" : "text",
  395.  
  396.                                 "x" : 3,
  397.                                 "y" : 3,
  398.  
  399.                                 "horizontal_align" : "right",
  400.                                 "text_horizontal_align" : "right",
  401.  
  402.                                 "text" : "99",
  403.                             },
  404.                         ),
  405.                     },
  406.  
  407.                 ),
  408.             },
  409.         ),
  410.     }
  411. elif app.ENABLE_EXTEND_INVEN_SYSTEM and not app.ENABLE_CHEQUE_SYSTEM:
  412.     window = {
  413.         "name" : "InventoryWindow",
  414.  
  415.         ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
  416.         "x" : SCREEN_WIDTH - 176,
  417.         "y" : SCREEN_HEIGHT - 37 - 565,
  418.  
  419.         "style" : ("movable", "float",),
  420.  
  421.         "width" : 176,
  422.         "height" : 565,
  423.  
  424.         "children" :
  425.         (
  426.             ## Inventory, Equipment Slots
  427.             {
  428.                 "name" : "board",
  429.                 "type" : "board",
  430.                 "style" : ("attach",),
  431.  
  432.                 "x" : 0,
  433.                 "y" : 0,
  434.  
  435.                 "width" : 176,
  436.                 "height" : 565,
  437.  
  438.                 "children" :
  439.                 (
  440.                     ## Title
  441.                     {
  442.                         "name" : "TitleBar",
  443.                         "type" : "titlebar",
  444.                         "style" : ("attach",),
  445.  
  446.                         "x" : 8,
  447.                         "y" : 7,
  448.  
  449.                         "width" : 161,
  450.                         "color" : "yellow",
  451.  
  452.                         "children" :
  453.                         (
  454.                             { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  455.                         ),
  456.                     },
  457.  
  458.                     ## Equipment Slot
  459.                     {
  460.                         "name" : "Equipment_Base",
  461.                         "type" : "image",
  462.  
  463.                         "x" : 10,
  464.                         "y" : 33,
  465.  
  466.                         "image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
  467.  
  468.                         "children" :
  469.                         (
  470.  
  471.                             {
  472.                                 "name" : "EquipmentSlot",
  473.                                 "type" : "slot",
  474.  
  475.                                 "x" : 3,
  476.                                 "y" : 3,
  477.  
  478.                                 "width" : 150,
  479.                                 "height" : 182,
  480.  
  481.                                 "slot" : (
  482.                                             {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  483.                                             {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  484.                                             {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  485.                                             {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  486.                                             {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  487.                                             {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  488.                                             {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  489.                                             {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  490.                                             {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  491.                                             {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  492.                                             {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  493.                                             ## 새 반지1
  494.                                             ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  495.                                             ## 새 반지2
  496.                                             ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  497.                                             ## 새 벨트
  498.                                             {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  499.                                         ),
  500.                             },
  501.                             ## Dragon Soul Button
  502.                             {
  503.                                 "name" : "DSSButton",
  504.                                 "type" : "button",
  505.  
  506.                                 "x" : 114,
  507.                                 "y" : 107,
  508.  
  509.                                 "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  510.  
  511.                                 "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  512.                                 "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  513.                                 "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  514.                             },
  515.                             ## MallButton
  516.                             {
  517.                                 "name" : "MallButton",
  518.                                 "type" : "button",
  519.  
  520.                                 "x" : 118,
  521.                                 "y" : 148,
  522.  
  523.                                 "tooltip_text" : uiScriptLocale.MALL_TITLE,
  524.  
  525.                                 "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  526.                                 "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  527.                                 "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  528.                             },
  529.                             ## CostumeButton
  530.                             {
  531.                                 "name" : "CostumeButton",
  532.                                 "type" : "button",
  533.  
  534.                                 "x" : 78,
  535.                                 "y" : 5,
  536.  
  537.                                 "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  538.  
  539.                                 "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  540.                                 "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  541.                                 "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  542.                             },                     
  543.                             {
  544.                                 "name" : "Equipment_Tab_01",
  545.                                 "type" : "radio_button",
  546.  
  547.                                 "x" : 86,
  548.                                 "y" : 161,
  549.  
  550.                                 "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  551.                                 "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  552.                                 "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  553.  
  554.                                 "children" :
  555.                                 (
  556.                                     {
  557.                                         "name" : "Equipment_Tab_01_Print",
  558.                                         "type" : "text",
  559.  
  560.                                         "x" : 0,
  561.                                         "y" : 0,
  562.  
  563.                                         "all_align" : "center",
  564.  
  565.                                         "text" : "I",
  566.                                     },
  567.                                 ),
  568.                             },
  569.                             {
  570.                                 "name" : "Equipment_Tab_02",
  571.                                 "type" : "radio_button",
  572.  
  573.                                 "x" : 86 + 32,
  574.                                 "y" : 161,
  575.  
  576.                                 "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  577.                                 "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  578.                                 "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  579.  
  580.                                 "children" :
  581.                                 (
  582.                                     {
  583.                                         "name" : "Equipment_Tab_02_Print",
  584.                                         "type" : "text",
  585.  
  586.                                         "x" : 0,
  587.                                         "y" : 0,
  588.  
  589.                                         "all_align" : "center",
  590.  
  591.                                         "text" : "II",
  592.                                     },
  593.                                 ),
  594.                             },
  595.  
  596.                         ),
  597.                     },
  598.  
  599.                     {
  600.                         "name" : "Inventory_Tab_01",
  601.                         "type" : "radio_button",
  602.  
  603.                         "x" : 10,
  604.                         "y" : 33 + 191,
  605.  
  606.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  607.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  608.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  609.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  610.  
  611.                         "children" :
  612.                         (
  613.                             {
  614.                                 "name" : "Inventory_Tab_01_Print",
  615.                                 "type" : "text",
  616.  
  617.                                 "x" : 0,
  618.                                 "y" : 0,
  619.  
  620.                                 "all_align" : "center",
  621.  
  622.                                 "text" : "I",
  623.                             },
  624.                         ),
  625.                     },
  626.                     {
  627.                         "name" : "Inventory_Tab_02",
  628.                         "type" : "radio_button",
  629.  
  630.                         #"x" : 10 + 78,
  631.                         "x" : 10 + 39,
  632.                         "y" : 33 + 191,
  633.  
  634.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  635.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  636.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  637.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  638.  
  639.                         "children" :
  640.                         (
  641.                             {
  642.                                 "name" : "Inventory_Tab_02_Print",
  643.                                 "type" : "text",
  644.  
  645.                                 "x" : 0,
  646.                                 "y" : 0,
  647.  
  648.                                 "all_align" : "center",
  649.  
  650.                                 "text" : "II",
  651.                             },
  652.                         ),
  653.                     },
  654.                    
  655.                     {
  656.                         "name" : "Inventory_Tab_03",
  657.                         "type" : "radio_button",
  658.  
  659.                         "x" : 10 + 39 + 39,
  660.                         "y" : 33 + 191,
  661.  
  662.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  663.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  664.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  665.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,
  666.  
  667.                         "children" :
  668.                         (
  669.                             {
  670.                                 "name" : "Inventory_Tab_03_Print",
  671.                                 "type" : "text",
  672.  
  673.                                 "x" : 0,
  674.                                 "y" : 0,
  675.  
  676.                                 "all_align" : "center",
  677.  
  678.                                 "text" : "III",
  679.                             },
  680.                         ),
  681.                     },
  682.                    
  683.                     {
  684.                         "name" : "Inventory_Tab_04",
  685.                         "type" : "radio_button",
  686.  
  687.                         "x" : 10 + 39 + 39 + 39,
  688.                         "y" : 33 + 191,
  689.  
  690.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_01.sub",
  691.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_02.sub",
  692.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_half_03.sub",
  693.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_4,
  694.  
  695.                         "children" :
  696.                         (
  697.                             {
  698.                                 "name" : "Inventory_Tab_04_Print",
  699.                                 "type" : "text",
  700.  
  701.                                 "x" : 0,
  702.                                 "y" : 0,
  703.  
  704.                                 "all_align" : "center",
  705.  
  706.                                 "text" : "IV",
  707.                             },
  708.                         ),
  709.                     },
  710.  
  711.                     ## Item Slot
  712.                     {
  713.                         "name" : "ItemSlot",
  714.                         "type" : "grid_table",
  715.  
  716.                         "x" : 8,
  717.                         "y" : 246,
  718.  
  719.                         "start_index" : 0,
  720.                         "x_count" : 5,
  721.                         "y_count" : 9,
  722.                         "x_step" : 32,
  723.                         "y_step" : 32,
  724.  
  725.                         "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  726.                     },
  727.  
  728.                     ## Print
  729.                     {
  730.                         "name":"Money_Slot",
  731.                         "type":"button",
  732.  
  733.                         "x":8,
  734.                         "y":28,
  735.  
  736.                         "horizontal_align":"center",
  737.                         "vertical_align":"bottom",
  738.  
  739.                         "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  740.                         "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  741.                         "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  742.  
  743.                         "children" :
  744.                         (
  745.                             {
  746.                                 "name":"Money_Icon",
  747.                                 "type":"image",
  748.  
  749.                                 "x":-18,
  750.                                 "y":2,
  751.  
  752.                                 "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  753.                             },
  754.  
  755.                             {
  756.                                 "name" : "Money",
  757.                                 "type" : "text",
  758.  
  759.                                 "x" : 3,
  760.                                 "y" : 3,
  761.  
  762.                                 "horizontal_align" : "right",
  763.                                 "text_horizontal_align" : "right",
  764.  
  765.                                 "text" : "123456789",
  766.                             },
  767.                         ),
  768.                     },
  769.  
  770.                 ),
  771.             },
  772.         ),
  773.     }
  774. else:
  775.     window = {
  776.         "name" : "InventoryWindow",
  777.  
  778.         ## 600 - (width + 오른쪽으로 부터 띄우기 24 px)
  779.         "x" : SCREEN_WIDTH - 176,
  780.         "y" : SCREEN_HEIGHT - 37 - 565,
  781.  
  782.         "style" : ("movable", "float",),
  783.  
  784.         "width" : 176,
  785.         "height" : 565,
  786.  
  787.         "children" :
  788.         (
  789.             ## Inventory, Equipment Slots
  790.             {
  791.                 "name" : "board",
  792.                 "type" : "board",
  793.                 "style" : ("attach",),
  794.  
  795.                 "x" : 0,
  796.                 "y" : 0,
  797.  
  798.                 "width" : 176,
  799.                 "height" : 565,
  800.  
  801.                 "children" :
  802.                 (
  803.                     ## Title
  804.                     {
  805.                         "name" : "TitleBar",
  806.                         "type" : "titlebar",
  807.                         "style" : ("attach",),
  808.  
  809.                         "x" : 8,
  810.                         "y" : 7,
  811.  
  812.                         "width" : 161,
  813.                         "color" : "yellow",
  814.  
  815.                         "children" :
  816.                         (
  817.                             { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocale.INVENTORY_TITLE, "text_horizontal_align":"center" },
  818.                         ),
  819.                     },
  820.  
  821.                     ## Equipment Slot
  822.                     {
  823.                         "name" : "Equipment_Base",
  824.                         "type" : "image",
  825.  
  826.                         "x" : 10,
  827.                         "y" : 33,
  828.  
  829.                         "image" : "d:/ymir work/ui/equipment_bg_without_ring.tga",
  830.  
  831.                         "children" :
  832.                         (
  833.  
  834.                             {
  835.                                 "name" : "EquipmentSlot",
  836.                                 "type" : "slot",
  837.  
  838.                                 "x" : 3,
  839.                                 "y" : 3,
  840.  
  841.                                 "width" : 150,
  842.                                 "height" : 182,
  843.  
  844.                                 "slot" : (
  845.                                             {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64},
  846.                                             {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32},
  847.                                             {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32},
  848.                                             {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32},
  849.                                             {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96},
  850.                                             {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32},
  851.                                             {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32},
  852.                                             {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32},
  853.                                             {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32},
  854.                                             {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32},
  855.                                             {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32},
  856.                                             ## 새 반지1
  857.                                             ##{"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
  858.                                             ## 새 반지2
  859.                                             ##{"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
  860.                                             ## 새 벨트
  861.                                             {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
  862.                                         ),
  863.                             },
  864.                             ## Dragon Soul Button
  865.                             {
  866.                                 "name" : "DSSButton",
  867.                                 "type" : "button",
  868.  
  869.                                 "x" : 114,
  870.                                 "y" : 107,
  871.  
  872.                                 "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
  873.  
  874.                                 "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
  875.                                 "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
  876.                                 "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
  877.                             },
  878.                             ## MallButton
  879.                             {
  880.                                 "name" : "MallButton",
  881.                                 "type" : "button",
  882.  
  883.                                 "x" : 118,
  884.                                 "y" : 148,
  885.  
  886.                                 "tooltip_text" : uiScriptLocale.MALL_TITLE,
  887.  
  888.                                 "default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
  889.                                 "over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
  890.                                 "down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
  891.                             },
  892.                             ## CostumeButton
  893.                             {
  894.                                 "name" : "CostumeButton",
  895.                                 "type" : "button",
  896.  
  897.                                 "x" : 78,
  898.                                 "y" : 5,
  899.  
  900.                                 "tooltip_text" : uiScriptLocale.COSTUME_TITLE,
  901.  
  902.                                 "default_image" : "d:/ymir work/ui/game/taskbar/costume_Button_01.tga",
  903.                                 "over_image" : "d:/ymir work/ui/game/taskbar/costume_Button_02.tga",
  904.                                 "down_image" : "d:/ymir work/ui/game/taskbar/costume_Button_03.tga",
  905.                             },                     
  906.                             {
  907.                                 "name" : "Equipment_Tab_01",
  908.                                 "type" : "radio_button",
  909.  
  910.                                 "x" : 86,
  911.                                 "y" : 161,
  912.  
  913.                                 "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  914.                                 "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  915.                                 "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  916.  
  917.                                 "children" :
  918.                                 (
  919.                                     {
  920.                                         "name" : "Equipment_Tab_01_Print",
  921.                                         "type" : "text",
  922.  
  923.                                         "x" : 0,
  924.                                         "y" : 0,
  925.  
  926.                                         "all_align" : "center",
  927.  
  928.                                         "text" : "I",
  929.                                     },
  930.                                 ),
  931.                             },
  932.                             {
  933.                                 "name" : "Equipment_Tab_02",
  934.                                 "type" : "radio_button",
  935.  
  936.                                 "x" : 86 + 32,
  937.                                 "y" : 161,
  938.  
  939.                                 "default_image" : "d:/ymir work/ui/game/windows/tab_button_small_01.sub",
  940.                                 "over_image" : "d:/ymir work/ui/game/windows/tab_button_small_02.sub",
  941.                                 "down_image" : "d:/ymir work/ui/game/windows/tab_button_small_03.sub",
  942.  
  943.                                 "children" :
  944.                                 (
  945.                                     {
  946.                                         "name" : "Equipment_Tab_02_Print",
  947.                                         "type" : "text",
  948.  
  949.                                         "x" : 0,
  950.                                         "y" : 0,
  951.  
  952.                                         "all_align" : "center",
  953.  
  954.                                         "text" : "II",
  955.                                     },
  956.                                 ),
  957.                             },
  958.  
  959.                         ),
  960.                     },
  961.  
  962.                     {
  963.                         "name" : "Inventory_Tab_01",
  964.                         "type" : "radio_button",
  965.  
  966.                         "x" : 10,
  967.                         "y" : 33 + 191,
  968.  
  969.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  970.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  971.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  972.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_1,
  973.  
  974.                         "children" :
  975.                         (
  976.                             {
  977.                                 "name" : "Inventory_Tab_01_Print",
  978.                                 "type" : "text",
  979.  
  980.                                 "x" : 0,
  981.                                 "y" : 0,
  982.  
  983.                                 "all_align" : "center",
  984.  
  985.                                 "text" : "I",
  986.                             },
  987.                         ),
  988.                     },
  989.                     {
  990.                         "name" : "Inventory_Tab_02",
  991.                         "type" : "radio_button",
  992.  
  993.                         "x" : 10 + 78,
  994.                         "y" : 33 + 191,
  995.  
  996.                         "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
  997.                         "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
  998.                         "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
  999.                         "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_2,
  1000.  
  1001.                         "children" :
  1002.                         (
  1003.                             {
  1004.                                 "name" : "Inventory_Tab_02_Print",
  1005.                                 "type" : "text",
  1006.  
  1007.                                 "x" : 0,
  1008.                                 "y" : 0,
  1009.  
  1010.                                 "all_align" : "center",
  1011.  
  1012.                                 "text" : "II",
  1013.                             },
  1014.                         ),
  1015.                     },
  1016.  
  1017.                     ## Item Slot
  1018.                     {
  1019.                         "name" : "ItemSlot",
  1020.                         "type" : "grid_table",
  1021.  
  1022.                         "x" : 8,
  1023.                         "y" : 246,
  1024.  
  1025.                         "start_index" : 0,
  1026.                         "x_count" : 5,
  1027.                         "y_count" : 9,
  1028.                         "x_step" : 32,
  1029.                         "y_step" : 32,
  1030.  
  1031.                         "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  1032.                     },
  1033.  
  1034.                     ## Print
  1035.                     {
  1036.                         "name":"Money_Slot",
  1037.                         "type":"button",
  1038.  
  1039.                         "x":8,
  1040.                         "y":28,
  1041.  
  1042.                         "horizontal_align":"center",
  1043.                         "vertical_align":"bottom",
  1044.  
  1045.                         "default_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  1046.                         "over_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  1047.                         "down_image" : "d:/ymir work/ui/public/parameter_slot_05.sub",
  1048.  
  1049.                         "children" :
  1050.                         (
  1051.                             {
  1052.                                 "name":"Money_Icon",
  1053.                                 "type":"image",
  1054.  
  1055.                                 "x":-18,
  1056.                                 "y":2,
  1057.  
  1058.                                 "image":"d:/ymir work/ui/game/windows/money_icon.sub",
  1059.                             },
  1060.  
  1061.                             {
  1062.                                 "name" : "Money",
  1063.                                 "type" : "text",
  1064.  
  1065.                                 "x" : 3,
  1066.                                 "y" : 3,
  1067.  
  1068.                                 "horizontal_align" : "right",
  1069.                                 "text_horizontal_align" : "right",
  1070.  
  1071.                                 "text" : "123456789",
  1072.                             },
  1073.                         ),
  1074.                     },
  1075.  
  1076.                 ),
  1077.             },
  1078.         ),
  1079.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement