def GoCharacterCreation(self, charID=None, gender=None, bloodlineID=None, askUseLowShader=True, dollState=None, *args): if sm.GetService('station').exitingstation: return everesourceprefetch.PullToFront('ui_cc') if askUseLowShader: msg = uiconst.ID_YES if not sm.StartService('device').SupportsSM3(): msg = eve.Message('AskMissingSM3', {}, uiconst.YESNO, default=uiconst.ID_NO) if msg != uiconst.ID_YES: return msg = uiconst.ID_YES if ccUtil.SupportsHigherShaderModel(): msg = eve.Message('AskUseLowShader', {}, uiconst.YESNO, default=uiconst.ID_NO) if msg != uiconst.ID_YES: return self.viewState.ActivateView('charactercreation', charID=charID, gender=gender, bloodlineID=bloodlineID, dollState=dollState)
def CreateNewCharacter(self): if not self.ready: eve.Message('Busy') return lowEnd = gfxsettings.GetDeviceClassification( ) == gfxsettings.DEVICE_LOW_END msg = uiconst.ID_YES if not sm.StartService('device').SupportsSM3(): msg = eve.Message('AskMissingSM3', {}, uiconst.YESNO, default=uiconst.ID_NO) if msg != uiconst.ID_YES: return msg = uiconst.ID_YES if not lowEnd and ccUtil.SupportsHigherShaderModel(): msg = eve.Message('AskUseLowShader', {}, uiconst.YESNO, default=uiconst.ID_NO) if msg != uiconst.ID_YES: return if lowEnd: msg2 = eve.Message('ReduceGraphicsSettings', {}, uiconst.YESNO, default=uiconst.ID_NO) if msg2 == uiconst.ID_YES: self.ReduceCharacterGraphics() eve.Message('CCNewChar') uthread.new(sm.GetService('gameui').GoCharacterCreation, askUseLowShader=0)