Advertisement
samuel-roberto

ExchangeDialog.py ~ 24 Slot Item

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