2019-12-30 00:07:56 -06:00
|
|
|
from . import ClothesGUI
|
2019-11-02 17:27:54 -05:00
|
|
|
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()
|
2024-07-14 15:28:28 -05:00
|
|
|
self.tops = ToonDNA.getRandomizedTops(tailorId = ToonDNA.MAKE_A_TOON)
|
|
|
|
self.bottoms = ToonDNA.getRandomizedBottoms(tailorId = ToonDNA.MAKE_A_TOON)
|
|
|
|
self.topChoice = 0
|
|
|
|
self.bottomChoice = 0
|
2019-11-02 17:27:54 -05:00
|
|
|
self.setupButtons()
|
|
|
|
|
|
|
|
def setupButtons(self):
|
|
|
|
ClothesGUI.ClothesGUI.setupButtons(self)
|
|
|
|
if len(self.dna.torso) == 1:
|
2024-07-14 15:28:28 -05:00
|
|
|
|
|
|
|
if self.toonInShorts == 1:
|
2019-11-02 17:27:54 -05:00
|
|
|
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
|