masodikbela

repaired loong

Dec 30th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 16.10 KB | None | 0 0
  1. import uiScriptLocale
  2. import localeInfo
  3. import dbg
  4. import name
  5. ROOT = "d:/ymir work/ui/game/"
  6. #Y_ADD_POSITION = -2
  7. Y_ADD_POSITION = 0
  8. window = {
  9.     "name" : "TaskBar",
  10.  
  11.     "x" : 0,
  12.     "y" : SCREEN_HEIGHT - 65,
  13.  
  14.     "width" : SCREEN_WIDTH,
  15.     "height" : 68,
  16.  
  17.     "children" :
  18.     (
  19.         ## Board
  20.         {
  21.             "name" : "Base_Board_01",
  22.             "type" : "expanded_image",
  23.  
  24.             "x" : 0,
  25.             "horizontal_align":"center",
  26.             # "x" : 263,
  27.             "y" : 5,
  28.  
  29.             # "rect" : (0.0, 0.0, float(SCREEN_WIDTH - 263 - 256) / 256.0, 0.0),
  30.  
  31.             "image" : "d:/global/loong/barra2.dds",
  32.         }
  33.  
  34.         ## Gauge
  35.         {
  36.             "name" : "Gauge_Board",
  37.             "type" : "image",
  38.  
  39.             "x" : 0,
  40.             "y" : -10*5 + Y_ADD_POSITION,
  41.  
  42.             "image" : ROOT + "taskbar/gauge.sub",
  43.  
  44.             "children" :
  45.             (
  46.                 {
  47.                     "name" : "RampageGauge",
  48.                     "type" : "ani_image",
  49.  
  50.                     "x" : 8,
  51.                     "y" : 4,
  52.                     "width"  : 40,
  53.                     "height" : 40,
  54.  
  55.                     "delay" : 6,
  56.  
  57.                     "images" :
  58.                     (
  59.                         "D:/Ymir Work/UI/Pattern/HPGauge/01.tga",
  60.                     ),
  61.                 },
  62.                 {
  63.                     "name" : "RampageGauge2",
  64.                     "type" : "ani_image",
  65.  
  66.                     "x" : 8,
  67.                     "y" : 4,
  68.                     "width"  : 40,
  69.                     "height" : 40,
  70.  
  71.                     "delay" : 6,
  72.  
  73.                     "images" :
  74.                     (
  75.                         "D:/Ymir Work/UI/Pattern/HPGauge/01.tga",
  76.                     ),
  77.                 },
  78.                
  79.                 {
  80.                     ## 툴팁을 띄우기 위한 윈도우
  81.                     "name" : "HPGauge_Board",
  82.                     "type" : "window",
  83.  
  84.                     "x" : 59,
  85.                     "y" : 14,
  86.  
  87.                     "width" : 95,
  88.                     "height" : 11,
  89.  
  90.                     "children" :
  91.                     (
  92.                         {
  93.                             "name" : "HPRecoveryGaugeBar",
  94.                             "type" : "bar",
  95.  
  96.                             "x" : 0,
  97.                             "y" : 0,
  98.                             "width" : 95,
  99.                             "height" : 13,
  100.                             "color" : 0x55ff0000,
  101.                         },
  102.                         {
  103.                             "name" : "HPGauge",
  104.                             "type" : "ani_image",
  105.  
  106.                             "x" : 0,
  107.                             "y" : 0,
  108.  
  109.                             "delay" : 6,
  110.  
  111.                             "images" :
  112.                             (
  113.                                 "D:/Ymir Work/UI/Pattern/HPGauge/01.tga",
  114.                                 "D:/Ymir Work/UI/Pattern/HPGauge/02.tga",
  115.                                 "D:/Ymir Work/UI/Pattern/HPGauge/03.tga",
  116.                                 "D:/Ymir Work/UI/Pattern/HPGauge/04.tga",
  117.                                 "D:/Ymir Work/UI/Pattern/HPGauge/05.tga",
  118.                                 "D:/Ymir Work/UI/Pattern/HPGauge/06.tga",
  119.                                 "D:/Ymir Work/UI/Pattern/HPGauge/07.tga",
  120.                             ),
  121.                         },
  122.                     ),
  123.                 },
  124.                 {
  125.                     ## 툴팁을 띄우기 위한 윈도우
  126.                     "name" : "SPGauge_Board",
  127.                     "type" : "window",
  128.  
  129.                     "x" : 59,
  130.                     "y" : 24,
  131.  
  132.                     "width" : 95,
  133.                     "height" : 11,
  134.  
  135.                     "children" :
  136.                     (
  137.                         {
  138.                             "name" : "SPRecoveryGaugeBar",
  139.                             "type" : "bar",
  140.  
  141.                             "x" : 0,
  142.                             "y" : 0,
  143.                             "width" : 95,
  144.                             "height" : 13,
  145.                             "color" : 0x550000ff,
  146.                         },
  147.                         {
  148.                             "name" : "SPGauge",
  149.                             "type" : "ani_image",
  150.  
  151.                             "x" : 0,
  152.                             "y" : 0,
  153.  
  154.                             "delay" : 6,
  155.  
  156.                             "images" :
  157.                             (
  158.                                 "D:/Ymir Work/UI/Pattern/SPGauge/01.tga",
  159.                                 "D:/Ymir Work/UI/Pattern/SPGauge/02.tga",
  160.                                 "D:/Ymir Work/UI/Pattern/SPGauge/03.tga",
  161.                                 "D:/Ymir Work/UI/Pattern/SPGauge/04.tga",
  162.                                 "D:/Ymir Work/UI/Pattern/SPGauge/05.tga",
  163.                                 "D:/Ymir Work/UI/Pattern/SPGauge/06.tga",
  164.                                 "D:/Ymir Work/UI/Pattern/SPGauge/07.tga",
  165.                             ),
  166.                         },
  167.                     ),
  168.                 },
  169.                 {
  170.                     ## 툴팁을 띄우기 위한 윈도우
  171.                     "name" : "STGauge_Board",
  172.                     "type" : "window",
  173.  
  174.                     "x" : 59,
  175.                     "y" : 38,
  176.  
  177.                     "width" : 95,
  178.                     "height" : 6,
  179.  
  180.                     "children" :
  181.                     (
  182.                         {
  183.                             "name" : "STGauge",
  184.                             "type" : "ani_image",
  185.  
  186.                             "x" : 0,
  187.                             "y" : 0,
  188.  
  189.                             "delay" : 6,
  190.  
  191.                             "images" :
  192.                             (
  193.                                 "D:/Ymir Work/UI/Pattern/STGauge/01.tga",
  194.                                 "D:/Ymir Work/UI/Pattern/STGauge/02.tga",
  195.                                 "D:/Ymir Work/UI/Pattern/STGauge/03.tga",
  196.                                 "D:/Ymir Work/UI/Pattern/STGauge/04.tga",
  197.                                 "D:/Ymir Work/UI/Pattern/STGauge/05.tga",
  198.                                 "D:/Ymir Work/UI/Pattern/STGauge/06.tga",
  199.                                 "D:/Ymir Work/UI/Pattern/STGauge/07.tga",
  200.                             ),
  201.                         },
  202.                     ),
  203.                 },
  204.  
  205.             ),
  206.         },
  207.         {
  208.             "name" : "Porciento",
  209.             "type" : "text",
  210.             "x" : 134,
  211.             "y" : 3,
  212.             "text" : "0.00%",
  213.         },
  214.         {
  215.             "name" : "Progreso",
  216.             "type" : "progreso",
  217.             "x" : 155,
  218.             "y" : 6,
  219.  
  220.             "width" : 712,
  221.             "color" : "loong",
  222.         },
  223.         {
  224.             "name" : "EXP_Gauge_Board",
  225.             "type" : "image",
  226.  
  227.             "x" : 158,
  228.             "y" : 15 + Y_ADD_POSITION,
  229.  
  230.             "image" : ROOT + "taskbar/exp_gauge.sub",
  231.  
  232.             "children" :
  233.             (
  234.                 {
  235.                     "name" : "EXPGauge_01",
  236.                     "type" : "expanded_image",
  237.  
  238.                     "x" : 5,
  239.                     "y" : 9,
  240.  
  241.                     "image" : ROOT + "TaskBar/EXP_Gauge_Point.sub",
  242.                 },
  243.                 {
  244.                     "name" : "EXPGauge_02",
  245.                     "type" : "expanded_image",
  246.  
  247.                     "x" : 30,
  248.                     "y" : 9,
  249.  
  250.                     "image" : ROOT + "TaskBar/EXP_Gauge_Point.sub",
  251.                 },
  252.                 {
  253.                     "name" : "EXPGauge_03",
  254.                     "type" : "expanded_image",
  255.  
  256.                     "x" : 55,
  257.                     "y" : 9,
  258.  
  259.                     "image" : ROOT + "TaskBar/EXP_Gauge_Point.sub",
  260.                 },
  261.                 {
  262.                     "name" : "EXPGauge_04",
  263.                     "type" : "expanded_image",
  264.  
  265.                     "x" : 80,
  266.                     "y" : 9,
  267.  
  268.                     "image" : ROOT + "TaskBar/EXP_Gauge_Point.sub",
  269.                 },
  270.             ),
  271.         },
  272.  
  273.         ## Mouse Button
  274.         {
  275.             "name" : "LeftMouseButton",
  276.             "type" : "button",
  277.  
  278.             "x" : 154,
  279.             "y" : 25,
  280.  
  281.             "default_image" : "d:/global/loong/i_1.sub",
  282.             "over_image" : "d:/global/loong/i_2.sub",
  283.             "down_image" : "d:/global/loong/i_3.sub",
  284.         },
  285.         {
  286.             "name" : "RightMouseButton",
  287.             "type" : "button",
  288.  
  289.             "x" : 429,
  290.             "y" : 25,
  291.             "horizontal_align":"right",
  292.             "default_image" : ROOT + "TaskBar/Mouse_Button_Move_01.sub",
  293.             "over_image" : ROOT + "TaskBar/Mouse_Button_Move_02.sub",
  294.             "down_image" : ROOT + "TaskBar/Mouse_Button_Move_03.sub",
  295.         },
  296.        
  297.         ## Button
  298.         {
  299.             "name" : "CharacterButton",
  300.             "type" : "button",
  301.             "horizontal_align":"right",
  302.             "x" : 330,
  303.             "y" : 28,
  304.  
  305.             "tooltip_text" : uiScriptlocaleInfo.TASKBAR_CHARACTER,
  306.  
  307.             "default_image" : "d:/global/loong/c_1.sub",
  308.             "over_image" : "d:/global/loong/c_2.sub",
  309.             "down_image" : "d:/global/loong/c_3.sub",
  310.         },
  311.         {
  312.             "name" : "InventoryButton",
  313.             "type" : "button",
  314.  
  315.             "x" : 286,
  316.             "y" :25,
  317.             "horizontal_align":"right",
  318.             "tooltip_text" : uiScriptlocaleInfo.TASKBAR_INVENTORY,
  319.  
  320.             "default_image" : "d:/global/loong/i_1.sub",
  321.             "over_image" : "d:/global/loong/i_2.sub",
  322.             "down_image" : "d:/global/loong/i_3.sub",
  323.         },
  324.         {
  325.             "name" : "MessengerButton",
  326.             "type" : "button",
  327.  
  328.             "x" : 251,
  329.             "y" : 30,
  330.             "horizontal_align":"right",
  331.             "tooltip_text" : uiScriptlocaleInfo.TASKBAR_MESSENGER,
  332.  
  333.             "default_image" : "d:/global/loong/a_1.sub",
  334.             "over_image" : "d:/global/loong/a_2.sub",
  335.             "down_image" : "d:/global/loong/a_3.sub",
  336.         },
  337.         {
  338.             "name" : "SystemButton",
  339.             "type" : "button",
  340.             "horizontal_align":"right",
  341.             "x" : 210,
  342.             "y" : 25,
  343.  
  344.             "tooltip_text" : uiScriptlocaleInfo.TASKBAR_SYSTEM,
  345.  
  346.             "default_image" : "d:/global/loong/cf_1.sub",
  347.             "over_image" : "d:/global/loong/cf_2.sub",
  348.             "down_image" : "d:/global/loong/cf_3.sub",
  349.         },
  350.         {
  351.             "name" : "TrollLocoText",
  352.             "type" : "text",
  353.             "horizontal_align":"right",
  354.             "x" : 150,
  355.             "y" : 47,
  356.             "text":'SG',
  357.         },
  358.  
  359.         ## QuickBar
  360.         {
  361.             "name" : "quickslot_board",
  362.             "type" : "window",
  363.  
  364.             "x" :210,
  365.             "y" : 21,
  366.             # "horizontal_align":"center",
  367.             "width" : 350,
  368.             "height" : 37,
  369.  
  370.             "children" :
  371.             (
  372.                
  373.                 {
  374.                     "name" : "ChatButton",
  375.                     "type" : "button",
  376.  
  377.                     "x" : 115,
  378.                     "y" : 1,
  379.                     "tooltip_text" : uiScriptlocaleInfo.TASKBAR_CHAT,
  380.  
  381.                     "default_image" : ROOT + "TaskBar/Chat_Button_01.sub",
  382.                     "over_image" : ROOT + "TaskBar/Chat_Button_02.sub",
  383.                     "down_image" : ROOT + "TaskBar/Chat_Button_03.sub",
  384.                 },
  385.                 {
  386.                     "name" : "quick_slot_1",
  387.                     "type" : "grid_table",
  388.  
  389.                     "start_index" : 0,
  390.  
  391.                     "x" : -11,
  392.                     "y" : 3,
  393.                    
  394.                     "x_count" : 4,
  395.                     "y_count" : 1,
  396.                     "x_step" : 32,
  397.                     "y_step" : 32,
  398.  
  399.                     "image" : "d:/ymir work/ui/Public/Slot_Base.sub",
  400.                     "image_r" : 1.0,
  401.                     "image_g" : 1.0,
  402.                     "image_b" : 1.0,
  403.                     "image_a" : 1.0,
  404.  
  405.                     "children" :
  406.                     (
  407.                         { "name" : "slot_1", "type" : "image", "x" : 3, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/1.sub", },
  408.                         { "name" : "slot_2", "type" : "image", "x" : 35, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/2.sub", },
  409.                         { "name" : "slot_3", "type" : "image", "x" : 67, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/3.sub", },
  410.                         { "name" : "slot_4", "type" : "image", "x" : 99, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/4.sub", },
  411.                     ),
  412.                 },
  413.                 {
  414.                     "name" : "quick_slot_2",
  415.                     "type" : "grid_table",
  416.  
  417.                     "start_index" : 4,
  418.  
  419.                     "x" : 127,
  420.                     "y" : 3,
  421.  
  422.                     "x_count" : 4,
  423.                     "y_count" : 1,
  424.                     "x_step" : 32,
  425.                     "y_step" : 32,
  426.  
  427.                     "image" : "d:/ymir work/ui/Public/Slot_Base.sub",
  428.                     "image_r" : 1.0,
  429.                     "image_g" : 1.0,
  430.                     "image_b" : 1.0,
  431.                     "image_a" : 1.0,
  432.  
  433.                     "children" :
  434.                     (
  435.                         { "name" : "slot_5", "type" : "image", "x" : 3, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/f1.sub", },
  436.                         { "name" : "slot_6", "type" : "image", "x" : 35, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/f2.sub", },
  437.                         { "name" : "slot_7", "type" : "image", "x" : 67, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/f3.sub", },
  438.                         { "name" : "slot_8", "type" : "image", "x" : 99, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/f4.sub", },
  439.                        
  440.                     ),
  441.                 },          
  442.                 {
  443.                     "name" : "QuickSlotBoard",
  444.                     "type" : "window",
  445.  
  446.                     "x" : 128+14+128+55,
  447.                     "y" : 0,
  448.                     "width" : 11,
  449.                     "height" : 37,
  450.                     "children" :
  451.                     (
  452.                         {
  453.                             "name" : "QuickSlotNumberBox",
  454.                             "type" : "image",                          
  455.                             "x" : 1,
  456.                             "y" : 15,
  457.                             "image" : ROOT + "taskbar/QuickSlot_Button_Board.sub",
  458.                         },
  459.                         {
  460.                             "name" : "QuickPageUpButton",
  461.                             "type" : "button",
  462.                             "tooltip_text" : uiScriptlocaleInfo.TASKBAR_PREV_QUICKSLOT,
  463.                             "x" : 1,
  464.                             "y" : 9,
  465.                             "default_image" : ROOT + "TaskBar/QuickSlot_UpButton_01.sub",
  466.                             "over_image" : ROOT + "TaskBar/QuickSlot_UpButton_02.sub",
  467.                             "down_image" : ROOT + "TaskBar/QuickSlot_UpButton_03.sub",
  468.                         },
  469.  
  470.                         {
  471.                             "name" : "QuickPageNumber",
  472.                             "type" : "image",                            
  473.                             "x" : 3, "y" : 15, "image" : "d:/ymir work/ui/game/taskbar/1.sub",
  474.                         },
  475.                         {
  476.                             "name" : "QuickPageDownButton",
  477.                             "type" : "button",
  478.                             "tooltip_text" : uiScriptlocaleInfo.TASKBAR_NEXT_QUICKSLOT,
  479.  
  480.                             "x" : 1,
  481.                             "y" : 24,
  482.  
  483.                             "default_image" : ROOT + "TaskBar/QuickSlot_DownButton_01.sub",
  484.                             "over_image" : ROOT + "TaskBar/QuickSlot_DownButton_02.sub",
  485.                             "down_image" : ROOT + "TaskBar/QuickSlot_DownButton_03.sub",
  486.                         },
  487.    
  488.                     ),
  489.                 },
  490.             ),
  491.         },
  492.     ),
  493. }
Advertisement
Add Comment
Please, Sign In to add comment