historical/toontown-classic.git/toontown/toon/TailorClothesGUI.py
2024-01-16 11:20:27 -06:00

21 lines
788 B
Python

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