def acknowledgmentAttribute_func(): ''' 创建角色时用于查看角色属性的流程 ''' while (True): characterId = CacheContorl.characterData['characterId'] CharacterHandle.initCharacterList() inputS = [] seeAttrInEveryTime_func() flowReturn = SeeCharacterAttrPanel.inputAttrOverPanel() inputS = flowReturn + inputS characterId = CacheContorl.characterData['characterId'] yrn = GameInit.askfor_All(inputS) showAttrHandleData = TextLoading.getTextData(TextLoading.cmdPath, 'seeAttrPanelHandle') PyCmd.clr_cmd() if yrn in panelList: PanelStateHandle.panelStateChange(yrn) elif yrn == '0': GameStartFlow.initGameStart() break elif yrn == '1': CacheContorl.wframeMouse['wFrameRePrint'] = 1 EraPrint.pnextscreen() CacheContorl.nowFlowId = 'title_frame' break elif yrn in showAttrHandleData: CacheContorl.panelState['AttrShowHandlePanel'] = str( showAttrHandleData.index(yrn))
def acknowledgmentAttributeAns(inputList): characterId = CacheContorl.characterData['characterId'] yrn = GameInit.askfor_All(inputList) showAttrHandleData = TextLoading.getTextData(TextLoading.cmdPath, 'seeAttrPanelHandle') PyCmd.clr_cmd() if yrn in panelList: PanelStateHandle.panelStateChange(yrn) acknowledgmentAttribute_func() elif yrn == '0': GameTime.initTime() AttrCalculation.setAttrOver(characterId) CharacterHandle.initCharacterList() SeeCharacterAttrPanel.initShowAttrPanelList() characterPosition = CacheContorl.characterData['character'][ characterId]['Position'] MapHandle.characterMoveScene(['0'], characterPosition, characterId) from script.Flow import Main Main.mainFrame_func() elif yrn == '1': CacheContorl.wframeMouse['wFrameRePrint'] = 1 EraPrint.pnextscreen() SeeCharacterAttrPanel.initShowAttrPanelList() from script.Design import StartFlow StartFlow.main_func() elif yrn in showAttrHandleData: index = showAttrHandleData.index(yrn) index = str(index) CacheContorl.panelState['AttrShowHandlePanel'] = index acknowledgmentAttribute_func()
def initGameStart(): ''' 用于结束角色创建正式开始游戏的初始化流程 ''' GameTime.initTime() AttrCalculation.setAttrOver('0') Course.initPhaseCourseHour() CharacterHandle.initCharacterList() Interest.initCharacterInterest() Course.initCharacterKnowledge() Course.initClassTeacher() Course.initClassTimeTable() SeeCharacterAttrPanel.initShowAttrPanelList() characterPosition = CacheContorl.characterData['character']['0'][ 'Position'] MapHandle.characterMoveScene(['0'], characterPosition, '0') CacheContorl.nowFlowId = 'main'
def initGameStart(): ''' 用于结束角色创建正式开始游戏的初始化流程 ''' GameTime.initTime() AttrCalculation.setAttrOver('0') Course.initPhaseCourseHour() CharacterHandle.initCharacterList() characterSuit = Clothing.creatorSuit( 'Uniform', CacheContorl.characterData['character']['0']['Sex']) for clothing in characterSuit: CacheContorl.characterData['character']['0']['Clothing'][clothing][ uuid.uuid1()] = characterSuit[clothing] Clothing.characterPutOnClothing('0') Interest.initCharacterInterest() Course.initCharacterKnowledge() Course.initClassTeacher() Course.initClassTimeTable() SeeCharacterAttrPanel.initShowAttrPanelList() characterPosition = CacheContorl.characterData['character']['0'][ 'Position'] MapHandle.characterMoveScene(['0'], characterPosition, '0') CacheContorl.nowFlowId = 'main'