Exemplo n.º 1
0
def seeCharacterWearClothesCmd() -> str:
    '''
    用于控制查看角色已装备服装列表面板的命令菜单
    '''
    EraPrint.pline()
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.seecharacterwearclothes,idSize='center',askfor=False)
    return yrn
Exemplo n.º 2
0
def seeCharacterWearClothesCmd(startId:int) -> str:
    '''
    用于控制查看角色服装列表面板的命令菜单
    '''
    EraPrint.pline()
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.seecharacterwearclothes,cmdSize='center',askfor=False,startId=startId)
    return yrn
Exemplo n.º 3
0
def askForSeeAttrCmd() -> list:
    '''
    查看属性页显示控制
    '''
    EraPrint.pline('~')
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.seeattronrverytime, 3, cmdSize='center', askfor=False)
    return yrn
Exemplo n.º 4
0
def enterCharacterNatureHead():
    '''
    用于确认角色性格的头部面板
    '''
    EraPrint.p('\n')
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '39'))
Exemplo n.º 5
0
def seeMovePathPanel():
    inputS = []
    nowScene = CacheContorl.characterData['character']['0']['Position']
    nowMap = CacheContorl.nowMap
    nowMapStr = MapHandle.getMapSystemPathStrForList(nowMap)
    mapData = CacheContorl.mapData[nowMapStr]
    movePathInfo = TextLoading.getTextData(TextLoading.messagePath, '27')
    EraPrint.p(movePathInfo)
    EraPrint.p('\n')
    pathEdge = mapData['PathEdge']
    mapSceneId = str(MapHandle.getMapSceneIdForScenePath(nowMap, nowScene))
    scenePath = pathEdge[mapSceneId]
    scenePathList = ValueHandle.dictKeysToList(scenePath)
    try:
        scenePathList.remove(mapSceneId)
    except ValueError:
        pass
    if len(scenePathList) > 0:
        sceneCmd = []
        for scene in scenePathList:
            loadSceneData = MapHandle.getSceneDataForMap(nowMap, scene)
            sceneName = loadSceneData['SceneName']
            sceneCmd.append(sceneName)
        yrn = CmdButtonQueue.optionstr(cmdList=None,
                                       cmdListData=sceneCmd,
                                       cmdColumn=4,
                                       askfor=False,
                                       cmdSize='center')
        inputS = inputS + yrn
    else:
        errorMoveText = TextLoading.getTextData(TextLoading.messagePath, '28')
        EraPrint.p(errorMoveText)
    EraPrint.pline()
    return {'inputS': inputS, 'scenePathList': scenePathList}
Exemplo n.º 6
0
def seeCharacterClothesCmd(startId: int, nowClothingType: str) -> str:
    '''
    用于控制查看角色服装列表面板的命令菜单
    Keyword arguments:
    startId -- cmd命令的初始Id
    nowClothingType -- 当前列表的服装类型
    '''
    EraPrint.pline()
    clothingTypeList = list(Clothing.clothingTypeTextList.keys())
    cmdList = TextLoading.getTextData(TextLoading.cmdPath,
                                      CmdButtonQueue.seecharacterclothes)
    nowClothingTypeIndex = clothingTypeList.index(nowClothingType)
    upTypeId = nowClothingTypeIndex - 1
    if nowClothingTypeIndex == 0:
        upTypeId = len(clothingTypeList) - 1
    nextTypeId = nowClothingTypeIndex + 1
    if nowClothingTypeIndex == len(clothingTypeList) - 1:
        nextTypeId = 0
    upTypeText = [Clothing.clothingTypeTextList[clothingTypeList[upTypeId]]]
    nextTypeText = [
        Clothing.clothingTypeTextList[clothingTypeList[nextTypeId]]
    ]
    cmdList = upTypeText + cmdList + nextTypeText
    yrn = CmdButtonQueue.optionint(None,
                                   5,
                                   cmdSize='center',
                                   askfor=False,
                                   startId=startId,
                                   cmdListData=cmdList)
    return yrn
Exemplo n.º 7
0
def detailedSetting2Panel():
    EraPrint.p('\n')
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '11'))
    yrn = CmdButtonQueue.optionstr(CmdButtonQueue.detailedsetting2, 5,
                                   'center', True)
    return yrn
Exemplo n.º 8
0
def seeAttrInEveryTime_func():
    characterId = CacheContorl.characterData['characterId']
    showAttrHandle = CacheContorl.panelState['AttrShowHandlePanel']
    inputS = []
    characterMainAttrPanelAsk = SeeCharacterAttrPanel.seeCharacterMainAttrPanel(
        characterId)
    inputS.append(characterMainAttrPanelAsk)
    if showAttrHandle == '0':
        characterEquipmentPanelAsk = SeeCharacterAttrPanel.seeCharacterEquipmentPanel(
            characterId)
        inputS.append(characterEquipmentPanelAsk)
        characterItemPanelAsk = SeeCharacterAttrPanel.seeCharacterItemPanel(
            characterId)
        inputS.append(characterItemPanelAsk)
    elif showAttrHandle == '1':
        characterExperiencePanelAsk = SeeCharacterAttrPanel.seeCharacterExperiencePanel(
            characterId)
        inputS.append(characterExperiencePanelAsk)
        characterLevelPanelAsk = SeeCharacterAttrPanel.seeCharacterLevelPanel(
            characterId)
        inputS.append(characterLevelPanelAsk)
    elif showAttrHandle == '2':
        characterFeaturesPanelAsk = SeeCharacterAttrPanel.seeCharacterFeaturesPanel(
            characterId)
        inputS.append(characterFeaturesPanelAsk)
        characterEngravingPanelAsk = SeeCharacterAttrPanel.seeCharacterEngravingPanel(
            characterId)
        inputS.append(characterEngravingPanelAsk)
    EraPrint.pline()
    seeAttrPanelHandleAsk = SeeCharacterAttrPanel.seeAttrShowHandlePanel()
    inputS = ValueHandle.listAppendToList(seeAttrPanelHandleAsk, inputS)
    return inputS
Exemplo n.º 9
0
def inputSexPanel():
    characterId = CacheContorl.characterData['characterId']
    sexId = CacheContorl.characterData['character'][characterId]['Sex']
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '8')[sexId])
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.currencymenu, 1)
    EraPrint.p('\n')
    return yrn
Exemplo n.º 10
0
def attributeGenerationBranchPanel():
    characterId = CacheContorl.characterData['characterId']
    AttrCalculation.setAttrDefault(characterId)
    PyCmd.clr_cmd()
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '9'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.currencymenu, 1)
    return yrn
Exemplo n.º 11
0
def enterCharacterNatureEnd() -> list:
    '''
    用户确认角色性格的尾部面板
    Return arguments:
    list -- 按钮列表
    '''
    EraPrint.pline()
    return CmdButtonQueue.optionint(CmdButtonQueue.entercharacternaturepanel,1,'left',True,False)
Exemplo n.º 12
0
def inputNickNamePanel() -> str:
    '''
    请求玩家输入昵称面板
    '''
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '6'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.inputnickname)
    EraPrint.p('\n')
    return yrn
Exemplo n.º 13
0
def inputNamePanel() -> str:
    '''
    请求玩家输入姓名面板
    '''
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '4'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.currencymenu)
    EraPrint.p('\n')
    return yrn
Exemplo n.º 14
0
def inputNickNamePanel():
    characterId = CacheContorl.characterData['characterId']
    CacheContorl.characterData['character'][
        characterId] = CacheContorl.temporaryCharacter.copy()
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '6'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.inputnickname, 1)
    EraPrint.p('\n')
    return yrn
Exemplo n.º 15
0
def askLoadSavePanel():
    EraPrint.p('\n')
    cmdList = TextLoading.getTextData(TextLoading.cmdPath, "loadSaveAsk")
    messageText = TextLoading.getTextData(TextLoading.messagePath, '23')
    EraPrint.pline()
    EraPrint.p(messageText)
    EraPrint.p('\n')
    yrn = CmdButtonQueue.optionint(None, 1, askfor=False, cmdListData=cmdList)
    return yrn
Exemplo n.º 16
0
def inputSexChoicePanel() -> str:
    '''
    玩家性别选择面板
    '''
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '7'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.sexmenu)
    EraPrint.p('\n')
    return yrn
Exemplo n.º 17
0
def attributeGenerationBranchPanel() -> str:
    '''
    玩家确认进行详细设置面板
    '''
    PyCmd.clr_cmd()
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '9'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.currencymenu)
    return yrn
Exemplo n.º 18
0
def detailedSetting8Panel() -> str:
    '''
    询问玩家肥胖程度面板
    '''
    EraPrint.p('\n')
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '29'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.detailedsetting8)
    return yrn
Exemplo n.º 19
0
def inputNamePanel():
    characterId = CacheContorl.characterData['characterId']
    CacheContorl.characterData['character'][
        characterId] = CacheContorl.temporaryCharacter.copy()
    AttrCalculation.setDefaultCache()
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '4'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.currencymenu, 1)
    EraPrint.p('\n')
    return yrn
Exemplo n.º 20
0
def confirmationRemoveSavePanel():
    EraPrint.p('\n')
    cmdList = TextLoading.getTextData(TextLoading.cmdPath,
                                      "confirmationRemoveSave")
    messageText = TextLoading.getTextData(TextLoading.messagePath, '25')
    EraPrint.pline()
    EraPrint.p(messageText)
    EraPrint.p('\n')
    yrn = CmdButtonQueue.optionint(None, 1, askfor=False, cmdListData=cmdList)
    return yrn
Exemplo n.º 21
0
def inputSelfNamePanel():
    characterId = CacheContorl.characterData['characterId']
    PyCmd.clr_cmd()
    CacheContorl.characterData['character'][
        characterId] = CacheContorl.temporaryCharacter.copy()
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '14'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.inputselfname, 1)
    EraPrint.p('\n')
    return yrn
Exemplo n.º 22
0
def inputSelfNamePanel() -> str:
    '''
    请求玩家输入自称面板
    '''
    PyCmd.clr_cmd()
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '14'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.inputselfname)
    EraPrint.p('\n')
    return yrn
Exemplo n.º 23
0
def askForSeeAttr() -> list:
    '''
    查看角色属性时输入处理面板
    '''
    EraPrint.pline()
    askData = TextLoading.getTextData(TextLoading.cmdPath,CmdButtonQueue.seeattrpanelmenu).copy()
    nowPanelId = CacheContorl.panelState['AttrShowHandlePanel']
    nullCmd = askData[nowPanelId]
    askList = list(askData.values())
    CmdButtonQueue.optionstr(None,5,'center',False,False,askList,nowPanelId,list(askData.keys()))
    del askData[nowPanelId]
    return list(askData.keys())
Exemplo n.º 24
0
def askForOverlaySavePanel() -> list:
    '''
    询问覆盖存档面板
    '''
    EraPrint.p('\n')
    cmdList = TextLoading.getTextData(TextLoading.cmdPath, "overlaySave")
    messageText = TextLoading.getTextData(TextLoading.messagePath, '21')
    EraPrint.pline()
    EraPrint.p(messageText)
    EraPrint.p('\n')
    yrn = CmdButtonQueue.optionint(None, askfor=False, cmdListData=cmdList)
    return yrn
Exemplo n.º 25
0
def seeCharacterWearItemCmdPanel(startId: int) -> list:
    '''
    查看角色已穿戴道具列表的控制面板
    Keyword arguments:
    startId -- 命令起始Id
    '''
    EraPrint.pline()
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.seecharacterwearclothes,
                                   cmdSize='center',
                                   askfor=False,
                                   startId=startId)
    return yrn
Exemplo n.º 26
0
def inSceneButtonPanel(startId: int) -> list:
    '''
    场景页面基础控制菜单面板
    Keyword arguments:
    startId -- 基础控制菜单命令起始Id
    '''
    EraPrint.pline()
    inputs = CmdButtonQueue.optionint(cmdList=CmdButtonQueue.inscenelist1,
                                      cmdColumn=9,
                                      askfor=False,
                                      cmdSize='center',
                                      startId=startId)
    return inputs
Exemplo n.º 27
0
def confirmationLoadSavePanel() -> list:
    '''
    确认读取存档面板
    '''
    EraPrint.p('\n')
    cmdList = TextLoading.getTextData(TextLoading.cmdPath,
                                      "confirmationLoadSave")
    messageText = TextLoading.getTextData(TextLoading.messagePath, '24')
    EraPrint.pline()
    EraPrint.p(messageText)
    EraPrint.p('\n')
    yrn = CmdButtonQueue.optionint(None, askfor=False, cmdListData=cmdList)
    return yrn
Exemplo n.º 28
0
def startInputNamePanel():
    '''
    玩家姓名输入处理面板
    '''
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '3'))
    while 1:
        characterName = GameInit.askfor_str()
        EraPrint.pl(characterName)
        if TextHandle.getTextIndex(characterName) > 10:
            EraPrint.pl(TextLoading.getTextData(TextLoading.errorPath, 'inputNameTooLongError'))
        else:
            CacheContorl.characterData['character'][0].Name = characterName
            break
Exemplo n.º 29
0
def startInputNamePanel():
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '3'))
    inputState = 0
    while inputState == 0:
        characterName = GameInit.askfor_str()
        EraPrint.pl(characterName)
        if TextHandle.getTextIndex(characterName) > 10:
            EraPrint.pl(
                TextLoading.getTextData(TextLoading.errorPath,
                                        'inputNameTooLongError'))
        else:
            inputState = 1
            CacheContorl.temporaryCharacter['Name'] = characterName
Exemplo n.º 30
0
def seeCharacterWearItemPanelForPlayer(characterId: int) -> list:
    '''
    用于场景中查看穿戴道具列表的控制面板
    Keyword arguments:
    characterId -- 角色Id
    changeButton -- 将角色穿戴道具列表绘制成按钮的开关
    '''
    EraPrint.plt(TextLoading.getTextData(TextLoading.stageWordPath, '40'))
    EraPrint.p(AttrText.getSeeAttrPanelHeadCharacterInfo(characterId))
    EraPrint.pline('.')
    if characterId == 0:
        return seeCharacterWearItemPanel(characterId, True)
    else:
        return seeCharacterWearItemPanel(characterId, False)