//private void QAREToolWin_Activated(object sender, EventArgs e) //{ // this.Width = 140; // this.Height = 250; //} public void LoadAreaElement(QARETreeView.NodeCode nodeCode, int id) { this.areViewer.LoadAreaElement(nodeCode, id); }
public QARETreeNode(string text, QARETreeView.NodeCode nodeCode, int id) : base(text) { this.nodeCode = nodeCode; this.id = id; }
public QARETreeNode(string text, int imageIndex, int selectedImageIndex, QARETreeView.NodeCode nodeCode) : base(text, imageIndex, selectedImageIndex) { this.nodeCode = nodeCode; this.id = -1; }
public void LoadAreaElement(QARETreeView.NodeCode nodeCode, int id) { this.splitter.SuspendLayout(); switch (nodeCode) { case QARETreeView.NodeCode.NodeBasic: this.DisplayNodeBasic(); break; case QARETreeView.NodeCode.NodeActor: this.DisplayNodeActor(id); break; case QARETreeView.NodeCode.NodeAmbient: this.DisplayNodeAmbient(id); break; case QARETreeView.NodeCode.NodeAnim: this.DisplayNodeAnim(id); break; case QARETreeView.NodeCode.NodeContainer: this.DisplayNodeContainer(id); break; case QARETreeView.NodeCode.NodeDoor: this.DisplayNodeDoor(id); break; case QARETreeView.NodeCode.NodeEntrance: this.DisplayNodeEntrance(id); break; case QARETreeView.NodeCode.NodeInfoPt: this.DisplayNodeInfoPt(id); break; case QARETreeView.NodeCode.NodeMapnote: this.DisplayNodeMapnote(id); break; case QARETreeView.NodeCode.NodeProjectile: this.DisplayNodeProjectile(id); break; case QARETreeView.NodeCode.NodeSpawn: this.DisplayNodeSpawn(id); break; case QARETreeView.NodeCode.NodeVariable: this.DisplayNodeVariable(id); break; default: MessageBox.Show("Error: Unknown Area Element"); break; } if ((int)nodeCode < tabSet.Length) { if (!areTabs.TabPages.Contains(tabSet[(int)nodeCode])) { areTabs.TabPages.Add(tabSet[(int)nodeCode]); } if (this.Height - splitter.SplitterDistance < 100) { if (this.Height > 310) { splitter.SplitterDistance = this.Height - 310; } else { splitter.SplitterDistance = this.Height / 2; } splitter.Refresh(); } areTabs.SelectedTab = tabSet[(int)nodeCode]; splitter.Panel2Collapsed = false; } this.splitter.ResumeLayout(true); }