예제 #1
0
파일: AoItem.cs 프로젝트: deathlef/VhaBot
 public string ToLink()
 {
     return(HTML.CreateItem(this.Name, this.LowID, this.HighID, this.QL));
 }
예제 #2
0
 public void AppendItemStart(int lowID, int highID, int QL, bool disableStyle)
 {
     this._builder.Append(HTML.CreateItemStart(lowID, highID, QL, disableStyle, this._innerQuotes));
 }
예제 #3
0
파일: HTML.cs 프로젝트: deathlef/VhaBot
 public static string CreateUnderlineString(string text)
 {
     return(HTML.CreateUnderlineStart() + text + HTML.CreateUnderlineEnd());
 }
예제 #4
0
 /// <summary>
 /// Appends text and escapes it
 /// </summary>
 /// <param name="text">Text to append</param>
 public void AppendString(string text)
 {
     this._builder.Append(HTML.EscapeString(text));
 }
예제 #5
0
 public void AppendItem(string name, int lowID, int highID, int QL, bool disableStyle)
 {
     this._builder.Append(HTML.CreateItem(name, lowID, highID, QL, disableStyle, this._innerQuotes));
 }
예제 #6
0
 /// <summary>
 /// Appends the end of an Alignment
 /// </summary>
 public void AppendAlignEnd()
 {
     this._builder.Append(HTML.CreateAlignEnd());
 }
예제 #7
0
 public string ToString(string title, bool disableStyle)
 {
     return(HTML.CreateWindow(title, this.Text, disableStyle, this._outerQuotes));
 }
예제 #8
0
 /// <summary>
 /// Appends an image
 /// </summary>
 /// <param name="imageID">The ID of the image</param>
 public void AppendImage(string imageID)
 {
     this._builder.Append(HTML.CreateImage(imageID));
 }
예제 #9
0
 /// <summary>
 /// Appends the start of an Alignment
 /// </summary>
 /// <param name="alignment">The direction the text should be align. Left, Center or Right</param>
 public void AppendAlignStart(string alignment)
 {
     this._builder.Append(HTML.CreateAlignStart(alignment));
 }
예제 #10
0
 /// <summary>
 /// Appends a colored string and closes the color tag after
 /// </summary>
 /// <param name="colorHex">Color HEX value</param>
 /// <param name="text">Text to append</param>
 public void AppendColorString(string colorHex, string text)
 {
     this._builder.Append(HTML.CreateColorString(colorHex, text));
 }
예제 #11
0
 /// <summary>
 /// Appends an item icon
 /// </summary>
 /// <param name="icondID">The icon ID of the item</param>
 public void AppendIcon(Int32 icondID)
 {
     this._builder.Append(HTML.CreateIcon(icondID));
 }
예제 #12
0
 /// <summary>
 /// Appends a color closing tag
 /// </summary>
 public void AppendColorEnd()
 {
     this._builder.Append(HTML.CreateColorEnd());
 }
예제 #13
0
 /// <summary>
 /// Appends a color opening tag
 /// </summary>
 /// <param name="colorHex">Color HEX value</param>
 public void AppendColorStart(string colorHex)
 {
     this._builder.Append(HTML.CreateColorStart(colorHex));
 }
예제 #14
0
 /// <summary>
 /// Closes a link started with "AppendItemStart()" or "AppendCommandStart()"
 /// </summary>
 public void AppendLinkEnd()
 {
     this._builder.Append(HTML.CreateLinkEnd());
 }
예제 #15
0
 public void AppendCommandStart(string command, bool disableStyle)
 {
     this._builder.Append(HTML.CreateCommandStart(command, disableStyle, this._innerQuotes));
 }
예제 #16
0
 public void AppendRawCommand(string name, string command, bool disableStyle)
 {
     this._builder.Append(HTML.CreateCommand(name, command, disableStyle, this._innerQuotes, true));
 }