コード例 #1
0
ファイル: world.py プロジェクト: Ardnived/Regicide
 def __init__(self, x, y, width, height):
     ActiveListLayer.__init__(self, x, y, width, height, font_name=WorldView.FONT_NAME, font_size=WorldView.FONT_SIZE, line_height=WorldView.LINE_HEIGHT)
     
     y = 0
     for depth, floor in World.FLOORS.iteritems():
         self.items[0][y].text = floor['name']
         self.items[0][y].depth = depth
         y += 1
コード例 #2
0
ファイル: inventory.py プロジェクト: Ardnived/Regicide
 def __init__(self, title, x, y, width, height, header, description_y, columns=1):
     height -= 50
     
     ActiveListLayer.__init__(self, x, y, width, height, InventoryView.FONT_NAME, InventoryView.FONT_SIZE, InventoryView.LINE_HEIGHT, columns=columns, column_width=width/columns)
     
     text.Label(text=title, color=(255, 127, 80, 255), font_name=InventoryView.FONT_NAME, font_size=InventoryView.FONT_SIZE, x=x, y=height+34, batch=self.batches)
     text.Label(text=header, color=(150, 150, 150, 255), font_name=InventoryView.FONT_NAME, font_size=InventoryView.HEADER_FONT_SIZE, x=x, y=height+15, batch=self.batches)
     
     self.title = text.Label(font_name=InventoryView.FONT_NAME, font_size=InventoryView.FONT_SIZE, x=850, y=height-description_y, batch=self.batches)
     self.description = text.HTMLLabel(x=870, y=height-description_y-20, width=300, multiline=True, batch=self.batches)
コード例 #3
0
ファイル: properties.py プロジェクト: Ardnived/Regicide
 def __init__(self, x, y, width, height):
     ActiveListLayer.__init__(self, x, y, width, height, PropertiesView.FONT_NAME, PropertiesView.FONT_SIZE, PropertiesView.LINE_HEIGHT, columns=4, column_width=180)
     self.title = text.Label(font_name=PropertiesView.FONT_NAME, font_size=PropertiesView.FONT_SIZE, x=800, y=height-50, batch=self.batches)
     self.modifiers = text.Label(font_name=PropertiesView.FONT_NAME, font_size=PropertiesView.MODS_FONT_SIZE, x=800, y=height-70, width=250, multiline=True, batch=self.batches)
コード例 #4
0
ファイル: actions.py プロジェクト: Ardnived/Regicide
 def __init__(self, x, y, width, height):
     ActiveListLayer.__init__(self, x, y, width, height, ActionsView.FONT_NAME, ActionsView.FONT_SIZE, ActionsView.LINE_HEIGHT, columns=3, column_width=250)
     self.title = text.Label(font_name=ActionsView.FONT_NAME, font_size=ActionsView.FONT_SIZE, x=800, y=height-50, batch=self.batches)
     self.description = text.Label(font_name=ActionsView.FONT_NAME, font_size=ActionsView.DESCRIPTION_FONT_SIZE, x=820, y=height-70, width=300, multiline=True, batch=self.batches)
コード例 #5
0
ファイル: menu.py プロジェクト: Ardnived/Regicide
 def __init__(self, x, y, width, height, tile_width, tile_height, color):
     ActiveListLayer.__init__(self, x, y, width, height, color)
コード例 #6
0
ファイル: game.py プロジェクト: Ardnived/Regicide
 def __init__(self, x, y, width, height):
     ActiveListLayer.__init__(self, x, y, width, height)