Exemple #1
0
 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)
Exemple #2
0
 def checkAwarded(self):
     """ Check if the Rating should be awarded """
     self.awarded = self.moveCount <= 20
     if self.awarded:
         CURRENT_PROFILE.addMoveRating(self.level)
Exemple #3
0
 def checkAwarded(self):
     """ Check if the Rating should be awarded """
     self.awarded = self.level.won()
     if self.awarded:
         CURRENT_PROFILE.addCompletionRating(self.level)
Exemple #4
0
 def checkAwarded(self):
     """ Check if the Rating should be awarded """
     self.awarded = self.power >= 15
     if self.awarded:
         CURRENT_PROFILE.addPowerRating(self.level)
Exemple #5
0
 def checkAwarded(self):
     """ Check if the Rating should be awarded """
     self.awarded = self.moveCount <= 20
     if self.awarded:
         CURRENT_PROFILE.addMoveRating(self.level)
Exemple #6
0
 def checkAwarded(self):
     """ Check if the Rating should be awarded """
     self.awarded = self.power >= 15
     if self.awarded:
         CURRENT_PROFILE.addPowerRating(self.level)