Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.08 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. LOCALE_PATH = uiScriptLocale.WINDOWS_PATH
  4. ROOT_PATH = "d:/ymir work/ui/game/fishing/"
  5.  
  6. # 278 : ¹è°æÀ̹ÌÁö ³Êºñ, 14 : ¿©¹é
  7. WINDOW_WIDTH = 278 + 14
  8. # 226 : ¹è°æÀ̹ÌÁö ³ôÀÌ, 37 : À§¾Æ·¡ ¿©¹é(ŸÀÌƲ) + 30 (ŸÀÌ¸Ó ³ôÀÌ28 + ¿©¹é 1¾¿)
  9. WINDOW_HEIGHT = 226 + 37
  10.  
  11. window = {
  12.     "name" : "FishingGameWindow",
  13.     "style" : ("movable", "float", "limit", ),
  14.        
  15.     "x" : 0,
  16.     "y" : 0,
  17.    
  18.     "width" : WINDOW_WIDTH,
  19.     "height" : WINDOW_HEIGHT,
  20.    
  21.     "children" :
  22.     [
  23.         {
  24.             "name" : "board",
  25.             "type" : "board_with_titlebar",
  26.             "style" : ("ltr", ),
  27.            
  28.             "x" : 0,
  29.             "y" : 0,
  30.            
  31.             "width" : WINDOW_WIDTH,
  32.             "height" : WINDOW_HEIGHT,
  33.             "title" : "Fishing",
  34.        
  35.        
  36.             "children" :
  37.             (
  38.                 ## BackGround Water
  39.                 {
  40.                     "name" : "fishing_background_water",
  41.                     "type" : "image",
  42.                     "style" : ("ltr", ),
  43.                     "x" : 7,
  44.                     "y" : 29,
  45.                     "image" : ROOT_PATH + "fishing_background_water.sub",
  46.                    
  47.                     "children" :
  48.                     (
  49.                         ## BackGround Navigation Area
  50.                         {
  51.                             "name" : "fishing_water_navArea",
  52.                             "type" : "box",
  53.                             "style" : ("not_pick", "ltr", ),
  54.                             "x" : 15,
  55.                             "y" : 15,
  56.                             "width" : 278 - 30,
  57.                             "height" : 226 - 30,
  58.                             "color" : 0xFF35302D,
  59.                         },
  60.                        
  61.                         ## Goal Circle
  62.                         {
  63.                             "name" : "fishing_goal_circle",
  64.                             "type" : "image",
  65.                             "style" : ("not_pick", "ltr", ),
  66.                             "x" : 68,
  67.                             "y" : 42,
  68.                             "image" : ROOT_PATH + "fishing_goal_circle.sub",
  69.                         },
  70.                     ),
  71.                 },             
  72.                
  73.                
  74.                 ## Goal Success Count
  75.                 {
  76.                     "name" : "fishing_goal_count",
  77.                     "type" : "expanded_image",
  78.                     "style" : ("ltr", ),
  79.                     "x" : 7 + 278 - 73,
  80.                     "y" : 29 + 5,
  81.                     "image" : ROOT_PATH + "fishing_goal_count.sub",
  82.                    
  83.                     "children" :
  84.                     (
  85.                         {
  86.                             "name" : "fishing_goal_count_text",
  87.                             "type" : "text",
  88.                             "style" : ("ltr", ),
  89.                             "x" : 45,
  90.                             "y" : 8,
  91.                             "text" : "2/5",
  92.                             "text_horizontal_align" : "center"  
  93.                         },
  94.                     ),
  95.                 },
  96.                
  97.                 # Debug Text
  98.                 {
  99.                     "name" : "debug_text_fish_pos",
  100.                     "type" : "text",
  101.                     "x" : 7,
  102.                     "y" : 29 + 5 + 8,
  103.                     "text" : "",
  104.                     "text_horizontal_align" : "center"  
  105.                 },
  106.                
  107.                 {
  108.                     "name" : "debug_text_circle_pos",
  109.                     "type" : "text",
  110.                     "x" : 7,
  111.                     "y" : 29 + 5 + 8 + 10,
  112.                     "text" : "",
  113.                     "text_horizontal_align" : "center"  
  114.                 },
  115.                
  116.                 {
  117.                     "name" : "debug_text_mouse_pos",
  118.                     "type" : "text",
  119.                     "x" : 7,
  120.                     "y" : 29 + 5 + 8 + 20,
  121.                     "text" : "",
  122.                     "text_horizontal_align" : "center"  
  123.                 },
  124.                
  125.                 ## Timer Base
  126.                 {
  127.                     "name" : "fishing_timer_baseImg",
  128.                     "type" : "image",
  129.                     "x" : 7 + 28,
  130.                     "y" : 223,
  131.                     "image" : ROOT_PATH + "fishing_timer_base.sub",            
  132.                 },
  133.                
  134.                 ## Timer Gauge type expand_image ?
  135.                 {
  136.                     "name" : "fishing_timer_gauge",
  137.                     "type" : "expanded_image",
  138.                     "x" : 7 + 28,
  139.                     "y" : 223,
  140.                     "image" : ROOT_PATH + "fishing_timer_gauge.sub",
  141.                 },
  142.                                
  143.             ),
  144.         }, 
  145.     ],
  146. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement