protected virtual void OnTypeTreeCursorChanged(object sender, System.EventArgs e) { InfoTree.ItemsDataSource = (TypeTree.CurrentSelection.FinalTarget as IDevelopmentInformation).DevelopmentDescriptions; if (InfoTree.ItemsDataSource != null) { InfoTree.ExpandAll(); } InfoLabel.Markup = "<b>Type</b> development information"; DescriptionBox.DataSource = null; DescriptionBox.Visible = false; }
public void UpdateInfo(GameDataObject gameObject, InfoTree infoTree) { if (infoTree != null) { InfoTreeNode infoNode = (InfoTreeNode)infoTree.getNode(infoTree.currentIndex); infoNode.SelectNode(infoTree); UIHelper.UpdateTextComponent(TreeInfoPanel, "TreeInfoTitle", infoNode.content.nodeName); UIHelper.UpdateTextComponent(TreeInfoPanel, "TreeInfoText", infoNode.content.text); gameObject.runActions(infoNode.actionList); } }
public void UpdateInfo(GameDataObject gameObject, InfoTree infoTree) { if (infoTree != null) { InfoTreeNode infoNode = (InfoTreeNode)infoTree.getNode(infoTree.currentIndex); infoNode.SelectNode(infoTree); UIHelper.UpdateTextComponent(TreeInfoPanel, "TreeInfoTitle", infoNode.content.nodeName); UIHelper.UpdateTextComponent(TreeInfoPanel, "TreeInfoText", infoNode.content.text); gameObject.runActions(infoNode.actionList); } }
private void ClickInfoNode(long linkIndex) { //update the TreeInfoPanel InfoTree curInfoTree = (InfoTree)gameDataObject.treeStore.getTree(linkIndex); TreeInfoControllerScript treeInfoScript = TreeInfoPanel.GetComponent <TreeInfoControllerScript>(); treeInfoScript.UpdateInfo(gameDataObject, curInfoTree); //if this Info Node changes flags that would update locks updateMapCollision(); treeInfoPanelRectTransform.localPosition = new UnityEngine.Vector3(0, 0, 0); loadTileSprites(); //update object sprites }
private void BindTree() { if (tbNodeName.Text.Trim() != "") { Session["strWhere"] += " and INFONAME like '%" + tbNodeName.Text + "%'"; } //if (cbbPDepart.SelectedIndex > -1) //{ // Session["strWhere"] += " and PDEPART = '" + cbbPDepart.SelectedItem.Text.Trim() + "'"; //} if (deDay.Value != null) { Session["strWhere"] += " and PDAY <= to_date('" + deDay.Date + "','yyyy-mm-dd hh24:mi:ss')"; } if (cbbStatus.SelectedIndex > -1) { Session["strWhere"] += " and STATUS='" + cbbStatus.SelectedItem.Text + "'"; } InfoTree.DataBind(); }
public static ITree getTreeFromString(string data, TreeType treeType, GlobalFlags gf) { ITree t = null; List <ITreeNode> treeNodeList = null; switch (treeType) { case TreeType.World: WorldTree worldTree = new WorldTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); worldTree.treeNodeDictionary = getWorldTreeNodeFromList(treeNodeList); worldTree.currentIndex = treeNodeList[0].index; t = worldTree; break; case TreeType.Zone: ZoneTree zoneTree = new ZoneTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); zoneTree.treeNodeDictionary = getZoneTreeNodeFromList(treeNodeList); zoneTree.currentIndex = treeNodeList[0].index; t = zoneTree; break; case TreeType.Dialog: DialogTree dialogTree = new DialogTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); dialogTree.treeNodeDictionary = getDialogTreeNodeFromList(treeNodeList); dialogTree.currentIndex = treeNodeList[0].index; t = dialogTree; break; case TreeType.Quest: QuestTree questTree = new QuestTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); questTree.treeNodeDictionary = getQuestTreeNodeFromList(treeNodeList); questTree.currentIndex = treeNodeList[0].index; t = questTree; break; case TreeType.Battle: BattleTree battleTree = new BattleTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); battleTree.treeNodeDictionary = getBattleTreeNodeFromList(treeNodeList); battleTree.currentIndex = treeNodeList[0].index; t = battleTree; break; case TreeType.Info: InfoTree infoTree = new InfoTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); infoTree.treeNodeDictionary = getInfoTreeNodeFromList(treeNodeList); infoTree.currentIndex = treeNodeList[0].index; t = infoTree; break; case TreeType.Store: StoreTree storeTree = new StoreTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); storeTree.treeNodeDictionary = getStoreTreeNodeFromList(treeNodeList); storeTree.currentIndex = treeNodeList[0].index; t = storeTree; break; case TreeType.Cutscene: CutsceneTree cutsceneTree = new CutsceneTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); cutsceneTree.treeNodeDictionary = getCutsceneTreeNodeFromList(treeNodeList); cutsceneTree.currentIndex = treeNodeList[0].index; t = cutsceneTree; break; default: break; } return(t); }
public static ITree getTreeFromString(string data, TreeType treeType, GlobalFlags gf) { ITree t = null; List<ITreeNode> treeNodeList = null; switch (treeType) { case TreeType.World: WorldTree worldTree = new WorldTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); worldTree.treeNodeDictionary = getWorldTreeNodeFromList(treeNodeList); worldTree.currentIndex = treeNodeList[0].index; t = worldTree; break; case TreeType.Zone: ZoneTree zoneTree = new ZoneTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); zoneTree.treeNodeDictionary = getZoneTreeNodeFromList(treeNodeList); zoneTree.currentIndex = treeNodeList[0].index; t = zoneTree; break; case TreeType.Dialog: DialogTree dialogTree = new DialogTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); dialogTree.treeNodeDictionary = getDialogTreeNodeFromList(treeNodeList); dialogTree.currentIndex = treeNodeList[0].index; t = dialogTree; break; case TreeType.Quest: QuestTree questTree = new QuestTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); questTree.treeNodeDictionary = getQuestTreeNodeFromList(treeNodeList); questTree.currentIndex = treeNodeList[0].index; t = questTree; break; case TreeType.Battle: BattleTree battleTree = new BattleTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); battleTree.treeNodeDictionary = getBattleTreeNodeFromList(treeNodeList); battleTree.currentIndex = treeNodeList[0].index; t = battleTree; break; case TreeType.Info: InfoTree infoTree = new InfoTree(gf, treeType); treeNodeList = getTreeNodeListFromString(data, treeType); infoTree.treeNodeDictionary = getInfoTreeNodeFromList(treeNodeList); infoTree.currentIndex = treeNodeList[0].index; t = infoTree; break; default: break; } return t; }