def createToolTipContent(self, event, contentID): _logger.debug('DailyQuests::createToolTipContent') if contentID == R.views.lobby.missions.RerollTooltip(): return RerollTooltip(self.__getCountdown(), getRerollTimeout()) return RerollTooltip( self.__getCountdown(), getRerollTimeout(), True ) if contentID == R.views.lobby.missions.RerollTooltipWithCountdown( ) else super(DailyQuestsView, self).createToolTipContent( event=event, contentID=contentID)
def getNextAvailableRerollTimestamp(self): return self.getLastRerollTimestamp() + getRerollTimeout()
def _updateCountdownUntilNextReroll(self, model): countdown = self.__getCountdown() timeout = getRerollTimeout() with model.dailyQuests.transaction() as tx: tx.setRerollCountDown(countdown) tx.setRerollTimeout(timeout)