public GObjectEditor(object obj) : base(0, 0, 317, 392) { Gumps.Focus = (Gump)this; this.m_Object = obj; this.m_NonRestrictivePicking = true; this.Text = "Option Editor"; Hashtable categories = new Hashtable(); this.BuildCategories(obj, categories); ArrayList arrayList = new ArrayList((ICollection)categories); arrayList.Sort((IComparer) new CategorySorter()); ArrayList panels = new ArrayList(); foreach (DictionaryEntry dictionaryEntry in arrayList) { string category = (string)dictionaryEntry.Key; ArrayList entries = (ArrayList)dictionaryEntry.Value; GCategoryPanel gcategoryPanel = new GCategoryPanel(obj, category, entries); panels.Add((object)gcategoryPanel); } GEditorPanel geditorPanel = new GEditorPanel(panels, 360); this.m_Panel = geditorPanel; geditorPanel.X += 2; geditorPanel.Y += 3; this.Client.m_NonRestrictivePicking = true; this.Client.Children.Add((Gump)geditorPanel); this.Center(); }
public GEditorScroller(GEditorPanel panel) : base(0, 0) { this.m_Panel = panel; this.LargeOffset = 21; this.WheelOffset = 21; this.SmallOffset = 7; }