historical/toontown-just-works.git/toontown/parties/DistributedPartyJukebox40Activity.py
2024-01-16 11:20:27 -06:00

18 lines
922 B
Python

from toontown.parties.DistributedPartyJukeboxActivityBase import DistributedPartyJukeboxActivityBase
from toontown.parties import PartyGlobals
class DistributedPartyJukebox40Activity(DistributedPartyJukeboxActivityBase):
notify = directNotify.newCategory('DistributedPartyJukeboxActivity')
def __init__(self, cr):
DistributedPartyJukeboxActivityBase.__init__(self, cr, PartyGlobals.ActivityIds.PartyJukebox40, PartyGlobals.PhaseToMusicData40)
def load(self):
DistributedPartyJukeboxActivityBase.load(self)
newTexture = loader.loadTexture('phase_13/maps/tt_t_ara_pty_jukeboxBlue.jpg', 'phase_13/maps/tt_t_ara_pty_jukeboxBlue_a.rgb')
case = self.jukebox.find('**/jukeboxGlass')
if not case.isEmpty():
case.setTexture(newTexture, 1)
body = self.jukebox.find('**/jukeboxBody')
if not body.isEmpty():
body.setTexture(newTexture, 1)