def detailedSetting2Panel(): EraPrint.p('\n') EraPrint.pline() EraPrint.pl(TextLoading.getTextData(TextLoading.messageId, '11')) yrn = CmdButtonQueue.optionstr(CmdButtonQueue.detailedsetting2, 5, 'center', True) return yrn
def seeMovePathPanel(): inputS = [] sceneId = CacheContorl.playObject['object']['0']['Position'] mapId = MapHandle.getMapIdForScene(sceneId) mapData = CacheContorl.mapData['MapData'][mapId] movePathInfo = TextLoading.getTextData(TextLoading.messageId, '27') EraPrint.p(movePathInfo) EraPrint.p('\n') pathEdge = mapData['PathEdge'] mapSceneId = str(MapHandle.getMapSceneIdForSceneId(mapId, sceneId)) 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(mapId, 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.messageId, '28') EraPrint.p(errorMoveText) EraPrint.pline() return {'inputS': inputS, 'scenePathList': scenePathList}
def seeAttrShowHandlePanel(): ansListData = TextLoading.getTextData(TextLoading.cmdId, 'seeAttrPanelHandle') seeAttrPanelHandleCache = CacheContorl.panelState['AttrShowHandlePanel'] inputS = [] if seeAttrPanelHandleCache == '0': inputS.append(ansListData[2]) inputS.append(ansListData[1]) elif seeAttrPanelHandleCache == '1': inputS.append(ansListData[0]) inputS.append(ansListData[2]) elif seeAttrPanelHandleCache == '2': inputS.append(ansListData[1]) inputS.append(ansListData[0]) yrn = CmdButtonQueue.optionstr(CmdButtonQueue.seeattrpanelmenu, 2, cmdSize='center', askfor=False, cmdListData=inputS) return yrn