예제 #1
0
 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 );
 }