示例#1
0
def seeCharacterEquipmentPanel(characterId: str) -> str:
    '''
    查看角色装备面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plittleline()
    EraPrint.p(TextLoading.getTextData(TextLoading.stageWordPath, '37'))
    panelState = CacheContorl.panelState['CharacterEquipmentPanel']
    if panelState == "0":
        PyCmd.pcmd(panelStateOffText, 'CharacterEquipmentPanel')
        characterData = AttrHandle.getAttrData(characterId)
        EraPrint.p('\n')
        EraPrint.p(TextLoading.getTextData(TextLoading.stageWordPath, '39'))
        EraPrint.p('\n')
        characterClothingList = characterData['Clothing']
        characterClothingText = AttrText.getClothingText(characterClothingList)
        EraPrint.plist(characterClothingText, 4, 'center')
        EraPrint.p('\n')
        EraPrint.p(TextLoading.getTextData(TextLoading.stageWordPath, '40'))
        EraPrint.p('\n')
        characterSexItemList = characterData['SexItem']
        characterSexItemText = AttrText.getSexItemText(characterSexItemList)
        EraPrint.plist(characterSexItemText, 5, 'center')
    else:
        PyCmd.pcmd(panelStateOnText, 'CharacterEquipmentPanel', None)
        EraPrint.p('\n')
    return 'CharacterEquipmentPanel'
示例#2
0
def seeCharacterInfoPanel():
    '''
    查看当前互动对象信息面板
    '''
    characterInfo = TextLoading.getTextData(TextLoading.stageWordPath, '77')
    EraPrint.p(characterInfo)
    characterId = CacheContorl.characterData['characterId']
    characterData = CacheContorl.characterData['character'][characterId]
    characterName = characterData.Name
    EraPrint.p(characterName)
    EraPrint.p(' ')
    sex = characterData.Sex
    sexText = TextLoading.getTextData(TextLoading.stageWordPath,
                                      '2') + AttrText.getSexText(sex)
    EraPrint.p(sexText)
    EraPrint.p(' ')
    intimateInfo = TextLoading.getTextData(TextLoading.stageWordPath, '16')
    gracesInfo = TextLoading.getTextData(TextLoading.stageWordPath, '17')
    characterIntimateText = intimateInfo + f'{characterData.Intimate}'
    characterGracesText = gracesInfo + f'{characterData.Graces}'
    EraPrint.p(characterIntimateText)
    EraPrint.p(' ')
    EraPrint.p(characterGracesText)
    stateText = AttrText.getStateText(characterId)
    EraPrint.p(' ')
    EraPrint.p(stateText)
    EraPrint.plittleline()
示例#3
0
def mainFramePanel():
    cmdList = []
    characterId = CacheContorl.characterData['characterId']
    characterData = AttrHandle.getAttrData(characterId)
    titleText = TextLoading.getTextData(TextLoading.stageWordPath, '64')
    EraPrint.plt(titleText)
    dateText = GameTime.getDateText()
    EraPrint.p(dateText)
    EraPrint.p(' ')
    weekDateText = GameTime.getWeekDayText()
    EraPrint.p(weekDateText)
    EraPrint.p(' ')
    characterName = characterData['Name']
    PyCmd.pcmd(characterName,characterName,None)
    cmdList.append(characterName)
    EraPrint.p(' ')
    goldText = AttrText.getGoldText(characterId)
    EraPrint.p(goldText)
    EraPrint.p('\n')
    AttrPrint.printHpAndMpBar(characterId)
    mainMenuText = TextLoading.getTextData(TextLoading.stageWordPath,'68')
    EraPrint.sontitleprint(mainMenuText)
    EraPrint.p('\n')
    askForMainMenu = CmdButtonQueue.optionint(CmdButtonQueue.mainmenu, 4, 'left', askfor=False, cmdSize='center')
    cmdList = cmdList + askForMainMenu
    systemMenuText = TextLoading.getTextData(TextLoading.stageWordPath,'69')
    EraPrint.sontitleprint(systemMenuText)
    EraPrint.p('\n')
    systemMenuStartId = len(askForMainMenu)
    askForSystemMenu = CmdButtonQueue.optionint(CmdButtonQueue.systemmenu, 4, 'left', askfor=False, cmdSize='center', startId=systemMenuStartId)
    cmdList = cmdList + askForSystemMenu
    return cmdList
示例#4
0
def getRandomNpcData():
    if CacheContorl.randomNpcList == []:
        ageWeightMax = 0
        for i in ageWeightData:
            ageWeightMax += int(ageWeightData[i])
        for i in range(0, randomNpcMax):
            nowAgeWeight = random.randint(0, ageWeightMax - 1)
            nowAgeWeightRegin = ValueHandle.getNextValueForList(
                nowAgeWeight, ageWeightReginList)
            ageWeightTem = ageWeightReginData[str(nowAgeWeightRegin)]
            randomNpcSex = getRandNpcSex()
            randomNpcName = AttrText.getRandomNameForSex(randomNpcSex)
            randomNpcAgeTem = getRandNpcAgeTem(ageWeightTem)
            fatTem = getRandNpcFatTem(ageWeightTem)
            bodyFatTem = getRandNpcBodyFatTem(ageWeightTem, fatTem)
            randomNpcNewData = {
                "Name": randomNpcName,
                "Sex": randomNpcSex,
                "Age": randomNpcAgeTem,
                "Position": ["0"],
                "AdvNpc": "1",
                "Weight": fatTem,
                "BodyFat": bodyFatTem
            }
            CacheContorl.randomNpcList.append(randomNpcNewData)
        return CacheContorl.randomNpcList
示例#5
0
def seeCharacterListPanel(maxPage):
    titleText = TextLoading.getTextData(TextLoading.stageWordPath,'74')
    EraPrint.plt(titleText)
    inputS = []
    pageId = int(CacheContorl.panelState['SeeCharacterListPanel'])
    pageShow = int(GameConfig.characterlist_show)
    maxPage = int(maxPage)
    characterMax = CharacterHandle.getCharacterIndexMax()
    if pageId == maxPage:
        showPageStart = pageShow * pageId
        showPageOver = showPageStart + (characterMax + 1 - showPageStart)
    else:
        showPageOver = pageShow * (pageId + 1)
        showPageStart = showPageOver - pageShow
    for i in range(showPageStart,showPageOver):
        characterId = str(i)
        cmdId = i - showPageStart
        cmdIdText = CmdButtonQueue.idIndex(cmdId)
        cmdText = AttrText.getCharacterAbbreviationsInfo(characterId)
        cmdIdTextIndex = TextHandle.getTextIndex(cmdIdText)
        windowWidth = int(GameConfig.text_width)
        textWidth = windowWidth - cmdIdTextIndex
        cmdText = TextHandle.align(cmdText,'center',textWidth=textWidth)
        cmdText = cmdIdText + ' ' + cmdText
        cmdId = str(cmdId)
        EraPrint.plittleline()
        PyCmd.pcmd(cmdText, cmdId, None)
        inputS.append(cmdId)
        EraPrint.p('\n')
    pageText = '(' + str(pageId) + '/' + str(maxPage) + ')'
    EraPrint.printPageLine(sample = '-',string = pageText)
    EraPrint.p('\n')
    return inputS
示例#6
0
def createRandomNpc(id) -> dict:
    '''
    生成随机npc数据模板
    '''
    nowAgeWeight = random.randint(-1,ageWeightMax - 1)
    nowAgeWeightRegin = ValueHandle.getNextValueForList(nowAgeWeight,ageWeightReginList)
    ageWeightTem = ageWeightReginData[nowAgeWeightRegin]
    randomNpcSex = getRandNpcSex()
    randomNpcName = AttrText.getRandomNameForSex(randomNpcSex)
    randomNpcAgeTem = getRandNpcAgeTem(ageWeightTem)
    fatTem = getRandNpcFatTem(ageWeightTem)
    bodyFatTem = getRandNpcBodyFatTem(ageWeightTem,fatTem)
    randomNpcNewData = {
        "Name":randomNpcName,
        "Sex":randomNpcSex,
        "Age":randomNpcAgeTem,
        "Position":["0"],
        "AdvNpc":"1",
        "Weight":fatTem,
        "BodyFat":bodyFatTem
    }
    if randomNpcSex in {"Woman":1,"Futa":1}:
        randomNpcNewData['Chest'] = AttrCalculation.getRandNpcChestTem()
    else:
        randomNpcNewData['Chest'] = 'Precipice'
    CacheContorl.randomNpcList.append(randomNpcNewData)
示例#7
0
def seeCharacterWearItemPanel(characterId:int):
    '''
    查看角色穿戴道具面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plt(TextLoading.getTextData(TextLoading.stageWordPath, '40'))
    EraPrint.pl(AttrText.getSeeAttrPanelHeadCharacterInfo(characterId))
    WearItemPanel.seeCharacterWearItemPanel(characterId,False)
示例#8
0
def seeCharacterNaturePanel(characterId:int):
    '''
    查看角色性格面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plt(TextLoading.getTextData(TextLoading.stageWordPath,'139'))
    EraPrint.pl(AttrText.getSeeAttrPanelHeadCharacterInfo(characterId))
    SeeNaturePanel.seeCharacterNaturePanel(characterId)
示例#9
0
def seeCharacterSocialContactPanel(characterId:int):
    '''
    查看角色社交面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plt(TextLoading.getTextData(TextLoading.stageWordPath,'145'))
    EraPrint.pl(AttrText.getSeeAttrPanelHeadCharacterInfo(characterId))
    SeeSocialContactPanel.seeCharacterSocialContactPanel(characterId)
示例#10
0
def seeCharacterStatusHeadPanel(characterId:str) -> str:
    '''
    查看角色状态面板头部面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plt(TextLoading.getTextData(TextLoading.stageWordPath, '135'))
    EraPrint.pl(AttrText.getSeeAttrPanelHeadCharacterInfo(characterId))
    seeCharacterStatusPanel(characterId)
示例#11
0
def seeCharacterSexExperiencePanel(characterId: int):
    '''
    查看角色性经验面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plittleline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.stageWordPath, '5'))
    characterData = CacheContorl.characterData['character'][characterId]
    characterSexGradeList = characterData.SexGrade
    characterSex = CacheContorl.characterData['character'][characterId].Sex
    characterSexGradeTextList = AttrText.getSexGradeTextList(
        characterSexGradeList, characterSex)
    EraPrint.plist(characterSexGradeTextList, 4, 'center')
    EraPrint.pl(TextLoading.getTextData(TextLoading.stageWordPath, '7'))
    characterEngraving = characterData.Engraving
    characterEngravingText = AttrText.getEngravingText(characterEngraving)
    EraPrint.plist(characterEngravingText, 3, 'center')
示例#12
0
def seeCharacterEquipmentPanel(characterId:int):
    '''
    查看角色装备面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plt(TextLoading.getTextData(TextLoading.stageWordPath, '37'))
    EraPrint.p(AttrText.getSeeAttrPanelHeadCharacterInfo(characterId))
    ChangeClothesPanel.seeCharacterWearClothes(characterId,False)
示例#13
0
def seeCharacterWearClothes(characterId:str):
    '''
    查看角色已穿戴服装列表面板
    Keyword arguments:
    characterId -- 角色id
    '''
    sceneInfo = TextLoading.getTextData(TextLoading.stageWordPath,'79')
    EraPrint.plt(sceneInfo)
    characterInfo = AttrText.getCharacterAbbreviationsInfo(characterId)
    EraPrint.p(characterInfo)
示例#14
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)
示例#15
0
def seeCharacterLanguagePanel(characterId: str):
    '''
    查看角色语言能力面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    languageTextData = TextLoading.getGameData(TextLoading.languageSkillsPath)
    characterLanguage = CacheContorl.characterData['character'][
        characterId].Language
    infoList = [
        languageTextData[language]['Name'] + ":" +
        AttrText.getLevelColorText(characterLanguage[language])
        for language in characterLanguage
    ]
    EraPrint.plist(infoList, 4, 'center')
示例#16
0
def seeCharacterEngravingPanel(characterId):
    EraPrint.plittleline()
    EraPrint.p(TextLoading.getTextData(TextLoading.stageWordPath, '7'))
    panelState = CacheContorl.panelState['CharacterEngravingPanel']
    if panelState == "0":
        PyCmd.pcmd(panelStateOffText, 'CharacterEngravingPanel')
        EraPrint.p('\n')
        characterData = AttrHandle.getAttrData(characterId)
        characterEngraving = characterData['Engraving']
        characterEngravingText = AttrText.getEngravingText(characterEngraving)
        EraPrint.plist(characterEngravingText, 3, 'center')
        return 'CharacterEngravingPanel'
    else:
        PyCmd.pcmd(panelStateOnText, 'CharacterEngravingPanel')
        EraPrint.p('\n')
        return 'CharacterEngravingPanel'
示例#17
0
def seeCharacterFeaturesPanel(characterId):
    EraPrint.plittleline()
    EraPrint.p(TextLoading.getTextData(TextLoading.stageWordPath, '6'))
    panelState = CacheContorl.panelState['CharacterFeaturesPanel']
    if panelState == "0":
        PyCmd.pcmd(panelStateOffText, 'CharacterFeaturesPanel')
        EraPrint.p('\n')
        characterData = AttrHandle.getAttrData(characterId)
        characterFeatures = characterData['Features']
        characterFeaturesStr = AttrText.getFeaturesStr(characterFeatures)
        EraPrint.p(characterFeaturesStr)
        return 'CharacterFeaturesPanel'
    else:
        PyCmd.pcmd(panelStateOnText, 'CharacterFeaturesPanel')
        EraPrint.p('\n')
        return 'CharacterFeaturesPanel'
    pass
示例#18
0
def seeCharacterItemInfoPanel(characterId: str, itemId: str):
    '''
    用于查看角色道具信息的面板
    Keyword arguments:
    characterId -- 角色Id
    itemId -- 道具Id
    '''
    titleText = TextLoading.getTextData(TextLoading.stageWordPath, '38')
    EraPrint.plt(titleText)
    EraPrint.p(AttrText.getSeeAttrPanelHeadCharacterInfo(characterId))
    EraPrint.pline('.')
    itemData = CacheContorl.characterData['character'][characterId].Item[
        itemId]
    EraPrint.pl(
        TextLoading.getTextData(TextLoading.stageWordPath, 128) +
        itemData['ItemName'])
    EraPrint.pl(
        TextLoading.getTextData(TextLoading.stageWordPath, '131') +
        itemData['ItemInfo'])
示例#19
0
def seeCharacterExperiencePanel(characterId):
    EraPrint.plittleline()
    EraPrint.p(TextLoading.getTextData(TextLoading.stageWordPath, '18'))
    panelState = CacheContorl.panelState['CharacterExperiencePanel']
    if panelState == "0":
        PyCmd.pcmd(panelStateOffText, 'CharacterExperiencePanel')
        characterData = AttrHandle.getAttrData(characterId)
        EraPrint.p('\n')
        characterSexExperienceList = characterData['SexExperience']
        characterSex = CacheContorl.characterData['character'][characterId][
            'Sex']
        characterSexTextList = AttrText.getSexExperienceText(
            characterSexExperienceList, characterSex)
        EraPrint.plist(characterSexTextList, 4, 'center')
        return 'CharacterExperiencePanel'
    else:
        PyCmd.pcmd(panelStateOnText, 'CharacterExperiencePanel')
        EraPrint.p('\n')
        return 'CharacterExperiencePanel'
示例#20
0
def seeCharacterKnowledgePanel(characterId: str):
    '''
    查看角色技能信息面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    knowledgeTextData = TextLoading.getGameData(TextLoading.knowledge)
    characterKnowledge = CacheContorl.characterData['character'][
        characterId].Knowledge
    for knowledge in knowledgeTextData:
        EraPrint.sontitleprint(knowledgeTextData[knowledge]['Name'])
        if knowledge in characterKnowledge:
            infoList = [
                knowledgeTextData[knowledge]['Knowledge'][skill]['Name'] +
                ":" + AttrText.getLevelColorText(
                    characterKnowledge[knowledge][skill])
                for skill in characterKnowledge[knowledge]
            ]
            EraPrint.plist(infoList, 6, 'center')
示例#21
0
def seeCharacterFeaturesPanel(characterId: str) -> str:
    '''
    查看角色特征面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plittleline()
    EraPrint.p(TextLoading.getTextData(TextLoading.stageWordPath, '6'))
    panelState = CacheContorl.panelState['CharacterFeaturesPanel']
    if panelState == "0":
        PyCmd.pcmd(panelStateOffText, 'CharacterFeaturesPanel')
        EraPrint.p('\n')
        characterData = AttrHandle.getAttrData(characterId)
        characterFeatures = characterData['Features']
        characterFeaturesStr = AttrText.getFeaturesStr(characterFeatures)
        EraPrint.p(characterFeaturesStr)
    else:
        PyCmd.pcmd(panelStateOnText, 'CharacterFeaturesPanel')
        EraPrint.p('\n')
    return 'CharacterFeaturesPanel'
示例#22
0
def seeCharacterItemPanel(characterId: int) -> list:
    '''
    查看角色背包道具列表面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.p(AttrText.getSeeAttrPanelHeadCharacterInfo(characterId))
    EraPrint.pline('.')
    if characterId != '0':
        EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '37'))
        return []
    characterItemData = CacheContorl.characterData['character'][
        characterId].Item
    if len(characterItemData) == 0:
        EraPrint.pl(TextLoading.getTextData(TextLoading.messagePath, '36'))
        return []
    nowPageId = int(CacheContorl.panelState['SeeCharacterItemListPanel'])
    nowPageMax = GameConfig.see_character_item_max
    nowPageStartId = nowPageId * nowPageMax
    nowPageEndId = nowPageStartId + nowPageMax
    if nowPageEndId > len(characterItemData.keys()):
        nowPageEndId = len(characterItemData.keys())
    inputS = []
    index = 0
    for i in range(nowPageStartId, nowPageEndId):
        itemId = list(characterItemData.keys())[i]
        itemData = characterItemData[itemId]
        itemText = itemData['ItemName'] + ' ' + TextLoading.getTextData(
            TextLoading.stageWordPath, '136') + str(itemData['ItemNum'])
        if characterId == '0':
            idInfo = CmdButtonQueue.idIndex(index)
            cmdText = idInfo + drawText
            PyCmd.pcmd(cmdText, index, None)
        else:
            EraPrint.p(drawText)
        index += 1
        inputS.append(str(index))
        EraPrint.p('\n')
    return inputS
示例#23
0
def seeCharacterLevelPanel(characterId: str) -> str:
    '''
    查看角色技能等级面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    EraPrint.plittleline()
    EraPrint.p(TextLoading.getTextData(TextLoading.stageWordPath, '5'))
    panelState = CacheContorl.panelState['CharacterLevelPanel']
    if panelState == "0":
        PyCmd.pcmd(panelStateOffText, 'CharacterLevelPanel')
        EraPrint.p('\n')
        characterData = AttrHandle.getAttrData(characterId)
        characterSexGradeList = characterData['SexGrade']
        characterSex = CacheContorl.characterData['character'][characterId][
            'Sex']
        characterSexGradeTextList = AttrText.getSexGradeTextList(
            characterSexGradeList, characterSex)
        EraPrint.plist(characterSexGradeTextList, 4, 'center')
    else:
        PyCmd.pcmd(panelStateOnText, 'CharacterLevelPanel')
        EraPrint.p('\n')
    return 'CharacterLevelPanel'
示例#24
0
def seeCharacterWearClothes(characterId):
    sceneInfo = TextLoading.getTextData(TextLoading.stageWordPath, '79')
    EraPrint.plt(sceneInfo)
    characterInfo = AttrText.getCharacterAbbreviationsInfo(characterId)
    EraPrint.p(characterInfo)
示例#25
0
def seeCharacterMainAttrPanel(characterId:int):
    '''
    查看角色主属性面板
    Keyword arguments:
    characterId -- 角色Id
    '''
    title1 = TextLoading.getTextData(TextLoading.stageWordPath, '1')
    EraPrint.plt(title1)
    characterIdText = f"{TextLoading.getTextData(TextLoading.stageWordPath, '0')}{characterId}"
    characterData = CacheContorl.characterData['character'][characterId]
    name = characterData.Name
    nickName = characterData.NickName
    characterName = TextLoading.getTextData(TextLoading.stageWordPath,'13') + name
    characterNickName = TextLoading.getTextData(TextLoading.stageWordPath,'12') + nickName
    sex = characterData.Sex
    sexText = TextLoading.getTextData(TextLoading.stageWordPath, '2') + AttrText.getSexText(sex)
    nameText = characterIdText + ' ' + characterName + ' ' + characterNickName + ' ' + sexText
    hpBar = AttrPrint.getHpOrMpBar(characterId,'HitPoint',GameConfig.text_width / 2 - 4)
    EraPrint.plist([nameText,hpBar],2,'center')
    EraPrint.pl()
    stateText = AttrText.getStateText(characterId)
    mpBar = AttrPrint.getHpOrMpBar(characterId,'ManaPoint',GameConfig.text_width / 2 - 4)
    EraPrint.plist([stateText,mpBar],2,'center')
    EraPrint.pl()
    EraPrint.plittleline()
    statureText = AttrText.getStatureText(characterId)
    EraPrint.pl(statureText)
    EraPrint.pline('.')
    EraPrint.pl(AttrText.getCharacterDormitoryPathText(characterId))
    EraPrint.plittleline()
    characterSpecies = f"{TextLoading.getTextData(TextLoading.stageWordPath, '15')}{characterData.Species}"
    characterAge = f"{TextLoading.getTextData(TextLoading.stageWordPath, '3')}{characterData.Age}"
    birthdayText = f"{TextLoading.getTextData(TextLoading.stageWordPath,'140')}{characterData.Birthday['month']}{TextLoading.getTextData(TextLoading.stageWordPath,'60')}{characterData.Birthday['day']}{TextLoading.getTextData(TextLoading.stageWordPath,'61')}"
    EraPrint.plist([characterSpecies,characterAge,birthdayText],3,'center')
    EraPrint.pline('.')
    characterIntimate = f"{TextLoading.getTextData(TextLoading.stageWordPath, '16')}{characterData.Intimate}"
    characterGraces = f"{TextLoading.getTextData(TextLoading.stageWordPath, '17')}{characterData.Graces}"
    EraPrint.plist([characterIntimate,characterGraces],2,'center')
    EraPrint.pline('.')
    characterChest = characterData.Chest['NowChest']
    chestGroup = AttrCalculation.judgeChestGroup(characterChest)
    chestText = TextLoading.getTextData(TextLoading.stageWordPath,'141') + TextLoading.getTextData(TextLoading.stageWordPath,'142')[chestGroup]
    EraPrint.plist([chestText],1,'center')
    EraPrint.pline('.')
    characterHeight = characterData.Height['NowHeight']
    characterWeight = characterData.Weight
    characterHeightText = str(round(characterHeight,2))
    characterWeightText = str(round(characterWeight,2))
    characterHeightInfo = TextLoading.getTextData(TextLoading.stageWordPath,'80') + characterHeightText
    characterWeightInfo = TextLoading.getTextData(TextLoading.stageWordPath,'81') + characterWeightText
    EraPrint.plist([characterHeightInfo,characterWeightInfo],2,'center')
    EraPrint.pline('.')
    characterMeasurements = characterData.Measurements
    characterBust = str(round(characterMeasurements['Bust'],2))
    characterWaist = str(round(characterMeasurements['Waist'],2))
    characterHip = str(round(characterMeasurements['Hip'],2))
    characterBustInfo = TextLoading.getTextData(TextLoading.stageWordPath,'82') + characterBust
    characterWaistInfo = TextLoading.getTextData(TextLoading.stageWordPath,'83') + characterWaist
    characterHipInfo = TextLoading.getTextData(TextLoading.stageWordPath,'84') + characterHip
    EraPrint.plist([characterBustInfo,characterWaistInfo,characterHipInfo],3,'center')
    EraPrint.pline('.')
示例#26
0
def seeCharacterMainAttrPanel(characterId):
    title1 = TextLoading.getTextData(TextLoading.stageWordPath, '1')
    EraPrint.plt(title1)
    characteridText = TextLoading.getTextData(TextLoading.stageWordPath,
                                              '0') + characterId
    EraPrint.p(characteridText)
    panelState = CacheContorl.panelState['CharacterMainAttrPanel']
    if panelState == "0":
        PyCmd.pcmd(panelStateOffText, 'CharacterMainAttrPanel', None)
        EraPrint.p('\n')
        attrListString = []
        characterData = AttrHandle.getAttrData(characterId)
        characterSexId = characterData['Sex']
        characterSex = AttrText.getSexText(characterSexId)
        characterAge = characterData['Age']
        characterName = characterData['Name']
        fixCharacterName = TextLoading.getTextData(TextLoading.stageWordPath,
                                                   '13')
        characterName = fixCharacterName + characterName
        attrListString.append(characterName)
        characterSelfName = characterData['SelfName']
        fixCharacterSelfName = TextLoading.getTextData(
            TextLoading.stageWordPath, '11')
        characterSelfName = fixCharacterSelfName + characterSelfName
        attrListString.append(characterSelfName)
        characterNickName = characterData['NickName']
        characterNickName = TextLoading.getTextData(TextLoading.stageWordPath,
                                                    '12') + characterNickName
        attrListString.append(characterNickName)
        relationship = characterData['Relationship']
        relationship = TextLoading.getTextData(TextLoading.stageWordPath,
                                               '14') + relationship
        attrListString.append(relationship)
        characterSpecies = characterData['Species']
        characterSpecies = TextLoading.getTextData(TextLoading.stageWordPath,
                                                   '15') + characterSpecies
        attrListString.append(characterSpecies)
        characterSex = TextLoading.getTextData(TextLoading.stageWordPath,
                                               '2') + characterSex
        attrListString.append(characterSex)
        characterAge = TextLoading.getTextData(TextLoading.stageWordPath,
                                               '3') + str(characterAge)
        attrListString.append(characterAge)
        EraPrint.p('\n')
        characterSan = characterData['San']
        characterSan = TextLoading.getTextData(TextLoading.stageWordPath,
                                               '10') + characterSan
        attrListString.append(characterSan)
        characterHeight = characterData['Height']['NowHeight']
        characterWeight = characterData['Weight']
        characterMeasurements = characterData['Measurements']
        characterHeightText = str(round(characterHeight, 2))
        characterWeightText = str(round(characterWeight, 2))
        characterBust = str(round(characterMeasurements['Bust'], 2))
        characterWaist = str(round(characterMeasurements['Waist'], 2))
        characterHip = str(round(characterMeasurements['Hip'], 2))
        characterHeightInfo = TextLoading.getTextData(
            TextLoading.stageWordPath, '80') + characterHeightText
        attrListString.append(characterHeightInfo)
        characterWeightInfo = TextLoading.getTextData(
            TextLoading.stageWordPath, '81') + characterWeightText
        attrListString.append(characterWeightInfo)
        characterBustInfo = TextLoading.getTextData(TextLoading.stageWordPath,
                                                    '82') + characterBust
        characterWaistInfo = TextLoading.getTextData(TextLoading.stageWordPath,
                                                     '83') + characterWaist
        characterHipInfo = TextLoading.getTextData(TextLoading.stageWordPath,
                                                   '84') + characterHip
        characterIntimate = characterData['Intimate']
        characterIntimate = TextLoading.getTextData(TextLoading.stageWordPath,
                                                    '16') + characterIntimate
        attrListString.append(characterIntimate)
        characterGraces = characterData['Graces']
        characterGraces = TextLoading.getTextData(TextLoading.stageWordPath,
                                                  '17') + characterGraces
        attrListString.append(characterGraces)
        attrListString.append(characterBustInfo)
        attrListString.append(characterWaistInfo)
        attrListString.append(characterHipInfo)
        EraPrint.plist(attrListString, 4, 'center')
        EraPrint.p('\n')
        AttrPrint.printHpAndMpBar(characterId)
        return 'CharacterMainAttrPanel'
    else:
        characterName = CacheContorl.characterData['character'][characterId][
            'Name']
        EraPrint.p(' ' + characterName + ' ')
        PyCmd.pcmd(panelStateOnText, 'CharacterMainAttrPanel', None)
        EraPrint.p('\n')
        return 'CharacterMainAttrPanel'