Poodletooth-iLand/toontown/suit/SuitDialog.py
Master Jumblespeed d882959bfa switch to remote
2015-05-18 22:11:33 -04:00

26 lines
619 B
Python
Executable file

from direct.directnotify import DirectNotifyGlobal
import random
from otp.otpbase import OTPLocalizer
notify = DirectNotifyGlobal.directNotify.newCategory('SuitDialog')
def getBrushOffIndex(suitName):
if suitName in SuitBrushOffs:
brushoffs = SuitBrushOffs[suitName]
else:
brushoffs = SuitBrushOffs[None]
return random.randrange(len(brushoffs))
def getBrushOffText(suitName, index):
if suitName in SuitBrushOffs:
brushoffs = SuitBrushOffs[suitName]
else:
brushoffs = SuitBrushOffs[None]
return brushoffs[index]
SuitBrushOffs = OTPLocalizer.SuitBrushOffs