Beispiel #1
0
def confirmationRemoveSave_func(saveId:str):
    '''
    覆盖存档询问流程
    玩家输入0:删除指定存档
    Keyword arguments:
    saveId -- 存档id
    '''
    cmdList = SaveHandleFramePanel.confirmationRemoveSavePanel()
    yrn = GameInit.askfor_All(cmdList)
    if yrn == '0':
        SaveHandle.removeSave(saveId)
    PyCmd.clr_cmd()
Beispiel #2
0
def confirmationRemoveSave_func(saveId, oldPanel, tooOldPanel):
    cmdList = SaveHandleFramePanel.confirmationRemoveSavePanel()
    yrn = GameInit.askfor_All(cmdList)
    if yrn == '0':
        SaveHandle.removeSave(saveId)
    else:
        pass
    PyCmd.clr_cmd()
    if oldPanel == 'LoadSavePanel':
        loadSave_func(tooOldPanel)
    elif oldPanel == 'EstablishSavePanel':
        establishSave_func(tooOldPanel)