Skip to content

Commit

Permalink
add ko-fi and github buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
PrincessRTFM committed Feb 23, 2024
1 parent ba88104 commit 2d2cc6a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions PositionalGuide/ConfigWindow.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Diagnostics;
using System.Numerics;
using System.Runtime.InteropServices;

using Dalamud.Interface;
using Dalamud.Interface.Utility;
using Dalamud.Interface.Windowing;

Expand Down Expand Up @@ -39,7 +41,35 @@ public class ConfigWindow: Window, IDisposable {

public ConfigWindow(Plugin core) : base(core.Name, flags) {
this.RespectCloseHotkey = true;
this.TitleBarButtons = new() {
new() {
Priority = 0,
Icon = FontAwesomeIcon.Heart,
IconOffset = new(2, 1),
Click = _ => Process.Start(new ProcessStartInfo("https://ko-fi.com/V7V7IK9UU") { UseShellExecute = true }),
ShowTooltip = () => {
ImGui.BeginTooltip();
ImGui.TextUnformatted("Support me on ko-fi");
ImGui.EndTooltip();
},
},
new() {
Priority = 1,
Icon = FontAwesomeIcon.Code,
IconOffset = new(1, 1),
Click = _ => Process.Start(new ProcessStartInfo("https://github.com/PrincessRTFM/PositionalAssistant") { UseShellExecute = true }),
ShowTooltip = () => {
ImGui.BeginTooltip();
ImGui.TextUnformatted("Browse the github repo");
ImGui.EndTooltip();
},
}
};
this.AllowClickthrough = true;
this.AllowPinning = true;

this.conf = core.Config;

this.stepPtr = Marshal.AllocHGlobal(ptrMemWidth);
this.minBoundingPtr = Marshal.AllocHGlobal(ptrMemWidth);
this.maxBoundingPtr = Marshal.AllocHGlobal(ptrMemWidth);
Expand Down
2 changes: 1 addition & 1 deletion PositionalGuide/PositionalGuide.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Product>PositionalGuide</Product>
<Version>4.3.1</Version>
<Version>4.4.0</Version>
<Description>Provides drawn guidelines to see where you need to stand to hit enemies with positionals</Description>
<Copyright>Copyleft VariableVixen 2022</Copyright>
<PackageProjectUrl>https://github.com/PrincessRTFM/PositionalAssistant</PackageProjectUrl>
Expand Down

0 comments on commit 2d2cc6a

Please sign in to comment.