def UpdateLayout(self, *args):
        BaseCharacterCreationStep.UpdateLayout(self)
        self.colorPaletteWidth = uicls.CCColorPalette.COLORPALETTEWIDTH
        self.sr.assetMenuPar.height = uicore.desktop.height
        for menu in (self.sr.tattooMenu, self.sr.assetMenu):
            if menu and not menu.destroyed:
                menu.ChangeHeight(self.sr.assetMenuPar.height)

        self.sr.rightSide.width += self.colorPaletteWidth
        sm.GetService('cc').LogInfo('CharacterCustomization::UpdateLayout')
        if not self.menusInitialized:
            self.sr.tattooMenu = self.ReloadTattooMenu()
            self.sr.assetMenu = self.ReloadAssetMenu()
            self.menusInitialized = 1
        self.LoadMenu()
Exemple #2
0
 def UpdateLayout(self):
     BaseCharacterCreationStep.UpdateLayout(self)
     info = self.GetInfo()
     self.sr.rightSide.width = min(self.sr.rightSide, 380)
     picker = uicls.CCRacePicker(parent=self.sr.leftSide,
                                 align=uiconst.BOTTOMLEFT,
                                 owner=self,
                                 raceID=info.raceID,
                                 bloodlineID=info.bloodlineID,
                                 genderID=info.genderID,
                                 padding=(30, 0, 0, 0),
                                 clickable=False,
                                 showText=True)
     self.AdjustHeightAndWidth(doMorph=0)
     try:
         self.SetAncestryFromID(info.ancestryID, doMorph=0)
         self.SetSchoolFromID(info.schoolID, doMorph=0)
     except Exception:
         if self and not self.destroyed:
             raise
 def UpdateLayout(self):
     BaseCharacterCreationStep.UpdateLayout(self)
     self.sr.rightSide.width += uicls.CCColorPalette.COLORPALETTEWIDTH
     self.ReloadPortraitAssetMenu()
     self.ReloadPortraits()
     self.sr.hintBox.left = self.assetMenuMainWidth + 20