From 953604eba6c290db43756b8831449879b3835309 Mon Sep 17 00:00:00 2001 From: Kacie <90719658+kaciexx@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:52:20 +0100 Subject: [PATCH] fix: add patreon link --- FFXIV_Vibe_Plugin/App/UI/PluginUI.cs | 5 +++-- FFXIV_Vibe_Plugin/App/UI/UIBanner.cs | 7 ++++++- FFXIV_Vibe_Plugin/FFXIV_Vibe_Plugin.csproj | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/FFXIV_Vibe_Plugin/App/UI/PluginUI.cs b/FFXIV_Vibe_Plugin/App/UI/PluginUI.cs index b1092a6..3c092a3 100644 --- a/FFXIV_Vibe_Plugin/App/UI/PluginUI.cs +++ b/FFXIV_Vibe_Plugin/App/UI/PluginUI.cs @@ -44,7 +44,8 @@ namespace FFXIV_Vibe_Plugin { // Patterns private readonly Patterns Patterns = new(); - private readonly string DonationLink = "http://paypal.me/kaciedev"; + private readonly string DonationLink = "https://paypal.me/kaciedev"; + private readonly string PatreonLink = "https://www.patreon.com/kaciexx"; private bool _expandedOnce = false; private readonly int WIDTH = 700; @@ -162,7 +163,7 @@ namespace FFXIV_Vibe_Plugin { ImGui.Spacing(); - FFXIV_Vibe_Plugin.UI.UIBanner.Draw(this.frameCounter, this.Logger, this.loadedImages["icon.png"], this.DonationLink, this.DevicesController); + FFXIV_Vibe_Plugin.UI.UIBanner.Draw(this.frameCounter, this.Logger, this.loadedImages["icon.png"], this.DonationLink, this.PatreonLink, this.DevicesController); // Back to on column ImGui.Columns(1); diff --git a/FFXIV_Vibe_Plugin/App/UI/UIBanner.cs b/FFXIV_Vibe_Plugin/App/UI/UIBanner.cs index 3a66ae4..f0fd5ad 100644 --- a/FFXIV_Vibe_Plugin/App/UI/UIBanner.cs +++ b/FFXIV_Vibe_Plugin/App/UI/UIBanner.cs @@ -11,7 +11,7 @@ using FFXIV_Vibe_Plugin.Device; namespace FFXIV_Vibe_Plugin.UI { internal class UIBanner { - public static void Draw(int frameCounter, Logger logger, ImGuiScene.TextureWrap image, String donationLink, DevicesController devicesController) { + public static void Draw(int frameCounter, Logger logger, ImGuiScene.TextureWrap image, String donationLink, String patreonLink, DevicesController devicesController) { ImGui.Columns(2, "###main_header", false); float logoScale = 0.2f; ImGui.SetColumnWidth(0, (int)(image.Width * logoScale + 20)); @@ -34,7 +34,12 @@ namespace FFXIV_Vibe_Plugin.UI { ImGui.Text($"{donationLink}"); ImGui.SameLine(); UI.Components.ButtonLink.Draw("Thanks for the donation ;)", donationLink, Dalamud.Interface.FontAwesomeIcon.Pray, logger); + ImGui.SameLine(); + ImGui.Text($"{patreonLink}"); + ImGui.SameLine(); + UI.Components.ButtonLink.Draw("Thanks for the donation ;)", patreonLink, Dalamud.Interface.FontAwesomeIcon.HollyBerry, logger); + } } } diff --git a/FFXIV_Vibe_Plugin/FFXIV_Vibe_Plugin.csproj b/FFXIV_Vibe_Plugin/FFXIV_Vibe_Plugin.csproj index d12291d..1b402d7 100644 --- a/FFXIV_Vibe_Plugin/FFXIV_Vibe_Plugin.csproj +++ b/FFXIV_Vibe_Plugin/FFXIV_Vibe_Plugin.csproj @@ -3,7 +3,7 @@ KacieXX Karsian - 1.8.0.2 + 1.8.0.3 A plugin to help you vibe your controller or toys kacieXX 2023 https://github.com/kaciexx/FFXIV_Vibe_Plugin