コード例 #1
0
ファイル: SeeMapPanel.py プロジェクト: Sleeplessy/dieloli
def backScenePanel(startId):
    inputS = []
    mapCmdList = CmdButtonQueue.optionint(CmdButtonQueue.seemap,
                                          askfor=False,
                                          startId=startId)
    inputS = inputS + mapCmdList
    return inputS
コード例 #2
0
def inSceneButtonPanel():
    inputs = CmdButtonQueue.optionint(cmdList=CmdButtonQueue.inscenelist1,
                                      cmdColumn=9,
                                      askfor=False,
                                      cmdSize='center')
    EraPrint.plittleline()
    return inputs
コード例 #3
0
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
コード例 #4
0
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
コード例 #5
0
def askForSeePlayerListPanel(startId):
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.seeplayerlist,
                                   3,
                                   'left',
                                   askfor=False,
                                   cmdSize='center',
                                   startId=startId)
    return yrn
コード例 #6
0
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
コード例 #7
0
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
コード例 #8
0
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
コード例 #9
0
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
コード例 #10
0
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
コード例 #11
0
ファイル: MainFramePanel.py プロジェクト: Sleeplessy/dieloli
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
コード例 #12
0
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
コード例 #13
0
ファイル: MainPanel.py プロジェクト: Sleeplessy/dieloli
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
コード例 #14
0
def detailedSetting7Panel():
    EraPrint.p('\n')
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '18'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.detailedsetting7)
    return yrn
コード例 #15
0
def askForSeeAttr():
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.seeattronrverytime,
                                   3,
                                   cmdSize='center',
                                   askfor=False)
    return yrn
コード例 #16
0
def inputAttrOverPanel():
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.acknowledgmentAttribute,
                                   1,
                                   askfor=False)
    return yrn
コード例 #17
0
def inputSexChoicePanel():
    EraPrint.pline()
    EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '7'))
    yrn = CmdButtonQueue.optionint(CmdButtonQueue.sexmenu, 1)
    return yrn