Пример #1
0
 def grow(self, index, pos):
     self.trophyPanels[index]['image_color'] = Vec4(1.0, 1.0, 0.8, 1.0)
     if index < GolfGlobals.NumTrophies:
         self.trophyTextDisplay['text'] = TTLocalizer.GolfTrophyTextDisplay % {'number': index + 1,
          'desc': TTLocalizer.GolfTrophyDescriptions[index]}
         historyIndex = GolfGlobals.getHistoryIndexForTrophy(index)
         if historyIndex >= 0:
             self.currentHistory['text'] = TTLocalizer.GolfCurrentHistory % {'historyDesc': TTLocalizer.GolfHistoryDescriptions[historyIndex],
              'num': self.avatar.getGolfHistory()[historyIndex]}
Пример #2
0
 def grow(self, index, pos):
     self.trophyPanels[index]['image_color'] = Vec4(1.0, 1.0, 0.8, 1.0)
     if index < GolfGlobals.NumTrophies:
         self.trophyTextDisplay['text'] = TTLocalizer.GolfTrophyTextDisplay % {'number': index + 1,
          'desc': TTLocalizer.GolfTrophyDescriptions[index]}
         historyIndex = GolfGlobals.getHistoryIndexForTrophy(index)
         if historyIndex >= 0:
             self.currentHistory['text'] = TTLocalizer.GolfCurrentHistory % {'historyDesc': TTLocalizer.GolfHistoryDescriptions[historyIndex],
              'num': self.avatar.getGolfHistory()[historyIndex]}