Guest User

Untitled

a guest
Oct 5th, 2017
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.68 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. window = {
  4.     "name" : "InventoryWindow",
  5.  
  6.     "x" : SCREEN_WIDTH - 176 - 287 - 10,
  7.     "y" : SCREEN_HEIGHT - 37 - 525,
  8.  
  9.     "style" : ("movable", "float",),
  10.  
  11.     "width" : 287,
  12.     "height" : 505,
  13.  
  14.     "children" :
  15.     (
  16.         {
  17.             "name" : "board",
  18.             "type" : "board",
  19.             "style" : ("attach",),
  20.  
  21.             "x" : 0,
  22.             "y" : 0,
  23.  
  24.             "width" : 287,
  25.             "height" : 505,
  26.  
  27.             "children" :
  28.             (
  29.                 ## Title
  30.                 {
  31.                     "name" : "TitleBar",
  32.                     "type" : "titlebar",
  33.                     "style" : ("attach",),
  34.  
  35.                     "x" : 8,
  36.                     "y" : 7,
  37.  
  38.                     "width" : 271,
  39.                     "color" : "yellow",
  40.  
  41.                     "children" :
  42.                     (
  43.                         { "name":"TitleName", "type":"text", "x":130, "y":3, "text":uiScriptLocale.DRAGONSOUL_TITLE, "text_horizontal_align":"center" },
  44.                     ),
  45.                 },
  46.                 ## Dragon Soul Base
  47.                 {
  48.                     "name" : "Equipment_Base",
  49.                     "type" : "expanded_image",
  50.  
  51.                     "x" : 12,
  52.                     "y" : 35,
  53.  
  54.                     "style" : ("attach",),
  55.  
  56.                     "image" : "d:/ymir work/ui/dragonsoul/dragon_soul_bg.tga",
  57.  
  58.                 },
  59.                 {
  60.                     "name" : "Inventory_Tab_01",
  61.                     "type" : "radio_button",
  62.  
  63.                     "x" : 16,
  64.                     "y" : 332,
  65.  
  66.                     "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
  67.                     "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
  68.                     "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",
  69.  
  70.                     "children" :
  71.                     (
  72.                         {
  73.                             "name" : "Inventory_Tab_01_Print",
  74.                             "type" : "text",
  75.  
  76.                             "x" : 0,
  77.                             "y" : 0,
  78.  
  79.                             "all_align" : "center",
  80.  
  81.                             "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_1,
  82.                             "color" : 0xFFF1E6C0,
  83.                         },
  84.                     ),
  85.                 },
  86.                 {
  87.                     "name" : "Inventory_Tab_02",
  88.                     "type" : "radio_button",
  89.  
  90.                     "x" : 67,
  91.                     "y" : 332,
  92.  
  93.                     "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
  94.                     "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
  95.                     "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",
  96.  
  97.                     "children" :
  98.                     (
  99.                         {
  100.                             "name" : "Inventory_Tab_02_Print",
  101.                             "type" : "text",
  102.  
  103.                             "x" : 0,
  104.                             "y" : 0,
  105.  
  106.                             "all_align" : "center",
  107.  
  108.                             "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_2,
  109.                             "color" : 0xFFF1E6C0,
  110.                         },
  111.                     ),
  112.                 },
  113.                 {
  114.                     "name" : "Inventory_Tab_03",
  115.                     "type" : "radio_button",
  116.  
  117.                     "x" : 118,
  118.                     "y" : 332,
  119.  
  120.                     "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
  121.                     "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
  122.                     "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",
  123.  
  124.                     "children" :
  125.                     (
  126.                         {
  127.                             "name" : "Inventory_Tab_03_Print",
  128.                             "type" : "text",
  129.  
  130.                             "x" : 0,
  131.                             "y" : 0,
  132.  
  133.                             "all_align" : "center",
  134.  
  135.                             "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_3,
  136.                             "color" : 0xFFF1E6C0,
  137.                         },
  138.                     ),
  139.                 },
  140.                 {
  141.                     "name" : "Inventory_Tab_04",
  142.                     "type" : "radio_button",
  143.  
  144.                     "x" : 169,
  145.                     "y" : 332,
  146.  
  147.                     "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
  148.                     "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
  149.                     "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",
  150.  
  151.                     "children" :
  152.                     (
  153.                         {
  154.                             "name" : "Inventory_Tab_04_Print",
  155.                             "type" : "text",
  156.  
  157.                             "x" : 0,
  158.                             "y" : 0,
  159.  
  160.                             "all_align" : "center",
  161.  
  162.                             "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_4,
  163.                             "color" : 0xFFF1E6C0,
  164.                         },
  165.                     ),
  166.                 },
  167.                 {
  168.                     "name" : "Inventory_Tab_05",
  169.                     "type" : "radio_button",
  170.  
  171.                     "x" : 220,
  172.                     "y" : 332,
  173.  
  174.                     "default_image" : "d:/ymir work/ui/dragonsoul/s_button01.tga",
  175.                     "over_image" : "d:/ymir work/ui/dragonsoul/s_button02.tga",
  176.                     "down_image" : "d:/ymir work/ui/dragonsoul/s_button03.tga",
  177.  
  178.                     "children" :
  179.                     (
  180.                         {
  181.                             "name" : "Inventory_Tab_05_Print",
  182.                             "type" : "text",
  183.  
  184.                             "x" : 0,
  185.                             "y" : 0,
  186.  
  187.                             "all_align" : "center",
  188.  
  189.                             "text" : uiScriptLocale.DRAGONSOUL_PAGE_BUTTON_5,
  190.                             "color" : 0xFFF1E6C0,
  191.                         },
  192.                     ),
  193.                 },
  194.                
  195.                 ## Item Slot
  196.                 {
  197.                     "name" : "ItemSlot",
  198.                     "type" : "grid_table",
  199.  
  200.                     "x" : 15,
  201.                     "y" : 355,
  202.  
  203.                     "start_index" : 0,
  204.                     "x_count" : 8,
  205.                     "y_count" : 4,
  206.                     "x_step" : 32,
  207.                     "y_step" : 32,
  208.  
  209.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  210.                 },
  211.                 {
  212.                     "name" : "EquipmentSlot",
  213.                     "type" : "slot",
  214.  
  215.                     "x" : 0,
  216.                     "y" : 0,
  217.  
  218.                     "width" : 287,
  219.                     "height" : 280,
  220.  
  221.                     "slot" : (
  222.                                 {"index":DRAGON_SOUL_EQUIPMENT_SLOT_START+0, "x":128, "y":53, "width":32, "height":32},
  223.                                 {"index":DRAGON_SOUL_EQUIPMENT_SLOT_START+1, "x":59, "y":93, "width":32, "height":32},
  224.                                 {"index":DRAGON_SOUL_EQUIPMENT_SLOT_START+2, "x":59, "y":179, "width":32, "height":32},
  225.                                 {"index":DRAGON_SOUL_EQUIPMENT_SLOT_START+3, "x":128, "y":219, "width":32, "height":32},
  226.                                 {"index":DRAGON_SOUL_EQUIPMENT_SLOT_START+4, "x":194, "y":179, "width":32, "height":32},
  227.                                 {"index":DRAGON_SOUL_EQUIPMENT_SLOT_START+5, "x":194, "y":93, "width":32, "height":32},
  228.                             ),
  229.                 },
  230.                 {
  231.                     "name" : "deck1",
  232.                     "type" : "toggle_button",
  233.  
  234.                     "x" : 21,
  235.                     "y" : 230,
  236.  
  237.                     "default_image" : "d:/ymir work/ui/dragonsoul/deck1_1.tga",
  238.                     "over_image" : "d:/ymir work/ui/dragonsoul/deck1_2.tga",
  239.                     "down_image" : "d:/ymir work/ui/dragonsoul/deck1_3.tga",
  240.                 },
  241.                 {
  242.                     "name" : "deck2",
  243.                     "type" : "toggle_button",
  244.  
  245.                     "x" : 234,
  246.                     "y" : 230,
  247.  
  248.                     "default_image" : "d:/ymir work/ui/dragonsoul/deck2_1.tga",
  249.                     "over_image" : "d:/ymir work/ui/dragonsoul/deck2_2.tga",
  250.                     "down_image" : "d:/ymir work/ui/dragonsoul/deck2_3.tga",
  251.                 },
  252.                 ## Tab Area
  253.                 {
  254.                     "name" : "TabControl",
  255.                     "type" : "window",
  256.  
  257.                     "x" : 10,
  258.                     "y" : 279,
  259.  
  260.                     "width" : 267,
  261.                     "height" : 30,
  262.  
  263.                     "children" :
  264.                     (
  265.                         ## Tab
  266.                         {
  267.                             "name" : "Tab_01",
  268.                             "type" : "expanded_image",
  269.  
  270.                             "x" : 0,
  271.                             "y" : 0,
  272.  
  273.                             "width" : 267,
  274.                             "height" : 30,
  275.  
  276.                             "image" : "d:/ymir work/ui/dragonsoul/tap01.tga",
  277.                         },
  278.                         {
  279.                             "name" : "Tab_02",
  280.                             "type" : "expanded_image",
  281.  
  282.                             "x" : 0,
  283.                             "y" : 0,
  284.  
  285.                             "width" : 267,
  286.                             "height" : 30,
  287.  
  288.                             "image" : "d:/ymir work/ui/dragonsoul/tap02.tga",
  289.                         },
  290.                         {
  291.                             "name" : "Tab_03",
  292.                             "type" : "expanded_image",
  293.  
  294.                             "x" : 0,
  295.                             "y" : 0,
  296.  
  297.                             "width" : 267,
  298.                             "height" : 30,
  299.  
  300.                             "image" : "d:/ymir work/ui/dragonsoul/tap03.tga",
  301.                         },
  302.                         {
  303.                             "name" : "Tab_04",
  304.                             "type" : "expanded_image",
  305.  
  306.                             "x" : 0,
  307.                             "y" : 0,
  308.  
  309.                             "width" : 267,
  310.                             "height" : 30,
  311.  
  312.                             "image" : "d:/ymir work/ui/dragonsoul/tap04.tga",
  313.                         },
  314.                         {
  315.                             "name" : "Tab_05",
  316.                             "type" : "expanded_image",
  317.  
  318.                             "x" : 0,
  319.                             "y" : 0,
  320.  
  321.                             "width" : 267,
  322.                             "height" : 30,
  323.  
  324.                             "image" : "d:/ymir work/ui/dragonsoul/tap05.tga",
  325.                         },
  326.                         {
  327.                             "name" : "Tab_06",
  328.                             "type" : "expanded_image",
  329.  
  330.                             "x" : 0,
  331.                             "y" : 0,
  332.  
  333.                             "width" : 267,
  334.                             "height" : 30,
  335.  
  336.                             "image" : "d:/ymir work/ui/dragonsoul/tap06.tga",
  337.                         },
  338.                         ## RadioButton
  339.                         {
  340.                             "name" : "Tab_Button_01",
  341.                             "type" : "radio_button",
  342.  
  343.                             "x" : 2,
  344.                             "y" : 2,
  345.  
  346.                             "width" : 36,
  347.                             "height" : 27,
  348.                         },
  349.                         {
  350.                             "name" : "Tab_Button_02",
  351.                             "type" : "radio_button",
  352.  
  353.                             "x" : 42,
  354.                             "y" : 2,
  355.  
  356.                             "width" : 36,
  357.                             "height" : 27,
  358.                         },
  359.                         {
  360.                             "name" : "Tab_Button_03",
  361.                             "type" : "radio_button",
  362.  
  363.                             "x" : 82,
  364.                             "y" : 2,
  365.  
  366.                             "width" : 36,
  367.                             "height" : 27,
  368.                         },
  369.                         {
  370.                             "name" : "Tab_Button_04",
  371.                             "type" : "radio_button",
  372.  
  373.                             "x" : 122,
  374.                             "y" : 2,
  375.  
  376.                             "width" : 36,
  377.                             "height" : 27,
  378.                         },
  379.                         {
  380.                             "name" : "Tab_Button_05",
  381.                             "type" : "radio_button",
  382.  
  383.                             "x" : 162,
  384.                             "y" : 2,
  385.  
  386.                             "width" : 36,
  387.                             "height" : 27,
  388.                         },
  389.                         {
  390.                             "name" : "Tab_Button_06",
  391.                             "type" : "radio_button",
  392.  
  393.                             "x" : 202,
  394.                             "y" : 2,
  395.  
  396.                             "width" : 36,
  397.                             "height" : 27,
  398.                         },
  399.                     ),
  400.                 },
  401.                 {
  402.                     "name" : "tab_text_area",
  403.                     "type" : "text",
  404.  
  405.                     "x" : 18,
  406.                     "y" : 315,
  407.  
  408.                     "text" : uiScriptLocale.DRAGONSOUL_TAP_TITLE_1,
  409.                     "color" : 0xFFC0C0C0,
  410.                 },
  411.                 {                  
  412.                     "name" : "activate",
  413.                     "type" : "toggle_button",
  414.  
  415.                     "x" : 217,
  416.                     "y" : 483,
  417.  
  418.                     "text" : uiScriptLocale.DRAGONSOUL_ACTIVATE,
  419.  
  420.                     "default_image" : "d:/ymir work/ui/dragonsoul/m_button01.tga",
  421.                     "over_image" : "d:/ymir work/ui/dragonsoul/m_button02.tga",
  422.                     "down_image" : "d:/ymir work/ui/dragonsoul/m_button03.tga",
  423.                 },
  424.             ),
  425.         },
  426.     ),
  427. }
Advertisement
Add Comment
Please, Sign In to add comment