Example #1
0
    def setupScrollInterface(self):
        self.dna = self.toon.getStyle()
        gender = self.dna.getGender()
        self.topStyles = ToonDNA.getTopStyles(gender,
                                              tailorId=ToonDNA.MAKE_A_TOON)
        self.tops = ToonDNA.getTops(gender, tailorId=ToonDNA.MAKE_A_TOON)
        self.bottomStyles = ToonDNA.getBottomStyles(
            gender, tailorId=ToonDNA.MAKE_A_TOON)
        self.bottoms = ToonDNA.getBottoms(gender, tailorId=ToonDNA.MAKE_A_TOON)
        self.gender = gender
        if gender == 'm':
            gId = 'b'
        else:
            gId = 'g'
        self.topChoice = 0
        for style in ToonDNA.ShirtStyles.keys():
            if style[0] == gId:
                if (ToonDNA.ShirtStyles[style][0],
                        ToonDNA.ShirtStyles[style][1]) == (self.dna.topTex,
                                                           self.dna.sleeveTex):
                    self.topColorChoice = ToonDNA.ShirtStyles[style][2].index(
                        (self.dna.topTexColor, self.dna.sleeveTexColor))

        self.topStyleChoice = self.topStyles.index(
            (self.dna.topTex, self.dna.sleeveTex))
        self.bottomChoice = 0
        for style in ToonDNA.BottomStyles.keys():
            if style[0] == gId:
                if ToonDNA.BottomStyles[style][0] == self.dna.botTex:
                    self.bottomColorChoice = ToonDNA.BottomStyles[style][
                        1].index(self.dna.botTexColor)

        self.bottomStyleChoice = self.bottomStyles.index(self.dna.botTex)
        self.setupButtons()
Example #2
0
 def setupScrollInterface(self):
     self.dna = self.toon.getStyle()
     gender = self.dna.getGender()
     if self.swapEvent != None:
         self.topStyles = ToonDNA.getTopStyles(gender, tailorId=self.tailorId)
         self.tops = ToonDNA.getTops(gender, tailorId=self.tailorId)
         self.bottomStyles = ToonDNA.getBottomStyles(gender, tailorId=self.tailorId)
         self.bottoms = ToonDNA.getBottoms(gender, tailorId=self.tailorId)
         self.gender = gender
         self.topChoice = -1
         self.topStyleChoice = -1
         self.topColorChoice = -1
         self.bottomChoice = -1
         self.bottomStyleChoice = -1
         self.bottomColorChoice = -1
     self.setupButtons()
 def setupScrollInterface(self):
     self.dna = self.toon.getStyle()
     gender = self.dna.getGender()
     if gender != self.gender:
         self.topStyles = ToonDNA.getTopStyles(gender, tailorId=ToonDNA.MAKE_A_TOON)
         self.tops = ToonDNA.getTops(gender, tailorId=ToonDNA.MAKE_A_TOON)
         self.bottomStyles = ToonDNA.getBottomStyles(gender, tailorId=ToonDNA.MAKE_A_TOON)
         self.bottoms = ToonDNA.getBottoms(gender, tailorId=ToonDNA.MAKE_A_TOON)
         self.gender = gender
         self.topChoice = 0
         self.topColorChoice = 0
         self.topStyleChoice = 0
         self.bottomStyleChoice = 0
         self.bottomColorChoice = 0
         self.bottomChoice = 0
     self.setupButtons()
 def setupScrollInterface(self):
     self.dna = self.toon.getStyle()
     gender = self.dna.getGender()
     if gender != self.gender:
         self.topStyles = ToonDNA.getTopStyles(gender,
                                               tailorId=ToonDNA.MAKE_A_TOON)
         self.tops = ToonDNA.getTops(gender, tailorId=ToonDNA.MAKE_A_TOON)
         self.bottomStyles = ToonDNA.getBottomStyles(
             gender, tailorId=ToonDNA.MAKE_A_TOON)
         self.bottoms = ToonDNA.getBottoms(gender,
                                           tailorId=ToonDNA.MAKE_A_TOON)
         self.gender = gender
         self.topChoice = 0
         self.topColorChoice = 0
         self.topStyleChoice = 0
         self.bottomStyleChoice = 0
         self.bottomColorChoice = 0
         self.bottomChoice = 0
     self.setupButtons()