Poodletooth-iLand/toontown/toon/TailorClothesGUI.py

22 lines
788 B
Python
Raw Normal View History

2015-03-03 22:10:12 +00:00
from toontown.makeatoon import ClothesGUI
import ToonDNA
class TailorClothesGUI(ClothesGUI.ClothesGUI):
notify = directNotify.newCategory('MakeClothesGUI')
def __init__(self, doneEvent, swapEvent, tailorId):
ClothesGUI.ClothesGUI.__init__(self, ClothesGUI.CLOTHES_TAILOR, doneEvent, swapEvent)
self.tailorId = tailorId
def setupScrollInterface(self):
self.dna = self.toon.getStyle()
gender = self.dna.getGender()
if self.swapEvent != None:
self.tops = ToonDNA.getTops(gender, tailorId=self.tailorId)
self.bottoms = ToonDNA.getBottoms(gender, tailorId=self.tailorId)
self.gender = gender
self.topChoice = -1
self.bottomChoice = -1
self.setupButtons()
return