Exemple #1
0
        /// <summary>
        /// Gets entry # in the gump relay.
        /// </summary>
        public static TextRelay GetEntry(int entryID, ToolbarEdit gump)
        {
            int       temp  = 0;
            TextRelay relay = null;

            for (int i = 0; i < gump.TextRelays.Count; i++)
            {
                if (gump.TextRelays[i].EntryID == entryID)
                {
                    temp  = i;
                    relay = gump.TextRelays[i];
                }
            }
            gump.TextRelays.RemoveAt(temp);
            return(relay);
        }
		/// <summary>
		///     Gets entry # in the gump relay.
		/// </summary>
		public static TextRelay GetEntry(int entryID, ToolbarEdit gump)
		{
			int temp = 0;
			TextRelay relay = null;

			for (int i = 0; i < gump._TextRelays.Count; i++)
			{
				if (gump._TextRelays[i].EntryID != entryID)
				{
					continue;
				}

				temp = i;
				relay = gump._TextRelays[i];
			}

			gump._TextRelays.RemoveAt(temp);

			return relay;
		}