toontown-just-works/toontown/toon/TailorClothesGUI.py

22 lines
788 B
Python
Raw Normal View History

2024-07-07 18:08:39 -05: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