def confirmationOverlaySave_func(oldPanel, saveId): cmdList = SaveHandleFramePanel.confirmationOverlaySavePanel() yrn = GameInit.askfor_All(cmdList) PyCmd.clr_cmd() if yrn == '0': SaveHandle.establishSave(saveId) establishSave_func(oldPanel) else: establishSave_func(oldPanel)
def confirmationOverlaySave_func(saveId:str): ''' 覆盖存档询问流程 玩家输入0:对存档进行覆盖 Keyword arguments: saveId -- 存档id ''' cmdList = SaveHandleFramePanel.confirmationOverlaySavePanel() yrn = GameInit.askfor_All(cmdList) PyCmd.clr_cmd() if yrn == '0': SaveHandle.establishSave(saveId)