Advertisement
Guest User

Pickmoneydialog2

a guest
Dec 1st, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.72 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. window = {
  4.     "name" : "PickMoneyDialog",
  5.  
  6.     "x" : 100,
  7.     "y" : 100,
  8.  
  9.     "style" : ("movable", "float",),
  10.  
  11.     "width" : 170,
  12.     "height" : 90,
  13.  
  14.     "children" :
  15.     (
  16.         {
  17.             "name" : "board",
  18.             "type" : "board_with_titlebar",
  19.  
  20.             "x" : 0,
  21.             "y" : 0,
  22.  
  23.             "width" : 170,
  24.             "height" : 90,
  25.             "title" : uiScriptLocale.PICK_MONEY_TITLE,
  26.  
  27.             "children" :
  28.             (
  29.  
  30.                 ## Money Slot
  31.                 {
  32.                     "name" : "money_slot",
  33.                     "type" : "image",
  34.  
  35.                     "x" : 20,
  36.                     "y" : 34,
  37.  
  38.                     "image" : "d:/ymir work/ui/public/Parameter_Slot_02.sub",
  39.  
  40.                     "children" :
  41.                     (
  42.                         {
  43.                             "name" : "money_value",
  44.                             "type" : "editline",
  45.  
  46.                             "x" : 3,
  47.                             "y" : 2,
  48.  
  49.                             "width" : 60,
  50.                             "height" : 18,
  51.  
  52.                             "input_limit" : 6,
  53.                             "only_number" : 1,
  54.  
  55.                             "text" : "1",
  56.                         },
  57.                         {
  58.                             "name" : "max_value",
  59.                             "type" : "text",
  60.  
  61.                             "x" : 63,
  62.                             "y" : 3,
  63.  
  64.                             "text" : "/ 999999",
  65.                         },
  66.                     ),
  67.                 },
  68.  
  69.                 ## Button
  70.                 {
  71.                     "name" : "accept_button",
  72.                     "type" : "button",
  73.  
  74.                     "x" : 170/2 - 61 - 5,
  75.                     "y" : 58,
  76.  
  77.                     "text" : uiScriptLocale.OK,
  78.  
  79.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  80.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  81.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  82.                 },
  83.                 {
  84.                     "name" : "cancel_button",
  85.                     "type" : "button",
  86.  
  87.                     "x" : 170/2 + 5,
  88.                     "y" : 58,
  89.  
  90.                     "text" : uiScriptLocale.CANCEL,
  91.  
  92.                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
  93.                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
  94.                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
  95.                 },
  96.             ),
  97.         },
  98.     ),
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement