def confirmationLoadSave_func(oldPanel, saveId): cmdList = SaveHandleFramePanel.confirmationLoadSavePanel() yrn = GameInit.askfor_All(cmdList) PyCmd.clr_cmd() if yrn == '0': SaveHandle.inputLoadSave(saveId) import script.Flow.Main as mainframe mainframe.mainFrame_func() else: loadSave_func(oldPanel)
def confirmationLoadSave_func(saveId:str): ''' 读取存档询问流程 玩家输入0:读取指定存档 Keyword arguments: saveId -- 存档id ''' cmdList = SaveHandleFramePanel.confirmationLoadSavePanel() yrn = GameInit.askfor_All(cmdList) PyCmd.clr_cmd() if yrn == '0': SaveHandle.inputLoadSave(saveId) CacheContorl.nowFlowId = 'main' return True return False