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 )
         {
             temp = i;
             relay = gump.TextRelays[i];
         }
     }
     gump.TextRelays.RemoveAt( temp );
     return relay;
 }