示例#1
0
 /// <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());
 }
示例#2
0
 /// <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.");
 }
示例#3
0
		/// <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.");
		}
示例#4
0
		/// <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();
		}