Guest User

Untitled

a guest
May 9th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.16 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. window = {
  4.     "name" : "RefineDialog",
  5.     "style" : ("movable", "float",),
  6.  
  7.     "x" : SCREEN_WIDTH - 400,
  8.     "y" : 70 * 800 / SCREEN_HEIGHT,
  9.  
  10.     "width" : 0,
  11.     "height" : 0,
  12.  
  13.     "children" :
  14.     (
  15.         {
  16.             "name" : "Board",
  17.             "type" : "board",
  18.             "style" : ("attach",),
  19.  
  20.             "x" : 0,
  21.             "y" : 0,
  22.  
  23.             "width" : 0,
  24.             "height" : 0,
  25.  
  26.             "children" :
  27.             (
  28.                 {
  29.                     "name" : "TitleBar",
  30.                     "type" : "titlebar",
  31.                     "style" : ("attach",),
  32.  
  33.                     "x" : 8,
  34.                     "y" : 8,
  35.  
  36.                     "width" : 0,
  37.                     "color" : "red",
  38.  
  39.                     "children" :
  40.                     (
  41.                         {
  42.                             "name" : "TitleName",
  43.                             "type" : "text",
  44.                             "text" : uiScriptLocale.REFINE_TTILE,
  45.                             "horizontal_align" : "center",
  46.                             "text_horizontal_align" : "center",
  47.                             "x" : 0,
  48.                             "y" : 3,
  49.                         },
  50.                     ),
  51.                 },
  52.                 {
  53.                     "name" : "SuccessPercentage",
  54.                     "type" : "text",
  55.                     "text" : uiScriptLocale.REFINE_INFO,
  56.                     "horizontal_align" : "center",
  57.                     "vertical_align" : "bottom",
  58.                     "text_horizontal_align" : "center",
  59.                     "x" : 0,
  60.                     "y" : 70,
  61.                 },
  62.                 {
  63.                     "name" : "Cost",
  64.                     "type" : "text",
  65.                     "text" : uiScriptLocale.REFINE_COST,
  66.                     "horizontal_align" : "center",
  67.                     "vertical_align" : "bottom",
  68.                     "text_horizontal_align" : "center",
  69.                     "x" : 0,
  70.                     "y" : 54,
  71.                 },
  72.                 {
  73.                     "name" : "AcceptButton",
  74.                     "type" : "button",
  75.  
  76.                     "x" : -35,
  77.                     "y" : 35,
  78.  
  79.                     "text" : uiScriptLocale.OK,
  80.                     "horizontal_align" : "center",
  81.                     "vertical_align" : "bottom",
  82.  
  83.                     "default_image" : "d:/ymir work/ui/public/Middle_Button_01.sub",
  84.                     "over_image" : "d:/ymir work/ui/public/Middle_Button_02.sub",
  85.                     "down_image" : "d:/ymir work/ui/public/Middle_Button_03.sub",
  86.                 },
  87.                 {
  88.                     "name" : "CancelButton",
  89.                     "type" : "button",
  90.  
  91.                     "x" : 35,
  92.                     "y" : 35,
  93.  
  94.                     "text" : uiScriptLocale.CANCEL,
  95.                     "horizontal_align" : "center",
  96.                     "vertical_align" : "bottom",
  97.  
  98.                     "default_image" : "d:/ymir work/ui/public/Middle_Button_01.sub",
  99.                     "over_image" : "d:/ymir work/ui/public/Middle_Button_02.sub",
  100.                     "down_image" : "d:/ymir work/ui/public/Middle_Button_03.sub",
  101.                 },
  102.             ),
  103.         },
  104.     ),
  105. }
Add Comment
Please, Sign In to add comment