示例#1
0
文件: panels.py 项目: pombredanne/Obb
def drawbuildicons():
	otypes = sorted(mechanics.costs.items(), key = lambda (k,v): v)
	for j, (otype, cost) in enumerate(otypes):
		if status.state.maxmutagen < cost: continue
		x = settings.layout.buildiconxs[j % len(settings.layout.buildiconxs)]
		y = settings.layout.meterbottom - getlevel(cost)
		ghost = status.state.mutagen < cost
		selected = otype == selectedorgan
		img = graphics.icon(otype, ghost, selected)
		rect = img.get_rect(center = (x, y))
		iconrects[otype] = rect
		vista.addoverlay(img, rect)
示例#2
0
文件: status.py 项目: wolmir/cristina
 def draw(self):
     if self.visible:
         vista.addoverlay(self.currentimg, self.rect)
示例#3
0
 def draw(self):
     if self.visible:
         vista.addoverlay(self.currentimg, self.rect)