oldschool-toontown/toontown/toonbase/ToontownTimer.py
Little Cat 1801d2b9fb
all: replace pandac.PandaModules imports.
UD/AI + Client boots up.
2022-12-16 20:40:57 -04:00

15 lines
554 B
Python

from otp.otpbase.OTPTimer import OTPTimer
from panda3d.core import *
class ToontownTimer(OTPTimer):
def __init__(self, useImage = True, highlightNearEnd = True):
OTPTimer.__init__(self, useImage, highlightNearEnd)
self.initialiseoptions(ToontownTimer)
def getImage(self):
if ToontownTimer.ClockImage == None:
model = loader.loadModel('phase_3.5/models/gui/clock_gui')
ToontownTimer.ClockImage = model.find('**/alarm_clock')
model.removeNode()
return ToontownTimer.ClockImage