mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
import ClothesGUI
|
|
from toontown.toon import ToonDNA
|
|
|
|
class MakeClothesGUI(ClothesGUI.ClothesGUI):
|
|
notify = directNotify.newCategory('MakeClothesGUI')
|
|
|
|
def __init__(self, doneEvent):
|
|
ClothesGUI.ClothesGUI.__init__(self, ClothesGUI.CLOTHES_MAKETOON, doneEvent)
|
|
|
|
def setupScrollInterface(self):
|
|
self.dna = self.toon.getStyle()
|
|
gender = self.dna.getGender()
|
|
if gender != self.gender:
|
|
self.tops = ToonDNA.getRandomizedTops(gender, tailorId=ToonDNA.MAKE_A_TOON)
|
|
self.bottoms = ToonDNA.getRandomizedBottoms(gender, tailorId=ToonDNA.MAKE_A_TOON)
|
|
self.gender = gender
|
|
self.topChoice = 0
|
|
self.bottomChoice = 0
|
|
self.setupButtons()
|
|
|
|
def setupButtons(self):
|
|
ClothesGUI.ClothesGUI.setupButtons(self)
|
|
if len(self.dna.torso) == 1:
|
|
if self.gender == 'm':
|
|
torsoStyle = 's'
|
|
elif self.girlInShorts == 1:
|
|
torsoStyle = 's'
|
|
else:
|
|
torsoStyle = 'd'
|
|
self.toon.swapToonTorso(self.dna.torso[0] + torsoStyle)
|
|
self.toon.loop('neutral', 0)
|
|
self.toon.swapToonColor(self.dna)
|
|
self.swapTop(0)
|
|
self.swapBottom(0)
|
|
return None
|