Guest User

soulstoneboard.py

a guest
Apr 18th, 2019
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.40 KB | None | 0 0
  1. import uiScriptLocale
  2.  
  3. BOARD_WIDTH = 250
  4. BOARD_HEIGHT = 35 + 32 + 10 + 32 + 10 + 25 + 15
  5.  
  6. window = {
  7.     "name" : "SoulStoneBoard",
  8.  
  9.     "x" : SCREEN_WIDTH / 2 - BOARD_WIDTH / 2,
  10.     "y" : SCREEN_HEIGHT / 2 - BOARD_HEIGHT / 2,
  11.  
  12.     "style" : ("movable", "float",),
  13.  
  14.     "width"  : BOARD_WIDTH,
  15.     "height" : BOARD_HEIGHT,
  16.  
  17.     "children" :
  18.     (
  19.         {
  20.             "name" : "board",
  21.             "type" : "board_with_titlebar",
  22.             "style" : ("attach",),
  23.            
  24.             "x" : 0,
  25.             "y" : 0,
  26.            
  27.             "width"  : BOARD_WIDTH,
  28.             "height" : BOARD_HEIGHT,
  29.             "title" : uiScriptLocale.SOUL_STONE_TITLE,
  30.  
  31.             "children" :
  32.             (
  33.                 {
  34.                     "name" : "stone_slot",
  35.                     "type" : "slot",
  36.  
  37.                     "x" : 0,
  38.                     "y" : 35,
  39.  
  40.                     "width" : 32,
  41.                     "height" : 32,
  42.  
  43.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub",
  44.  
  45.                     "horizontal_align" : "center",
  46.  
  47.                     "slot" : (
  48.                         {"index":0, "x":0, "y":0, "width":32, "height":32},
  49.                     ),
  50.                 },
  51.                 {
  52.                     "name" : "skill_slot",
  53.                     "type" : "slot",
  54.  
  55.                     "x" : 0,
  56.                     "y" : 35 + 32 + 10,
  57.  
  58.                     "width" : 32 * 6 + 5 * (6 - 1),
  59.                     "height" : 32,
  60.  
  61.                     "image" : "d:/ymir work/ui/public/Slot_Base.sub",
  62.  
  63.                     "horizontal_align" : "center",
  64.  
  65.                     "slot" : (
  66.                         {"index":0, "x":37*0+15, "y":0, "width":32, "height":32},
  67.                         {"index":1, "x":37*1+15, "y":0, "width":32, "height":32},
  68.                         {"index":2, "x":37*2+15, "y":0, "width":32, "height":32},
  69.                         {"index":3, "x":37*3+15, "y":0, "width":32, "height":32},
  70.                         {"index":4, "x":37*4+15, "y":0, "width":32, "height":32},
  71.                         {"index":5, "x":37*5+15, "y":0, "width":32, "height":32},
  72.                     ),
  73.                 },
  74.                 {
  75.                     "name" : "button_single",
  76.                     "type" : "button",
  77.  
  78.                     "x" : BOARD_WIDTH / 4 * 1 - 88 / 2,
  79.                     "y" : 35 + 32 + 10 + 32 + 10,
  80.  
  81.                     "default_image" : "d:/ymir work/ui/public/Large_Button_01.sub",
  82.                     "over_image" : "d:/ymir work/ui/public/Large_Button_02.sub",
  83.                     "down_image" : "d:/ymir work/ui/public/Large_Button_03.sub",
  84.  
  85.                     "text" : uiScriptLocale.SOUL_STONE_BUTTON_SINGLE,
  86.                 },
  87.                 {
  88.                     "name" : "button_all",
  89.                     "type" : "button",
  90.  
  91.                     "x" : BOARD_WIDTH / 4 * 3 - 88 / 2,
  92.                     "y" : 35 + 32 + 10 + 32 + 10,
  93.  
  94.                     "default_image" : "d:/ymir work/ui/public/Large_Button_01.sub",
  95.                     "over_image" : "d:/ymir work/ui/public/Large_Button_02.sub",
  96.                     "down_image" : "d:/ymir work/ui/public/Large_Button_03.sub",
  97.  
  98.                     "text" : uiScriptLocale.SOUL_STONE_BUTTON_ALL,
  99.                 },
  100.             ),
  101.         },
  102.     ),
  103. }
Advertisement
Add Comment
Please, Sign In to add comment