mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 11:59:21 +01:00
feat: basic context menu port
This commit is contained in:
parent
a4d8b9c45b
commit
49d1bb7ee8
20 changed files with 1581 additions and 3 deletions
28
Dalamud/Game/Text/SeIconCharExtensions.cs
Normal file
28
Dalamud/Game/Text/SeIconCharExtensions.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
namespace Dalamud.Game.Text
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="SeIconChar"/>
|
||||
/// </summary>
|
||||
public static class SeIconCharExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Convert the SeIconChar to a <see cref="char"/> type.
|
||||
/// </summary>
|
||||
/// <param name="icon">The icon to convert.</param>
|
||||
/// <returns>The converted icon.</returns>
|
||||
public static char ToIconChar(this SeIconChar icon)
|
||||
{
|
||||
return (char)icon;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Conver the SeIconChar to a <see cref="string"/> type.
|
||||
/// </summary>
|
||||
/// <param name="icon">The icon to convert.</param>
|
||||
/// <returns>The converted icon.</returns>
|
||||
public static string ToIconString(this SeIconChar icon)
|
||||
{
|
||||
return string.Empty + (char)icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue