def inputSexConfirm_func(): ''' 请求玩家输入性别流程 输入0:进入询问是否进行详细设置流程(玩家性别为默认,或请求选择性别流程结果) 输入1:进入选择性别流程 输入2:返回请求输入自称流程 ''' flowReturn = CreatorCharacterPanel.inputSexPanel() sexId = CacheContorl.characterData['character'][characterId]['Sex'] if flowReturn == 0: AttrCalculation.setSexCache(sexId) sexKeysList = list(TextLoading.getTextData(TextLoading.rolePath, 'Sex')) if sexId == sexKeysList[2]: CacheContorl.temporaryCharacter['Features'][ 'Sex'] = TextLoading.getTextData(TextLoading.rolePath, 'Features')['Sex'][0] elif sexId == sexKeysList[3]: CacheContorl.temporaryCharacter['Features'][ 'Sex'] = TextLoading.getTextData(TextLoading.rolePath, 'Features')['Sex'][1] PyCmd.clr_cmd() attributeGenerationBranch_func() elif flowReturn == 1: PyCmd.clr_cmd() inputSexChoice_func() elif flowReturn == 2: PyCmd.clr_cmd() inputSelfName_func()
def inputSexConfirm_func(): flowReturn = CreatorCharacterPanel.inputSexPanel() sexId = CacheContorl.characterData['character'][characterId]['Sex'] if flowReturn == 0: AttrCalculation.setSexCache(sexId) sexKeysList = list(TextLoading.getTextData(TextLoading.rolePath,'Sex')) if sexId == sexKeysList[2]: CacheContorl.temporaryCharacter['Features']['Sex'] = TextLoading.getTextData(TextLoading.rolePath, 'Features')['Sex'][0] elif sexId == sexKeysList[3]: CacheContorl.temporaryCharacter['Features']['Sex'] = TextLoading.getTextData(TextLoading.rolePath, 'Features')['Sex'][1] PyCmd.clr_cmd() attributeGenerationBranch_func() elif flowReturn == 1: PyCmd.clr_cmd() inputSexChoice_func() elif flowReturn == 2: PyCmd.clr_cmd() inputNickName_func()
def inputSexConfirm_func(): ''' 请求玩家输入性别流程 输入0:进入询问是否进行详细设置流程(玩家性别为默认,或请求选择性别流程结果) 输入1:进入选择性别流程 输入2:返回请求输入自称流程 ''' flowReturn = CreatorCharacterPanel.inputSexPanel() sexId = CacheContorl.characterData['character'][0].Sex if flowReturn == 0: PyCmd.clr_cmd() attributeGenerationBranch_func() elif flowReturn == 1: PyCmd.clr_cmd() inputSexChoice_func() elif flowReturn == 2: PyCmd.clr_cmd() inputSelfName_func()