public static void AddHtmlText(Server.Gumps.Gump g, int x, int y, int width, int height, TextDefinition text, bool back, bool scroll, int numberColor, int stringColor)
 {
     if (text != null && text.Number > 0)
     {
         if (numberColor >= 0)
         {
             g.AddHtmlLocalized(x, y, width, height, text.Number, numberColor, back, scroll);
         }
         else
         {
             g.AddHtmlLocalized(x, y, width, height, text.Number, back, scroll);
         }
     }
     else if (text != null && text.String != null)
     {
         if (stringColor >= 0)
         {
             g.AddHtml(x, y, width, height, String.Format("<BASEFONT COLOR=#{0:X6}>{1}</BASEFONT>", stringColor, text.String), back, scroll);
         }
         else
         {
             g.AddHtml(x, y, width, height, text.String, back, scroll);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Advances the enumerator to the next queue of the enumeration, if one is currently available.
 /// </summary>
 /// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
 public bool MoveNext()
 {
     if ((_index
          < (_collection.Count - 1)))
     {
         _index          = (_index + 1);
         _currentElement = this._collection[_index];
         return(true);
     }
     _index = _collection.Count;
     return(false);
 }
 public static void AddHtmlText(Server.Gumps.Gump g, int x, int y, int width, int height, TextDefinition text, bool back, bool scroll)
 {
     AddHtmlText(g, x, y, width, height, text, back, scroll, -1, -1);
 }
Exemple #4
0
 /// <summary>
 /// Retrieve the index a specified Server.Gumps.Gump instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Gumps.Gump instance to find.</param>
 /// <returns>The zero-based index of the specified Server.Gumps.Gump instance. If the object is not found, the return value is -1.</returns>
 public int IndexOf(Server.Gumps.Gump value)
 {
     return(this.List.IndexOf(value));
 }
Exemple #5
0
 /// <summary>
 /// Determines whether a specified Server.Gumps.Gump instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Gumps.Gump instance to search for.</param>
 /// <returns>True if the Server.Gumps.Gump instance is in the collection; otherwise false.</returns>
 public bool Contains(Server.Gumps.Gump value)
 {
     return(this.List.Contains(value));
 }
Exemple #6
0
 /// <summary>
 /// Append a Server.Gumps.Gump entry to this collection.
 /// </summary>
 /// <param name="value">Server.Gumps.Gump instance.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(Server.Gumps.Gump value)
 {
     return(this.List.Add(value));
 }
Exemple #7
0
 /// <summary>
 /// Reset the cursor, so it points to the beginning of the enumerator.
 /// </summary>
 public void Reset()
 {
     _index          = -1;
     _currentElement = null;
 }
Exemple #8
0
 /// <summary>
 /// Insert a Server.Gumps.Gump instance into this collection at a specified index.
 /// </summary>
 /// <param name="index">Zero-based index.</param>
 /// <param name="value">The Server.Gumps.Gump instance to insert.</param>
 public void Insert(int index, Server.Gumps.Gump value)
 {
     this.List.Insert(index, value);
 }
Exemple #9
0
 /// <summary>
 /// Removes a specified Server.Gumps.Gump instance from this collection.
 /// </summary>
 /// <param name="value">The Server.Gumps.Gump instance to remove.</param>
 public void Remove(Server.Gumps.Gump value)
 {
     this.List.Remove(value);
 }
 /// <summary>
 /// Advances the enumerator to the next queue of the enumeration, if one is currently available.
 /// </summary>
 /// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
 public bool MoveNext()
 {
     if ((_index
                 < (_collection.Count - 1)))
     {
         _index = (_index + 1);
         _currentElement = this._collection[_index];
         return true;
     }
     _index = _collection.Count;
     return false;
 }
 /// <summary>
 /// Reset the cursor, so it points to the beginning of the enumerator.
 /// </summary>
 public void Reset()
 {
     _index = -1;
     _currentElement = null;
 }