meleys

Untitled

Jul 3rd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.51 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. ROOT_PATH = "d:/ymir work/ui/public/"
  4.  
  5. TEMPORARY_X = +13
  6. TEXT_TEMPORARY_X = -10
  7. BUTTON_TEMPORARY_X = 5
  8. PVP_X = -10
  9.  
  10. window = {
  11.     "name" : "SystemOptionDialog",
  12.     "style" : ("movable", "float",),
  13.  
  14.     "x" : 0,
  15.     "y" : 0,
  16.  
  17.     "width" : 305,
  18.     "height" : 255,
  19.  
  20.     "children" :
  21.     (
  22.         {
  23.             "name" : "board",
  24.             "type" : "board",
  25.  
  26.             "x" : 0,
  27.             "y" : 0,
  28.  
  29.             "width" : 305,
  30.             "height" : 255,
  31.  
  32.             "children" :
  33.             (
  34.                 ## Title
  35.                 {
  36.                     "name" : "titlebar",
  37.                     "type" : "titlebar",
  38.                     "style" : ("attach",),
  39.  
  40.                     "x" : 8,
  41.                     "y" : 8,
  42.  
  43.                     "width" : 284,
  44.                     "color" : "gray",
  45.  
  46.                     "children" :
  47.                     (
  48.                         {
  49.                         "name":"titlename", "type":"text", "x":0, "y":3,
  50.                         "horizontal_align":"center", "text_horizontal_align":"center",
  51.                         "text": uiScriptLocale.SYSTEMOPTION_TITLE,
  52.                          },
  53.                     ),
  54.                 },
  55.  
  56.                
  57.                 ## Music
  58.                 {
  59.                     "name" : "music_name",
  60.                     "type" : "text",
  61.  
  62.                     "x" : 30,
  63.                     "y" : 75,
  64.  
  65.                     "text" : uiScriptLocale.OPTION_MUSIC,
  66.                 },
  67.                
  68.                 {
  69.                     "name" : "music_volume_controller",
  70.                     "type" : "sliderbar",
  71.  
  72.                     "x" : 110,
  73.                     "y" : 75,
  74.                 },
  75.                
  76.                 {
  77.                     "name" : "bgm_button",
  78.                     "type" : "button",
  79.  
  80.                     "x" : 20,
  81.                     "y" : 100,
  82.  
  83.                     "text" : uiScriptLocale.OPTION_MUSIC_CHANGE,
  84.  
  85.                     "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  86.                     "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  87.                     "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  88.                 },
  89.                
  90.                 {
  91.                     "name" : "bgm_file",
  92.                     "type" : "text",
  93.  
  94.                     "x" : 100,
  95.                     "y" : 102,
  96.  
  97.                     "text" : uiScriptLocale.OPTION_MUSIC_DEFAULT_THEMA,
  98.                 },
  99.                
  100.                 ## Sound
  101.                 {
  102.                     "name" : "sound_name",
  103.                     "type" : "text",
  104.  
  105.                     "x" : 30,
  106.                     "y" : 50,
  107.  
  108.                     "text" : uiScriptLocale.OPTION_SOUND,
  109.                 },
  110.                
  111.                 {
  112.                     "name" : "sound_volume_controller",
  113.                     "type" : "sliderbar",
  114.  
  115.                     "x" : 110,
  116.                     "y" : 50,
  117.                 }, 
  118.  
  119.                 ## 카메라
  120.                 {
  121.                     "name" : "camera_mode",
  122.                     "type" : "text",
  123.  
  124.                     "x" : 40 + TEXT_TEMPORARY_X,
  125.                     "y" : 135+2,
  126.  
  127.                     "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE,
  128.                 },
  129.                
  130.                 {
  131.                     "name" : "camera_short",
  132.                     "type" : "radio_button",
  133.  
  134.                     "x" : 110,
  135.                     "y" : 135,
  136.  
  137.                     "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE_SHORT,
  138.  
  139.                     "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  140.                     "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  141.                     "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  142.                 },
  143.                
  144.                 {
  145.                     "name" : "camera_long",
  146.                     "type" : "radio_button",
  147.  
  148.                     "x" : 110+70,
  149.                     "y" : 135,
  150.  
  151.                     "text" : uiScriptLocale.OPTION_CAMERA_DISTANCE_LONG,
  152.  
  153.                     "default_image" : ROOT_PATH + "Middle_Button_01.sub",
  154.                     "over_image" : ROOT_PATH + "Middle_Button_02.sub",
  155.                     "down_image" : ROOT_PATH + "Middle_Button_03.sub",
  156.                 },
  157.  
  158.                 ## 안개
  159.                 {
  160.                     "name" : "fog_mode",
  161.                     "type" : "text",
  162.  
  163.                     "x" : 30,
  164.                     "y" : 160+2,
  165.  
  166.                     "text" : uiScriptLocale.OPTION_FOG,
  167.                 },
  168.                
  169.                 {
  170.                     "name" : "fog_level0",
  171.                     "type" : "radio_button",
  172.  
  173.                     "x" : 110,
  174.                     "y" : 160,
  175.  
  176.                     "text" : uiScriptLocale.OPTION_FOG_DENSE,
  177.  
  178.                     "default_image" : ROOT_PATH + "small_Button_01.sub",
  179.                     "over_image" : ROOT_PATH + "small_Button_02.sub",
  180.                     "down_image" : ROOT_PATH + "small_Button_03.sub",
  181.                 },
  182.                
  183.                 {
  184.                     "name" : "fog_level1",
  185.                     "type" : "radio_button",
  186.  
  187.                     "x" : 110+50,
  188.                     "y" : 160,
  189.  
  190.                     "text" : uiScriptLocale.OPTION_FOG_MIDDLE,
  191.                    
  192.                     "default_image" : ROOT_PATH + "small_Button_01.sub",
  193.                     "over_image" : ROOT_PATH + "small_Button_02.sub",
  194.                     "down_image" : ROOT_PATH + "small_Button_03.sub",
  195.                 },
  196.                
  197.                 {
  198.                     "name" : "fog_level2",
  199.                     "type" : "radio_button",
  200.  
  201.                     "x" : 110 + 100,
  202.                     "y" : 160,
  203.  
  204.                     "text" : uiScriptLocale.OPTION_FOG_LIGHT,
  205.                    
  206.                     "default_image" : ROOT_PATH + "small_Button_01.sub",
  207.                     "over_image" : ROOT_PATH + "small_Button_02.sub",
  208.                     "down_image" : ROOT_PATH + "small_Button_03.sub",
  209.                 },
  210.  
  211.                 ## 타일 가속
  212.                 {
  213.                     "name" : "tiling_mode",
  214.                     "type" : "text",
  215.  
  216.                     "x" : 40 + TEXT_TEMPORARY_X,
  217.                     "y" : 185+2,
  218.  
  219.                     "text" : uiScriptLocale.OPTION_TILING,
  220.                 },
  221.                
  222.                 {
  223.                     "name" : "tiling_cpu",
  224.                     "type" : "radio_button",
  225.  
  226.                     "x" : 110,
  227.                     "y" : 185,
  228.  
  229.                     "text" : uiScriptLocale.OPTION_TILING_CPU,
  230.  
  231.                     "default_image" : ROOT_PATH + "small_Button_01.sub",
  232.                     "over_image" : ROOT_PATH + "small_Button_02.sub",
  233.                     "down_image" : ROOT_PATH + "small_Button_03.sub",
  234.                 },
  235.                
  236.                 {
  237.                     "name" : "tiling_gpu",
  238.                     "type" : "radio_button",
  239.  
  240.                     "x" : 110+50,
  241.                     "y" : 185,
  242.  
  243.                     "text" : uiScriptLocale.OPTION_TILING_GPU,
  244.  
  245.                     "default_image" : ROOT_PATH + "small_Button_01.sub",
  246.                     "over_image" : ROOT_PATH + "small_Button_02.sub",
  247.                     "down_image" : ROOT_PATH + "small_Button_03.sub",
  248.                 },
  249.                
  250.                 {
  251.                     "name" : "tiling_apply",
  252.                     "type" : "button",
  253.  
  254.                     "x" : 110+100,
  255.                     "y" : 185,
  256.  
  257.                     "text" : uiScriptLocale.OPTION_TILING_APPLY,
  258.  
  259.                     "default_image" : ROOT_PATH + "middle_Button_01.sub",
  260.                     "over_image" : ROOT_PATH + "middle_Button_02.sub",
  261.                     "down_image" : ROOT_PATH + "middle_Button_03.sub",
  262.                 },
  263.  
  264.  
  265.                 ## 그림자
  266. #               {
  267. #                   "name" : "shadow_mode",
  268. #                   "type" : "text",
  269.  
  270. #                   "x" : 30,
  271. #                   "y" : 210,
  272.  
  273. #                   "text" : uiScriptLocale.OPTION_SHADOW,
  274. #               },
  275.                
  276. #               {
  277. #                   "name" : "shadow_bar",
  278. #                   "type" : "sliderbar",
  279.  
  280. #                   "x" : 110,
  281. #                   "y" : 210,
  282. #               },
  283.             ),
  284.         },
  285.     ),
  286. }
Add Comment
Please, Sign In to add comment