def updateRatingsLabel(self): """ Update the Ratings Label """ self.ratingsLabel.move(32, 48+32*(len(self.levelSelection.getLevel().defenses)+3)) text = "" if CURRENT_PROFILE.completedLevel(self.levelSelection.getLevel()): text += "C" if CURRENT_PROFILE.acheivedMoveAwardOnLevel(self.levelSelection.getLevel()): text += "M" if CURRENT_PROFILE.acheivedPowerAwardOnLevel(self.levelSelection.getLevel()): text += "P" self.ratingsLabel.setText(text)
def checkAwarded(self): """ Check if the Rating should be awarded """ self.awarded = self.moveCount <= 20 if self.awarded: CURRENT_PROFILE.addMoveRating(self.level)
def checkAwarded(self): """ Check if the Rating should be awarded """ self.awarded = self.level.won() if self.awarded: CURRENT_PROFILE.addCompletionRating(self.level)
def checkAwarded(self): """ Check if the Rating should be awarded """ self.awarded = self.power >= 15 if self.awarded: CURRENT_PROFILE.addPowerRating(self.level)