mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
feat: add new fa attributes for metadata
This commit is contained in:
parent
a9721079f6
commit
d1a3129558
2 changed files with 40 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
|
||||
namespace Dalamud.Interface;
|
||||
|
||||
/// <summary>
|
||||
/// Set categories associated with a font awesome icon.
|
||||
/// </summary>
|
||||
public class FontAwesomeCategoriesAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FontAwesomeCategoriesAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="categories">categories for enum member.</param>
|
||||
public FontAwesomeCategoriesAttribute(string[] categories) => this.Categories = categories;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets categories.
|
||||
/// </summary>
|
||||
public string[] Categories { get; set; }
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
|
||||
namespace Dalamud.Interface;
|
||||
|
||||
/// <summary>
|
||||
/// Set search terms associated with a font awesome icon.
|
||||
/// </summary>
|
||||
public class FontAwesomeSearchTermsAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FontAwesomeSearchTermsAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="searchTerms">search terms for enum member.</param>
|
||||
public FontAwesomeSearchTermsAttribute(string[] searchTerms) => this.SearchTerms = searchTerms;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets search terms.
|
||||
/// </summary>
|
||||
public string[] SearchTerms { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue