oldschool-toontown/toontown/makeatoon/MakeClothesGUI.py

32 lines
1.1 KiB
Python
Raw Normal View History

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()
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:
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