コード例 #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));
 }