2019-11-02 17:27:54 -05:00
|
|
|
from otp.otpbase.OTPTimer import OTPTimer
|
2022-12-16 18:40:57 -06:00
|
|
|
from panda3d.core import *
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
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
|