Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)