mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
22 lines
788 B
Python
22 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
|