예제 #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
파일: status-0.py 프로젝트: pombredanne/Obb
 def draw(self):
     if self.visible:
         vista.addoverlay(self.currentimg, self.rect)