Advertisement
deadx2

Untitled

Sep 29th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.02 KB | None | 0 0
  1. import localemg
  2. import uiScriptLocaleMG
  3.  
  4. LOCALE_PATH = uiScriptLocaleMG.WINDOWS_PATH
  5. ICON_SLOT_FILE = "d:/ymir work/ui/public/Slot_Base.sub"
  6.  
  7. window = {
  8.     "name" : "CubeWindow",
  9.  
  10. #   "x" : 430,
  11. #   "y" : 130,
  12.     "x" : SCREEN_WIDTH - 176 - 200 - 80,
  13.     "y" : SCREEN_HEIGHT - 37 - 563,
  14.  
  15.  
  16.     "style" : ("movable", "float",),
  17.  
  18.     "width" : 285,
  19.     "height" : 521,
  20.  
  21.     "children" :
  22.     (
  23.         {
  24.             "name" : "board",
  25.             "type" : "expanded_image",
  26.             "style" : ("attach",),
  27.  
  28.             "x" : 0,
  29.             "y" : 0,
  30.  
  31.             "width"     : 285,
  32.             "height"    : 521,
  33.  
  34.             "image"     : uiScriptLocaleMG.LOCALE_UISCRIPT_PATH + "new_cube_bg.tga",
  35.  
  36.             "children" :
  37.             (
  38.                 ## Title
  39.                 {
  40.                     "name" : "TitleBar",
  41.                     "type" : "titlebar",
  42.                     "style" : ("attach",),
  43.  
  44.                     "x" : 5,
  45.                     "y" : 5,
  46.  
  47.                     "width" : 273,
  48.                     "color" : "yellow",
  49.  
  50.                     "children" :
  51.                     (
  52.                         { "name":"TitleName", "type":"text", "x":77, "y":3, "text":uiScriptLocaleMG.CUBE_TITLE, "text_horizontal_align":"center" },
  53.                     ),
  54.                 },
  55.  
  56.                 ## Cube Slot
  57.                 {
  58.                     "name" : "CubeSlot",
  59.                     "type" : "grid_table",
  60.  
  61.                     "x" : 14,
  62.                     "y" : 364,
  63.  
  64.                     "start_index" : 0,
  65.                     "x_count" : 8,
  66.                     "y_count" : 3,
  67.                     "x_step" : 32,
  68.                     "y_step" : 32,
  69.  
  70.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub"
  71.                 },
  72.                 ## Print
  73.                 {
  74.                     "name" : "NeedMoney",
  75.                     "type" : "text",
  76.  
  77.                     "x" : 20,
  78.                     "y" : 468,
  79.  
  80.                     "width" : 200,
  81.  
  82.                     "horizontal_align" : "right",
  83.                     "text_horizontal_align" : "right",
  84.  
  85.                     "text" : localemg.NumberToMoneyString(0),
  86.                 },
  87.  
  88.                 {
  89.                     "name" : "contentScrollbar",
  90.                     "type" : "thin_scrollbar",
  91.  
  92.                     "x" : 253,
  93.                     "y" : 38,
  94.  
  95.                     "size" : 315,
  96.                 },
  97.  
  98.                 # Cube Result List. 1 ~ 3
  99.                 {
  100.                     "name" : "result1board",
  101.                     "type" : "window",
  102.                    
  103.                     "x" : 25,
  104.                     "y" : 41,
  105.                    
  106.                     "width" : 216,
  107.                     "height" : 64,
  108.  
  109.                     "children" :
  110.                     (
  111.                         {
  112.                             "name" : "result1",
  113.                             "type" : "grid_table",
  114.                             "start_index" : 0,
  115.                        
  116.                             "x_count" : 1,
  117.                             "y_count" : 3,
  118.                             "x_step" : 32,
  119.                             "y_step" : 32,
  120.  
  121.                             "x" : 0,
  122.                             "y" : 0,
  123.                         },
  124.                         {
  125.                             "name" : "material11",
  126.                             "type" : "grid_table",
  127.                             "start_index" : 0,
  128.                        
  129.                             "x_count" : 1,
  130.                             "y_count" : 3,
  131.                             "x_step" : 32,
  132.                             "y_step" : 32,
  133.  
  134.                             "x" : 57,
  135.                             "y" : 0,
  136.                         },
  137.                         {
  138.                             "name" : "material12",
  139.                             "type" : "grid_table",
  140.                             "start_index" : 0,
  141.                        
  142.                             "x_count" : 1,
  143.                             "y_count" : 3,
  144.                             "x_step" : 32,
  145.                             "y_step" : 32,
  146.  
  147.                             "x" : 90,
  148.                             "y" : 0,
  149.                         },
  150.                         {
  151.                             "name" : "material13",
  152.                             "type" : "grid_table",
  153.                             "start_index" : 0,
  154.                        
  155.                             "x_count" : 1,
  156.                             "y_count" : 3,
  157.                             "x_step" : 32,
  158.                             "y_step" : 32,
  159.  
  160.                             "x" : 123,
  161.                             "y" : 0,
  162.                         },
  163.                         {
  164.                             "name" : "material14",
  165.                             "type" : "grid_table",
  166.                             "start_index" : 0,
  167.                        
  168.                             "x_count" : 1,
  169.                             "y_count" : 3,
  170.                             "x_step" : 32,
  171.                             "y_step" : 32,
  172.  
  173.                             "x" : 156,
  174.                             "y" : 0,
  175.                         },
  176.                         {
  177.                             "name" : "material15",
  178.                             "type" : "grid_table",
  179.                             "start_index" : 0,
  180.                        
  181.                             "x_count" : 1,
  182.                             "y_count" : 3,
  183.                             "x_step" : 32,
  184.                             "y_step" : 32,
  185.  
  186.                             "x" : 189,
  187.                             "y" : 0,
  188.                         },
  189.                     ),
  190.  
  191.                 },
  192.                 {
  193.                     "name" : "result2board",
  194.                     "type" : "window",
  195.                    
  196.                     "x" : 25,
  197.                     "y" : 147,
  198.                    
  199.                     "width" : 216,
  200.                     "height" : 64,
  201.  
  202.                     "children" :
  203.                     (
  204.                         {
  205.                             "name" : "result2",
  206.                             "type" : "grid_table",
  207.                             "start_index" : 0,
  208.                        
  209.                             "x_count" : 1,
  210.                             "y_count" : 3,
  211.                             "x_step" : 32,
  212.                             "y_step" : 32,
  213.  
  214.                             "x" : 0,
  215.                             "y" : 0,
  216.                         },
  217.                         {
  218.                             "name" : "material21",
  219.                             "type" : "grid_table",
  220.                             "start_index" : 0,
  221.                        
  222.                             "x_count" : 1,
  223.                             "y_count" : 3,
  224.                             "x_step" : 32,
  225.                             "y_step" : 32,
  226.  
  227.                             "x" : 57,
  228.                             "y" : 0,
  229.                         },
  230.                         {
  231.                             "name" : "material22",
  232.                             "type" : "grid_table",
  233.                             "start_index" : 0,
  234.                        
  235.                             "x_count" : 1,
  236.                             "y_count" : 3,
  237.                             "x_step" : 32,
  238.                             "y_step" : 32,
  239.  
  240.                             "x" : 90,
  241.                             "y" : 0,
  242.                         },
  243.                         {
  244.                             "name" : "material23",
  245.                             "type" : "grid_table",
  246.                             "start_index" : 0,
  247.                        
  248.                             "x_count" : 1,
  249.                             "y_count" : 3,
  250.                             "x_step" : 32,
  251.                             "y_step" : 32,
  252.  
  253.                             "x" : 123,
  254.                             "y" : 0,
  255.                         },
  256.                         {
  257.                             "name" : "material24",
  258.                             "type" : "grid_table",
  259.                             "start_index" : 0,
  260.                        
  261.                             "x_count" : 1,
  262.                             "y_count" : 3,
  263.                             "x_step" : 32,
  264.                             "y_step" : 32,
  265.  
  266.                             "x" : 156,
  267.                             "y" : 0,
  268.                         },
  269.                         {
  270.                             "name" : "material25",
  271.                             "type" : "grid_table",
  272.                             "start_index" : 0,
  273.                        
  274.                             "x_count" : 1,
  275.                             "y_count" : 3,
  276.                             "x_step" : 32,
  277.                             "y_step" : 32,
  278.  
  279.                             "x" : 189,
  280.                             "y" : 0,
  281.                         },
  282.                     ),
  283.                 },
  284.                 {
  285.                     "name" : "result3board",
  286.                     "type" : "window",
  287.                    
  288.                     "x" : 25,
  289.                     "y" : 253,
  290.                    
  291.                     "width" : 216,
  292.                     "height" : 64,
  293.  
  294.                     "children" :
  295.                     (
  296.                         {
  297.                             "name" : "result3",
  298.                             "type" : "grid_table",
  299.                             "start_index" : 0,
  300.                        
  301.                             "x_count" : 1,
  302.                             "y_count" : 3,
  303.                             "x_step" : 32,
  304.                             "y_step" : 32,
  305.  
  306.                             "x" : 0,
  307.                             "y" : 0,
  308.                         },
  309.                         {
  310.                             "name" : "material31",
  311.                             "type" : "grid_table",
  312.                             "start_index" : 0,
  313.                        
  314.                             "x_count" : 1,
  315.                             "y_count" : 3,
  316.                             "x_step" : 32,
  317.                             "y_step" : 32,
  318.  
  319.                             "x" : 57,
  320.                             "y" : 0,
  321.                         },
  322.                         {
  323.                             "name" : "material32",
  324.                             "type" : "grid_table",
  325.                             "start_index" : 0,
  326.                        
  327.                             "x_count" : 1,
  328.                             "y_count" : 3,
  329.                             "x_step" : 32,
  330.                             "y_step" : 32,
  331.  
  332.                             "x" : 90,
  333.                             "y" : 0,
  334.                         },
  335.                         {
  336.                             "name" : "material33",
  337.                             "type" : "grid_table",
  338.                             "start_index" : 0,
  339.                        
  340.                             "x_count" : 1,
  341.                             "y_count" : 3,
  342.                             "x_step" : 32,
  343.                             "y_step" : 32,
  344.  
  345.                             "x" : 123,
  346.                             "y" : 0,
  347.                         },
  348.                         {
  349.                             "name" : "material34",
  350.                             "type" : "grid_table",
  351.                             "start_index" : 0,
  352.                        
  353.                             "x_count" : 1,
  354.                             "y_count" : 3,
  355.                             "x_step" : 32,
  356.                             "y_step" : 32,
  357.  
  358.                             "x" : 156,
  359.                             "y" : 0,
  360.                         },
  361.                         {
  362.                             "name" : "material35",
  363.                             "type" : "grid_table",
  364.                             "start_index" : 0,
  365.                        
  366.                             "x_count" : 1,
  367.                             "y_count" : 3,
  368.                             "x_step" : 32,
  369.                             "y_step" : 32,
  370.  
  371.                             "x" : 189,
  372.                             "y" : 0,
  373.                         },
  374.                     ),
  375.                 },
  376.  
  377.  
  378.                 ## Button
  379.                 {
  380.                     "name" : "AcceptButton",
  381.                     "type" : "button",
  382.  
  383.                     "x" : 148,
  384.                     "y" : 32,
  385.                     "vertical_align" : "bottom",
  386.  
  387.                     "text" : uiScriptLocaleMG.OK,
  388.  
  389.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  390.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  391.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  392.                 },
  393.                 {
  394.                     "name" : "CancelButton",
  395.                     "type" : "button",
  396.  
  397.                     "x" : 211,
  398.                     "y" : 32,
  399.                     "vertical_align" : "bottom",
  400.  
  401.                     "text" : uiScriptLocaleMG.CANCEL,
  402.  
  403.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  404.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  405.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  406.                 },
  407.                
  408.             ),
  409.         },
  410.     ),
  411. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement