mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
14 lines
645 B
Python
14 lines
645 B
Python
from direct.directnotify import DirectNotifyGlobal
|
|
from otp.launcher.DownloadWatcher import DownloadWatcher
|
|
from toontown.toonbase import TTLocalizer
|
|
|
|
class ToontownDownloadWatcher(DownloadWatcher):
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('ToontownDownloadWatcher')
|
|
|
|
def __init__(self, phaseNames):
|
|
DownloadWatcher.__init__(self, phaseNames)
|
|
|
|
def update(self, phase, percent, reqByteRate, actualByteRate):
|
|
DownloadWatcher.update(self, phase, percent, reqByteRate, actualByteRate)
|
|
phaseName = self.phaseNames[phase]
|
|
self.text['text'] = TTLocalizer.LoadingDownloadWatcherUpdate % phaseName
|