From b46afa6357ce1862d057fcae2586265c0ebdf876 Mon Sep 17 00:00:00 2001 From: Raymond Date: Mon, 9 Aug 2021 11:20:46 -0400 Subject: [PATCH] Break out FontAwesome Extensions --- Dalamud/Interface/FontAwesomeExtensions.cs | 30 ++++++++++++++++++++++ Dalamud/Interface/FontAwesomeIcon.cs | 26 ------------------- 2 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 Dalamud/Interface/FontAwesomeExtensions.cs diff --git a/Dalamud/Interface/FontAwesomeExtensions.cs b/Dalamud/Interface/FontAwesomeExtensions.cs new file mode 100644 index 000000000..734ec128d --- /dev/null +++ b/Dalamud/Interface/FontAwesomeExtensions.cs @@ -0,0 +1,30 @@ +// Font-Awesome - Version 5.0.9 + +namespace Dalamud.Interface +{ + /// + /// Extension methods for . + /// + public static class FontAwesomeExtensions + { + /// + /// Convert the FontAwesomeIcon to a type. + /// + /// The icon to convert. + /// The converted icon. + public static char ToIconChar(this FontAwesomeIcon icon) + { + return (char)icon; + } + + /// + /// Conver the FontAwesomeIcon to a type. + /// + /// The icon to convert. + /// The converted icon. + public static string ToIconString(this FontAwesomeIcon icon) + { + return string.Empty + (char)icon; + } + } +} diff --git a/Dalamud/Interface/FontAwesomeIcon.cs b/Dalamud/Interface/FontAwesomeIcon.cs index a8b93e9e7..c2267766c 100644 --- a/Dalamud/Interface/FontAwesomeIcon.cs +++ b/Dalamud/Interface/FontAwesomeIcon.cs @@ -7047,30 +7047,4 @@ namespace Dalamud.Interface /// Zhihu = 0xF63F, } - - /// - /// Extension methods for . - /// - public static class FontAwesomeExtensions - { - /// - /// Convert the FontAwesomeIcon to a type. - /// - /// The icon to convert. - /// The converted icon. - public static char ToIconChar(this FontAwesomeIcon icon) - { - return (char)icon; - } - - /// - /// Conver the FontAwesomeIcon to a type. - /// - /// The icon to convert. - /// The converted icon. - public static string ToIconString(this FontAwesomeIcon icon) - { - return string.Empty + (char)icon; - } - } }