mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 21:52:25 -06:00
16 lines
561 B
Python
16 lines
561 B
Python
|
from otp.otpbase.OTPTimer import OTPTimer
|
||
|
from pandac.PandaModules 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
|