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
Ejemplo n.º 2
0
 def UnloadView(self):
     View.UnloadView(self)
Ejemplo n.º 3
0
 def LoadView(self, **kwargs):
     View.LoadView(self, **kwargs)
Ejemplo n.º 4
0
 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)
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 def __init__(self):
     View.__init__(self)
     self.solarSystemID = None
     self.keyDownEvent = None
Ejemplo n.º 7
0
 def __init__(self):
     View.__init__(self)
Ejemplo n.º 8
0
 def __init__(self):
     View.__init__(self)
     self.solarSystemID = None
     self.keyDownEvent = None
Ejemplo n.º 9
0
 def __init__(self):
     View.__init__(self)
Ejemplo n.º 10
0
 def HideView(self):
     if self.keyDownEvent:
         uicore.event.UnregisterForTriuiEvents(self.keyDownEvent)
     View.HideView(self)
Ejemplo n.º 11
0
 def ShowView(self, **kwargs):
     View.ShowView(self, **kwargs)
     self.keyDownEvent = uicore.event.RegisterForTriuiEvents([uiconst.UI_KEYDOWN], self.CheckKeyDown)
Ejemplo n.º 12
0
 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)
Ejemplo n.º 15
0
 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