Guest User

byNeXus_Inforge.net

a guest
Apr 8th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 10.63 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. ROOT = "d:/ymir work/ui/game/"
  4.  
  5. window = {
  6.         "name" : "ExchangeDialog",
  7.  
  8.         "x" : 0,
  9.         "y" : 0,
  10.  
  11.         "style" : ("movable", "float",),
  12.  
  13.         "width" : 400,
  14.         "height" : 200,
  15.  
  16.         "children" :
  17.         (
  18.                 {
  19.                         "name" : "board",
  20.                         "type" : "board",
  21.                         "style" : ("attach",),
  22.  
  23.                         "x" : 0,
  24.                         "y" : 0,
  25.  
  26.                         "width" : 400,
  27.                         "height" : 200,
  28.  
  29.                         "children" :
  30.                         (
  31.                                 ## Title
  32.                                 {
  33.                                         "name" : "TitleBar",
  34.                                         "type" : "titlebar",
  35.                                         "style" : ("attach",),
  36.  
  37.                                         "x" : 8,
  38.                                         "y" : 8,
  39.  
  40.                                         "width" : 384,
  41.                                         "color" : "gray",
  42.  
  43.                                         "children" :
  44.                                         (
  45.                                                 { "name":"TitleName", "type":"text", "x":192, "y":3, "text":uiScriptLocale.EXCHANGE_TITLE, "text_horizontal_align":"center" },
  46.                                         ),
  47.                                 },
  48.  
  49.                                 ## MiddleBar
  50.                                 {
  51.                                         "name" : "Middle_Bar",
  52.                                         "type" : "image",
  53.  
  54.                                         "x" : 200,
  55.                                         "y" : 31,
  56.  
  57.                                         "image" : ROOT + "windows/middlebar.sub",
  58.                                 },
  59.  
  60.                                 ## Owner
  61.                                 {
  62.                                         "name" : "Owner",
  63.                                         "type" : "window",
  64.  
  65.                                         "x" : 200,
  66.                                         "y" : 33,
  67.  
  68.                                         "width" : 200,
  69.                                         "height" : 150,
  70.  
  71.                                         "children" :
  72.                                         (
  73.                                                 {
  74.                                                         "name" : "Owner_Slot",
  75.                                                         "type" : "grid_table",
  76.  
  77.                                                         "start_index" : 0,
  78.  
  79.                                                         "x" : 0,
  80.                                                         "y" : 0,
  81.  
  82.                                                         "x_count" : 6,
  83.                                                         "y_count" : 4,
  84.                                                         "x_step" : 32,
  85.                                                         "y_step" : 32,
  86.                                                         "x_blank" : 0,
  87.                                                         "y_blank" : 0,
  88.  
  89.                                                         "image" : "d:/ymir work/ui/public/slot_base.sub",
  90.                                                 },
  91.                                                 {
  92.                                                         "name" : "Owner_Money",
  93.                                                         "type" : "button",
  94.  
  95.                                                         "x" : 0,
  96.                                                         "y" : 136,
  97.  
  98.                                                         #"image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  99.  
  100.                                                         "default_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  101.                                                         "over_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  102.                                                         "down_image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  103.  
  104.                                                         "children" :
  105.                                                         (
  106.                                                                 {
  107.                                                                         "name" : "Owner_Money_Value",
  108.                                                                         "type" : "text",
  109.  
  110.                                                                         "x" : 59,
  111.                                                                         "y" : 2,
  112.  
  113.                                                                         "text" : "1234567",
  114.  
  115.                                                                         "text_horizontal_align" : "right",
  116.                                                                 },
  117.                                                         ),
  118.                                                 },
  119.                                                 {
  120.                                                         "name" : "Owner_Accept_Light",
  121.                                                         "type" : "button",
  122.  
  123.                                                         "x" : 62,
  124.                                                         "y" : 135,
  125.  
  126.                                                         "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
  127.                                                         "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
  128.                                                         "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
  129.                                                 },
  130.                                                 {
  131.                                                         "name" : "Owner_Accept_Button",
  132.                                                         "type" : "toggle_button",
  133.  
  134.                                                         "x" : 85,
  135.                                                         "y" : 135,
  136.  
  137.                                                         "text" : uiScriptLocale.EXCHANGE_ACCEPT,
  138.  
  139.                                                         "default_image" : "d:/ymir work/ui/public/small_button_01.sub",
  140.                                                         "over_image" : "d:/ymir work/ui/public/small_button_02.sub",
  141.                                                         "down_image" : "d:/ymir work/ui/public/small_button_03.sub",
  142.                                                 },
  143.                                         ),
  144.                                 },
  145.  
  146.                                 ## Target
  147.                                 {
  148.                                         "name" : "Target",
  149.                                         "type" : "window",
  150.  
  151.                                         "x" : 10,
  152.                                         "y" : 33,
  153.  
  154.                                         "width" : 200,
  155.                                         "height" : 150,
  156.  
  157.                                         "children" :
  158.                                         (
  159.                                                 {
  160.                                                         "name" : "Target_Slot",
  161.                                                         "type" : "grid_table",
  162.  
  163.                                                         "start_index" : 0,
  164.  
  165.                                                         "x" : 0,
  166.                                                         "y" : 0,
  167.  
  168.                                                         "x_count" : 6,
  169.                                                         "y_count" : 4,
  170.                                                         "x_step" : 32,
  171.                                                         "y_step" : 32,
  172.                                                         "x_blank" : 0,
  173.                                                         "y_blank" : 0,
  174.  
  175.                                                         "image" : "d:/ymir work/ui/public/slot_base.sub",
  176.                                                 },
  177.                                                 {
  178.                                                         "name" : "Target_Money",
  179.                                                         "type" : "image",
  180.  
  181.                                                         "x" : 0,
  182.                                                         "y" : 135,
  183.  
  184.                                                         "image" : "d:/ymir work/ui/public/parameter_slot_02.sub",
  185.  
  186.                                                         "children" :
  187.                                                         (
  188.                                                                 {
  189.                                                                         "name" : "Target_Money_Value",
  190.                                                                         "type" : "text",
  191.  
  192.                                                                         "x" : 59,
  193.                                                                         "y" : 2,
  194.  
  195.                                                                         "text" : "1234567",
  196.  
  197.                                                                         "text_horizontal_align" : "right",
  198.                                                                 },
  199.                                                         ),
  200.                                                 },
  201.                                                 {
  202.                                                         "name" : "Target_Accept_Light",
  203.                                                         "type" : "button",
  204.  
  205.                                                         "x" : 62,
  206.                                                         "y" : 135,
  207.  
  208.                                                         "default_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
  209.                                                         "over_image" : "d:/ymir work/ui/game/windows/accept_button_off.sub",
  210.                                                         "down_image" : "d:/ymir work/ui/game/windows/accept_button_on.sub",
  211.                                                 },
  212.                                         ),
  213.                                 },
  214.                         ),
  215.                 },
  216.         ),
  217. }
Add Comment
Please, Sign In to add comment