Exemplo n.º 1
0
 def start(self):
     super(_RageBarPlugin, self).start()
     avatarStatsCtrl = g_sessionProvider.getAvatarStatsCtrl()
     self.__currentValue = avatarStatsCtrl.getStats().get('ragePoints', 0)
     rageProps = _RageBarViewProps(maxValue=rage.g_cache.pointsLimit,
                                   curValue=self.__currentValue)
     self._parentObj.flashObject.initializeRageProgress(
         isEventBattle(), rageProps._asdict())
Exemplo n.º 2
0
 def start(self):
     super(_RageBarPlugin, self).start()
     avatarStatsCtrl = g_sessionProvider.getAvatarStatsCtrl()
     self.__currentValue = avatarStatsCtrl.getStats().get('ragePoints', 0)
     rageProps = _RageBarViewProps(maxValue=rage.g_cache.pointsLimit, curValue=self.__currentValue)
     self._parentObj.flashObject.initializeRageProgress(isEventBattle(), rageProps._asdict())
Exemplo n.º 3
0
 def fini(self):
     avatarStatsCtrl = g_sessionProvider.getAvatarStatsCtrl()
     avatarStatsCtrl.onUpdated -= self.__onAvatarStatsUpdated
     super(_RageBarPlugin, self).fini()
Exemplo n.º 4
0
 def init(self):
     super(_RageBarPlugin, self).init()
     avatarStatsCtrl = g_sessionProvider.getAvatarStatsCtrl()
     avatarStatsCtrl.onUpdated += self.__onAvatarStatsUpdated
Exemplo n.º 5
0
 def fini(self):
     avatarStatsCtrl = g_sessionProvider.getAvatarStatsCtrl()
     avatarStatsCtrl.onUpdated -= self.__onAvatarStatsUpdated
     super(_RageBarPlugin, self).fini()
Exemplo n.º 6
0
 def init(self):
     super(_RageBarPlugin, self).init()
     avatarStatsCtrl = g_sessionProvider.getAvatarStatsCtrl()
     avatarStatsCtrl.onUpdated += self.__onAvatarStatsUpdated