LLib/LImGui.cs

35 lines
876 B
C#
Raw Normal View History

2023-10-11 00:52:55 +00:00
using System.Diagnostics;
using System.Numerics;
using Dalamud.Interface;
using Dalamud.Plugin;
using ImGuiNET;
namespace LLib;
public static partial class LImGui
{
public static void AddPatreonIcon(DalamudPluginInterface pluginInterface)
{
if (AddHeaderIcon(pluginInterface, "##Patreon", FontAwesomeIcon.Heart, new HeaderIconOptions
{
2023-10-11 01:14:01 +00:00
Tooltip = "Go to patreon.com/lizac",
Color = 0xFF3030D0,
2023-10-11 00:52:55 +00:00
}))
{
try
{
Process.Start(new ProcessStartInfo
{
2023-10-11 01:14:01 +00:00
FileName = "https://www.patreon.com/lizac",
2023-10-11 00:52:55 +00:00
UseShellExecute = true,
Verb = string.Empty,
});
}
catch
{
// not sure what to do anyway
}
}
}
}