def backScenePanel(startId): inputS = [] mapCmdList = CmdButtonQueue.optionint(CmdButtonQueue.seemap, askfor=False, startId=startId) inputS = inputS + mapCmdList return inputS
def inSceneButtonPanel(): inputs = CmdButtonQueue.optionint(cmdList=CmdButtonQueue.inscenelist1, cmdColumn=9, askfor=False, cmdSize='center') EraPrint.plittleline() return inputs
def inputSexPanel(): playerId = CacheContorl.playObject['objectId'] sexId = CacheContorl.playObject['object'][playerId]['Sex'] EraPrint.pline() EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '8')[sexId]) yrn = CmdButtonQueue.optionint(CmdButtonQueue.currencymenu, 1) EraPrint.p('\n') return yrn
def attributeGenerationBranchPanel(): playerId = CacheContorl.playObject['objectId'] AttrCalculation.setAttrDefault(playerId) PyCmd.clr_cmd() EraPrint.pline() EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '9')) yrn = CmdButtonQueue.optionint(CmdButtonQueue.currencymenu, 1) return yrn
def askForSeePlayerListPanel(startId): yrn = CmdButtonQueue.optionint(CmdButtonQueue.seeplayerlist, 3, 'left', askfor=False, cmdSize='center', startId=startId) return yrn
def inputNickNamePanel(): playerId = CacheContorl.playObject['objectId'] CacheContorl.playObject['object'][ playerId] = CacheContorl.temporaryObject.copy() EraPrint.pline() EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '6')) yrn = CmdButtonQueue.optionint(CmdButtonQueue.inputnickname, 1) EraPrint.p('\n') return yrn
def askLoadSavePanel(): EraPrint.p('\n') cmdList = TextLoading.getTextData(TextLoading.cmdId, "loadSaveAsk") messageText = TextLoading.getTextData(TextLoading.messageId, '23') EraPrint.pline() EraPrint.p(messageText) EraPrint.p('\n') yrn = CmdButtonQueue.optionint(None, 1, askfor=False, cmdListData=cmdList) return yrn
def inputSelfNamePanel(): playerId = CacheContorl.playObject['objectId'] PyCmd.clr_cmd() CacheContorl.playObject['object'][ playerId] = CacheContorl.temporaryObject.copy() EraPrint.pline() EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '14')) yrn = CmdButtonQueue.optionint(CmdButtonQueue.inputselfname, 1) EraPrint.p('\n') return yrn
def confirmationRemoveSavePanel(): EraPrint.p('\n') cmdList = TextLoading.getTextData(TextLoading.cmdId, "confirmationRemoveSave") messageText = TextLoading.getTextData(TextLoading.messageId, '25') EraPrint.pline() EraPrint.p(messageText) EraPrint.p('\n') yrn = CmdButtonQueue.optionint(None, 1, askfor=False, cmdListData=cmdList) return yrn
def inputNamePanel(): playerId = CacheContorl.playObject['objectId'] CacheContorl.playObject['object'][ playerId] = CacheContorl.temporaryObject.copy() AttrCalculation.setDefaultCache() EraPrint.p('\n') EraPrint.pline() EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '4')) yrn = CmdButtonQueue.optionint(CmdButtonQueue.currencymenu, 1) EraPrint.p('\n') return yrn
def mainFramePanel(): cmdList = [] playerId = CacheContorl.playObject['objectId'] playerData = AttrHandle.getAttrData(playerId) titleText = TextLoading.getTextData(TextLoading.stageWordId, '64') EraPrint.plt(titleText) dateText = GameTime.getDateText() EraPrint.p(dateText) EraPrint.p(' ') weekDateText = GameTime.getWeekDayText() EraPrint.p(weekDateText) EraPrint.p(' ') playerName = playerData['Name'] PyCmd.pcmd(playerName, playerName, None) cmdList.append(playerName) EraPrint.p(' ') goldText = AttrText.getGoldText(playerId) EraPrint.p(goldText) EraPrint.p('\n') AttrPrint.printHpAndMpBar(playerId) mainMenuText = TextLoading.getTextData(TextLoading.stageWordId, '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.stageWordId, '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
def askForChangeSavePagePanel(startId): cmdList = TextLoading.getTextData(TextLoading.cmdId, "changeSavePage") savePanelPage = str(CacheContorl.panelState['SeeSaveListPanel']) maxSavePanelPage = str(CacheContorl.maxSavePage) savePageText = '(' + savePanelPage + '/' + maxSavePanelPage + ')' EraPrint.printPageLine(sample='-', string=savePageText) EraPrint.p('\n') yrn = CmdButtonQueue.optionint(None, 3, askfor=False, cmdSize='center', startId=startId, cmdListData=cmdList) return yrn
def gameMainPanel(): EraPrint.pline() EraPrint.pl(TextHandle.align(GameConfig.game_name, 'center')) EraPrint.pl(TextHandle.align(GameConfig.author, 'right')) EraPrint.pl(TextHandle.align(GameConfig.verson, 'right')) EraPrint.pl(TextHandle.align(GameConfig.verson_time, 'right')) EraPrint.p('\n') EraPrint.pline() EraPrint.lcp(1 / 3, TextLoading.getTextData(TextLoading.messageId, '2')) time.sleep(1) EraPrint.p('\n') EraPrint.pline() time.sleep(1) PyCmd.focusCmd() menuInt = CmdButtonQueue.optionint(CmdButtonQueue.logomenu) return menuInt
def detailedSetting7Panel(): EraPrint.p('\n') EraPrint.pline() EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '18')) yrn = CmdButtonQueue.optionint(CmdButtonQueue.detailedsetting7) return yrn
def askForSeeAttr(): yrn = CmdButtonQueue.optionint(CmdButtonQueue.seeattronrverytime, 3, cmdSize='center', askfor=False) return yrn
def inputAttrOverPanel(): yrn = CmdButtonQueue.optionint(CmdButtonQueue.acknowledgmentAttribute, 1, askfor=False) return yrn
def inputSexChoicePanel(): EraPrint.pline() EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '7')) yrn = CmdButtonQueue.optionint(CmdButtonQueue.sexmenu, 1) return yrn