1. import uiScriptLocale
  2. window = {
  3. "name" : "RefineDialog",
  4. "style" : ("movable", "float",),
  5. "x" : SCREEN_WIDTH - 400,
  6. "y" : 70 * 800 / SCREEN_HEIGHT,
  7. "width" : 0,
  8. "height" : 0 + 31,
  9. "children" :
  10. (
  11. {
  12. "name" : "Board",
  13. "type" : "board",
  14. "style" : ("attach",),
  15. "x" : 0,
  16. "y" : 0,
  17. "width" : 0,
  18. "height" : 0 + 31,
  19. "children" :
  20. (
  21. {
  22. "name" : "TitleBar",
  23. "type" : "titlebar",
  24. "style" : ("attach",),
  25. "x" : 8,
  26. "y" : 8,
  27. "width" : 0,
  28. "color" : "red",
  29. "children" :
  30. (
  31. {
  32. "name" : "TitleName",
  33. "type" : "text",
  34. "text" : uiScriptLocale.REFINE_TTILE,
  35. "horizontal_align" : "center",
  36. "text_horizontal_align" : "center",
  37. "x" : 0,
  38. "y" : 3,
  39. },
  40. ),
  41. },
  42. {
  43. "name" : "SuccessPercentage",
  44. "type" : "text",
  45. "text" : uiScriptLocale.REFINE_INFO,
  46. "horizontal_align" : "center",
  47. "vertical_align" : "bottom",
  48. "text_horizontal_align" : "center",
  49. "x" : 0,
  50. "y" : 60,
  51. },
  52. {
  53. "name" : "Cost",
  54. "type" : "text",
  55. "text" : uiScriptLocale.REFINE_COST,
  56. "horizontal_align" : "center",
  57. "vertical_align" : "bottom",
  58. "text_horizontal_align" : "center",
  59. "x" : 0,
  60. "y" : 47,
  61. },
  62. {
  63. "name" : "AcceptButton",
  64. "type" : "button",
  65. "x" : -35,
  66. "y" : 30,
  67. # "text" : uiScriptLocale.OK,
  68. "horizontal_align" : "center",
  69. "vertical_align" : "bottom",
  70. "default_image" : "d:/ymir work/ui/new/ok1.sub",
  71. "over_image" : "d:/ymir work/ui/new/ok2.sub",
  72. "down_image" : "d:/ymir work/ui/new/ok3.sub",
  73. },
  74. {
  75. "name" : "CancelButton",
  76. "type" : "button",
  77. "x" : 35,
  78. "y" : 30,
  79. # "text" : uiScriptLocale.CANCEL,
  80. "horizontal_align" : "center",
  81. "vertical_align" : "bottom",
  82. "default_image" : "d:/ymir work/ui/new/no1.sub",
  83. "over_image" : "d:/ymir work/ui/new/no2.sub",
  84. "down_image" : "d:/ymir work/ui/new/no3.sub",
  85. },
  86. ),
  87. },
  88. ),
  89. }