1
0

fix: add patreon link

This commit is contained in:
Kacie 2023-01-30 21:52:20 +01:00
parent ed781c9da3
commit 953604eba6
3 changed files with 10 additions and 4 deletions

View File

@ -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);

View File

@ -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,6 +34,11 @@ 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);
}
}

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<Authors>KacieXX</Authors>
<Company>Karsian</Company>
<Version>1.8.0.2</Version>
<Version>1.8.0.3</Version>
<Description>A plugin to help you vibe your controller or toys</Description>
<Copyright>kacieXX 2023</Copyright>
<PackageProjectUrl>https://github.com/kaciexx/FFXIV_Vibe_Plugin</PackageProjectUrl>