def LoadView(self, charID=None, gender=None, dollState=None, bloodlineID=None, **kwargs): """Called when the view is loaded""" sm.GetService('audio').SwapBanks(EVE_INCARNA_BANKS) View.LoadView(self) self.LogInfo('Opening character creator with arguments', kwargs) if charID is not None: if session.worldspaceid == session.stationid2: player = self.entityClient.GetPlayerEntity() if player is not None: pos = player.GetComponent('position') if pos is not None: self.cachedPlayerPos = pos.position self.cachedPlayerRot = pos.rotation camera = self.cameraClient.GetActiveCamera() if camera is not None: self.cachedCameraYaw = camera.yaw self.cachedCameraPitch = camera.pitch self.cachedCameraZoom = camera.zoom change = {'worldspaceid': [session.worldspaceid, None]} self.entityClient.ProcessSessionChange(False, session, change) self.gameui.OnSessionChanged(False, session, change) factory = sm.GetService('character').factory factory.compressTextures = False factory.allowTextureCache = False clothSimulation = sm.GetService('device').GetAppFeatureState( 'CharacterCreation.clothSimulation', True) factory.clothSimulationActive = clothSimulation sm.GetService('sceneManager').SetSceneType( SCENE_TYPE_CHARACTER_CREATION) self.layer.SetCharDetails(charID, gender, bloodlineID, dollState=dollState) uicore.layer.main.display = False
def LoadView(self, **kwargs): View.LoadView(self, **kwargs)
def LoadView(self, **kwargs): """Called when the view is loaded""" View.LoadView(self, **kwargs)