Advertisement
deadx2

Untitled

Aug 29th, 2017
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.67 KB | None | 0 0
  1. import uiScriptLocaleMG
  2.  
  3. ROOT = "d:/ymir work/ui/game/"
  4.  
  5. #Y_ADD_POSITION = -2
  6. Y_ADD_POSITION = 0
  7.  
  8. window = {
  9.     "name" : "TaskBar",
  10.  
  11.     "x" : 0,
  12.     "y" : SCREEN_HEIGHT - 51,
  13.  
  14.     "width" : SCREEN_WIDTH,
  15.     "height" : 51,
  16.  
  17.     "children" :
  18.     (
  19.         ## Board
  20.         {
  21.             "name" : "Base_Board_01",
  22.             "type" : "expanded_image",
  23.             "x" : 0,
  24.             "y" : 0,
  25.             "horizontal_align":"center",
  26.             "image" : "locale/pl/ui/illumina/srodek.tga"
  27.         },
  28.         ## Mouse Button
  29.         {
  30.             "name" : "LeftMouseButton",
  31.             "type" : "button",
  32.  
  33.             "x" : SCREEN_WIDTH/2 - 128-85-4,
  34.             "y" : 15,
  35.  
  36.             "default_image" : "illumina/controls/special/taskbar/btn_attacknormal_01_normal.tga",
  37.             "over_image"    : "illumina/controls/special/taskbar/btn_attacknormal_02_hover.tga",
  38.             "down_image"    : "illumina/controls/special/taskbar/btn_attacknormal_03_active.tga",
  39.         },
  40.         {
  41.             "name" : "RightMouseButton",
  42.             "type" : "button",
  43.  
  44.             "x" : SCREEN_WIDTH/2 + 128 + 66 + 11-2-9,
  45.             "y" : 150,
  46.             "default_image" : "illumina/controls/special/taskbar/btn_slotpageone_01_normal.tga",
  47.             "over_image"    : "illumina/controls/special/taskbar/btn_slotpageone_02_hover.tga",
  48.             "down_image"    : "illumina/controls/special/taskbar/btn_slotpageone_03_active.tga",
  49.         },
  50.         {
  51.             "name":"ButtonsBackground",
  52.             "type":"image",
  53.             "x":210,
  54.             "y":0,
  55.             "horizontal_align":"right",
  56.             "image":"locale/pl/ui/illumina/prawo.tga",
  57.         },
  58.  
  59.         ## Button
  60.         {
  61.             "name" : "CharacterButton",
  62.             "type" : "button",
  63.  
  64.             "x" : SCREEN_WIDTH - 144,
  65.             "y" : 3 + Y_ADD_POSITION+8,
  66.  
  67.             "tooltip_text" : "|cfff8d090Postać [C/V/B/N]",
  68.  
  69.             "default_image" : "illumina/icon_button/icon_button_postac_1.tga",
  70.             "over_image" : "illumina/icon_button/icon_button_postac_2.tga",
  71.             "down_image" : "illumina/icon_button/icon_button_postac_3.tga",
  72.         },
  73.         {
  74.             "name" : "InventoryButton",
  75.             "type" : "button",
  76.  
  77.             "x" : SCREEN_WIDTH - 110,
  78.             "y" : 3 + Y_ADD_POSITION+8,
  79.  
  80.             "tooltip_text" : "|cfff8d090Ekwipunek [I]",
  81.  
  82.             "default_image" : "illumina/icon_button/icon_button_ekwipunek_1.tga",
  83.             "over_image" : "illumina/icon_button/icon_button_ekwipunek_2.tga",
  84.             "down_image" : "illumina/icon_button/icon_button_ekwipunek_3.tga",
  85.         },
  86.         {
  87.             "name" : "MessengerButton",
  88.             "type" : "button",
  89.  
  90.             "x" : SCREEN_WIDTH - 76,
  91.             "y" : 3 + Y_ADD_POSITION+8,
  92.  
  93.             "tooltip_text" : "|cfff8d090Przyjaciele [Alt+M]",
  94.  
  95.             "default_image" : "illumina/icon_button/icon_button_przyjaciele_1.tga",
  96.             "over_image" : "illumina/icon_button/icon_button_przyjaciele_2.tga",
  97.             "down_image" : "illumina/icon_button/icon_button_przyjaciele_3.tga",
  98.         },
  99.         {
  100.             "name" : "SystemButton",
  101.             "type" : "button",
  102.  
  103.             "x" : SCREEN_WIDTH - 42,
  104.             "y" : 3 + Y_ADD_POSITION+8,
  105.  
  106.             "tooltip_text" : "|cfff8d090Opcje [ESC]",
  107.  
  108.             "default_image" : "illumina/icon_button/icon_button_opcje_1.tga",
  109.             "over_image" : "illumina/icon_button/icon_button_opcje_2.tga",
  110.             "down_image" : "illumina/icon_button/icon_button_opcje_3.tga",
  111.         },
  112.  
  113.         ## QuickBar
  114.         {
  115.             "name" : "quickslot_board",
  116.             "type" : "window",
  117.  
  118.             "x" : 0,
  119.             "y" : 10,
  120.             "horizontal_align":"center",
  121.             "width" : 440,
  122.             "height" : 37,
  123.  
  124.             "children" :
  125.             (
  126.                 {
  127.                     "name" : "quick_slot_1",
  128.                     "type" : "grid_table",
  129.  
  130.                     "start_index" : 0,
  131.  
  132.                     "x" : 11+20,
  133.                     "y" : 1,
  134.  
  135.                     "x_count" : 4,
  136.                     "y_count" : 1,
  137.                     "x_step" : 42,
  138.                     "y_step" : 32,
  139.  
  140.                     #"image" : "d:/ymir work/ui/Public/Slot_Base.sub",
  141.                     "image_r" : 1.0,
  142.                     "image_g" : 1.0,
  143.                     "image_b" : 1.0,
  144.                     "image_a" : 1.0,
  145.  
  146.                     "children" :
  147.                     (
  148.                         { "name" : "slot_1", "type" : "image", "x" : 3, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/1.sub", },
  149.                         { "name" : "slot_2", "type" : "image", "x" : 35+10, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/2.sub", },
  150.                         { "name" : "slot_3", "type" : "image", "x" : 67+20, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/3.sub", },
  151.                         { "name" : "slot_4", "type" : "image", "x" : 99+30, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/4.sub", },
  152.                     ),
  153.                 },
  154.                 {
  155.                     "name" : "quick_slot_2",
  156.                     "type" : "grid_table",
  157.  
  158.                     "start_index" : 4,
  159.  
  160.                     "x" : 128+14+89+20,
  161.                     "y" : 1,
  162.  
  163.                     "x_count" : 4,
  164.                     "y_count" : 1,
  165.                     "x_step" : 42,
  166.                     "y_step" : 32,
  167.  
  168.                     #"image" : "d:/ymir work/ui/Public/Slot_Base.sub",
  169.                     "image_r" : 1.0,
  170.                     "image_g" : 1.0,
  171.                     "image_b" : 1.0,
  172.                     "image_a" : 1.0,
  173.  
  174.                     "children" :
  175.                     (
  176.                         { "name" : "slot_5", "type" : "image", "x" : 3, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/f1.sub", },
  177.                         { "name" : "slot_6", "type" : "image", "x" : 35+10, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/f2.sub", },
  178.                         { "name" : "slot_7", "type" : "image", "x" : 67+20, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/f3.sub", },
  179.                         { "name" : "slot_8", "type" : "image", "x" : 99+30, "y" : 3, "image" : "d:/ymir work/ui/game/taskbar/f4.sub", },
  180.                     ),
  181.                 },
  182.                 {
  183.                     "name" : "QuickSlotBoard",
  184.                     "type" : "window",
  185.  
  186.                     "x" : 128+14+128+2+122+20,
  187.                     "y" : 0,
  188.                     "width" : 11,
  189.                     "height" : 37,
  190.                     "children" :
  191.                     (
  192.                     #   {
  193.                     #       "name" : "QuickSlotNumberBox",
  194.                     #       "type" : "image",                          
  195.                     #       "x" : 1,
  196.                     #       "y" : 15,
  197.                     #       "image" : ROOT + "taskbar/QuickSlot_Button_Board.sub",
  198.                     #   },
  199.                         {
  200.                             "name" : "QuickPageUpButton",
  201.                             "type" : "button",
  202.                             "tooltip_text" : uiScriptLocaleMG.TASKBAR_PREV_QUICKSLOT,
  203.                             "x" : 7,
  204.                             "y" : 0,
  205.                             "default_image" : ROOT + "TaskBar/QuickSlot_UpButton_01.sub",
  206.                             "over_image" : ROOT + "TaskBar/QuickSlot_UpButton_02.sub",
  207.                             "down_image" : ROOT + "TaskBar/QuickSlot_UpButton_03.sub",
  208.                         },
  209.  
  210.                         {
  211.                             "name" : "QuickPageNumber",
  212.                             "type" : "button",
  213.                             "x" : 0,
  214.                             "y" : 5,
  215.                             "default_image" : "illumina/controls/special/taskbar/btn_slotpageone_01_normal.tga",
  216.                             "over_image" : "illumina/controls/special/taskbar/btn_slotpageone_02_hover.tga",
  217.                             "down_image" : "illumina/controls/special/taskbar/btn_slotpageone_03_active.tga",
  218.                             #"image" : "illumina/controls/special/taskbar/btn_slotpageone_01_normal.tga",
  219.                         },
  220.                         {
  221.                             "name" : "QuickPageDownButton",
  222.                             "type" : "button",
  223.                             "tooltip_text" : uiScriptLocaleMG.TASKBAR_NEXT_QUICKSLOT,
  224.  
  225.                             "x" : 7,
  226.                             "y" : 24+4,
  227.  
  228.                             "default_image" : ROOT + "TaskBar/QuickSlot_DownButton_01.sub",
  229.                             "over_image" : ROOT + "TaskBar/QuickSlot_DownButton_02.sub",
  230.                             "down_image" : ROOT + "TaskBar/QuickSlot_DownButton_03.sub",
  231.                         },
  232.                     ),
  233.                 },
  234.             ),
  235.         },
  236.         {
  237.             "name":"ChatButton",
  238.             "type" : "button",
  239.             "x" : 0,
  240.             "y" : 21,
  241.             "horizontal_align":"center",
  242.             "tooltip_text" : uiScriptLocaleMG.TASKBAR_CHAT,
  243.             "default_image" : "illumina/controls/special/taskbar/btn_chat_01_normal.tga",
  244.             "over_image" : "illumina/controls/special/taskbar/btn_chat_02_hover.tga",
  245.             "down_image" : "illumina/controls/special/taskbar/btn_chat_03_active.tga",
  246.         },
  247.     ),
  248. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement