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)
def getimg(self, height): return graphics.stalkmeter(height)