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 UnloadView(self): View.UnloadView(self)
def LoadView(self, **kwargs): View.LoadView(self, **kwargs)
def HideView(self): """Used for cleaning up after the view has served its purpose""" if self.keyDownEvent: uicore.event.UnregisterForTriuiEvents(self.keyDownEvent) View.HideView(self)
def ShowView(self, **kwargs): """Used for cleaning up after the view has served its purpose""" View.ShowView(self, **kwargs) self.keyDownEvent = uicore.event.RegisterForTriuiEvents( [uiconst.UI_KEYDOWN], self.CheckKeyDown)
def __init__(self): View.__init__(self) self.solarSystemID = None self.keyDownEvent = None
def __init__(self): View.__init__(self)
def HideView(self): if self.keyDownEvent: uicore.event.UnregisterForTriuiEvents(self.keyDownEvent) View.HideView(self)
def ShowView(self, **kwargs): View.ShowView(self, **kwargs) self.keyDownEvent = uicore.event.RegisterForTriuiEvents([uiconst.UI_KEYDOWN], self.CheckKeyDown)
def UnloadView(self): View.UnloadView(self) uicore.layer.main.display = True
def UnloadView(self): """Used for cleaning up after the view has served its purpose""" View.UnloadView(self)
def LoadView(self, **kwargs): """Called when the view is loaded""" View.LoadView(self, **kwargs)
def HideView(self): if self.keyDownEvent: uicore.event.UnregisterForTriuiEvents(self.keyDownEvent) View.HideView(self) sm.GetService('gameui').CacheCameraTranslation()
def UnloadView(self): """Used for cleaning up after the view has served its purpose""" View.UnloadView(self) uicore.layer.main.display = True