def draw(self): if not self.baseimg: self.baseimg = self.getimg(self.getlevel(self.height, False)) self.bottom = self.left, settings.layout.meterbottom self.rect = self.baseimg.get_rect(midbottom=self.bottom) level = self.getlevel() img = graphics.meter(self.baseimg, level, self.color) vista.rsurf.blit(img, self.rect)
def drawmutagenmeter(): height = getlevel(status.state.maxmutagen) level = getlevel(status.state.mutagen) img = graphics.meter(graphics.helixmeter(height), level, graphics.colors["mutagen"]) rect = img.get_rect() rect.midbottom = midbottom = settings.layout.mutagenmeterx, settings.layout.meterbottom vista.rsurf.blit(img, rect) iconrects["mutagenmeter"] = rect.move(settings.rx0, settings.ry0)
def drawoozemeter(): height = getlevel(status.state.maxooze) level = getlevel(status.state.ooze) img = graphics.meter(graphics.stalkmeter(height), level, graphics.colors["ooze"]) rect = img.get_rect() rect.midbottom = midbottom = settings.layout.oozemeterx, settings.layout.meterbottom vista.rsurf.blit(img, rect) iconrects["oozemeter"] = rect.move(settings.rx0, settings.ry0)