Esempio n. 1
0
def askForLoadSave_func(oldPanel, saveId):
    cmdList = SaveHandleFramePanel.askLoadSavePanel()
    yrn = GameInit.askfor_All(cmdList)
    PyCmd.clr_cmd()
    if yrn == '0':
        confirmationLoadSave_func(oldPanel, saveId)
    elif yrn == '1':
        confirmationRemoveSave_func(saveId, 'LoadSavePanel', oldPanel)
    elif yrn == '2':
        loadSave_func(oldPanel)
Esempio n. 2
0
def askForLoadSave_func(saveId:str):
    '''
    读档处理询问流程
    玩家输入0:进入读取存档询问流程
    玩家输入1:进入删除存档询问流程
    Keyword arguments:
    saveId -- 存档id
    '''
    cmdList = SaveHandleFramePanel.askLoadSavePanel()
    yrn = GameInit.askfor_All(cmdList)
    PyCmd.clr_cmd()
    if yrn == '0':
        return confirmationLoadSave_func(saveId)
    elif yrn == '1':
        confirmationRemoveSave_func(saveId)
    return False