Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add a support button.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 2, 2023
1 parent 59bfcaa commit e174708
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions RotationSolver/Windows/RotationConfigWindow_Help.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Dalamud.Utility;
using ImGuiNET;
using Lumina.Data.Parsing;
using RotationSolver.Commands;
using RotationSolver.Localization;
using System.Numerics;
Expand All @@ -10,10 +11,6 @@ internal partial class RotationConfigWindow
{
private void DrawHelpTab()
{
ImGui.TextWrapped(LocalizationManager.RightLang.ConfigWindow_HelpItem_Description);

ImGui.SameLine();

if (ImGui.Button("Github"))
{
Util.OpenLink("https://github.com/ArchiDog1998/RotationSolver");
Expand All @@ -40,6 +37,18 @@ private void DrawHelpTab()
Util.OpenLink("https://github.com/ArchiDog1998/RotationSolver/blob/release/CHANGELOG.md");
}

ImGui.SameLine();
ImGui.PushStyleColor(ImGuiCol.Button, 0xFF5E5BFF);
ImGui.PushStyleColor(ImGuiCol.ButtonActive, 0xDD5E5BFF);
ImGui.PushStyleColor(ImGuiCol.ButtonHovered, 0xAA5E5BFF);
if (ImGui.Button("Support on Ko-fi"))
{
Util.OpenLink("https://ko-fi.com/rotationsolver");
}
ImGui.PopStyleColor(3);

ImGui.TextWrapped(LocalizationManager.RightLang.ConfigWindow_HelpItem_Description);

if (ImGui.BeginChild("Help Infomation", new Vector2(0f, -1f), true))
{
ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, new Vector2(0f, 5f));
Expand Down

0 comments on commit e174708

Please sign in to comment.