/// <summary> /// Adds an entry to the list. /// </summary> /// <param name="entry">The entry to be added.</param> /// <returns></returns> internal int Add(GumpListEntry entry) { if (!listEntries.ContainsKey(entry.GetHashCode())) { listEntries.Add(entry.GetHashCode(), entry); } return(entry.GetHashCode()); }
/// <summary> /// Constructor 1 /// </summary> /// <param name="Page">The gump to which the list will be added.</param> /// <param name="Style">The style of the GumpList.</param> /// <param name="Skin">The skinning parameters of the list.</param> public GumpList(Gump Page, string Style, BaseSkin Skin) { sk = Skin; page = Page; numperpage = sk.NumPerPage; style = Style; topbar = new GumpListEntry(sk.ListStartX, sk.ListStartY, this, sk.EntryDefaultWidth, sk.EntryDefaultHeight); listEntries.Add(topbar.GetHashCode(), topbar); DebugWrite("Constructor sans title end."); }
/// <summary> /// Constructor 1 /// </summary> /// <param name="Page">The gump to which the list will be added.</param> /// <param name="Style">The style of the GumpList.</param> /// <param name="Skin">The skinning parameters of the list.</param> public GumpList( Gump Page, string Style, BaseSkin Skin ) { sk = Skin; page = Page; numperpage = sk.NumPerPage; style = Style; topbar = new GumpListEntry(sk.ListStartX, sk.ListStartY, this, sk.EntryDefaultWidth, sk.EntryDefaultHeight); listEntries.Add( topbar.GetHashCode(), topbar); DebugWrite("Constructor sans title end."); }
/// <summary> /// Adds an entry to the list. /// </summary> /// <param name="entry">The entry to be added.</param> /// <returns></returns> internal int Add(GumpListEntry entry) { if( !listEntries.ContainsKey(entry.GetHashCode() ) ) listEntries.Add( entry.GetHashCode(), entry ); return entry.GetHashCode(); }