Skip to content

Commit 133f8cb

Browse files
committed
AutoHook 3.0.4.1 [PUSH]
Check the new repo https://love.puni.sh/ment.json
1 parent 388eaff commit 133f8cb

File tree

3 files changed

+44
-14
lines changed

3 files changed

+44
-14
lines changed

AutoHook/AutoHook.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<Authors>Det</Authors>
5-
<Version>3.0.4.0</Version>
5+
<Version>3.0.4.1</Version>
66
<Description>Auto hooks for you</Description>
77
<PackageProjectUrl>https://github.com/InitialDet/AutoHook</PackageProjectUrl>
88
<Configurations>Release;Debug</Configurations>

AutoHook/AutoHook.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"Author": "Det",
3-
"Name": "Auto Hook",
4-
"Punchline": "Makes fishing less (or more) boring",
3+
"Name": "(old) Auto Hook",
4+
"Punchline": "New Repo: https://puni.sh/plugin/AutoHook",
55
"Description": "It hooks the fish for you, can you believe it?",
66
"InternalName": "AutoHook",
7-
"RepoUrl": "https://github.com/InitialDet/AutoHook",
7+
"RepoUrl": "https://puni.sh/plugin/AutoHook",
88
"ApplicableVersion": "any",
99
"Tags": [ "Gathering", "Fishing" ],
1010
"DalamudApiLevel": 9,

AutoHook/PluginUI.cs

+40-10
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void Dispose()
5151
private void DrawTransitionPopup()
5252
{
5353
var windowSize = new Vector2(1024 * ImGuiHelpers.GlobalScale,
54-
ImGui.GetTextLineHeightWithSpacing() * 1 + 2 * ImGui.GetFrameHeightWithSpacing());
54+
ImGui.GetTextLineHeightWithSpacing() * 4 + 2 * ImGui.GetFrameHeightWithSpacing());
5555

5656
ImGui.SetNextWindowSize(windowSize);
5757
ImGui.SetNextWindowPos((ImGui.GetIO().DisplaySize - windowSize) / 2);
@@ -61,21 +61,42 @@ private void DrawTransitionPopup()
6161

6262
if (!popup)
6363
return;
64-
65-
ImGui.TextWrapped($"Hello, thank you for updating AutoHook. This is a one-time message just to inform you that AutoHook has moved plugin repositories. This will be the last update on the current repository. You will have to transition to the new repository to recieve further updates.");
66-
64+
65+
string hello = "Hello, thank you for updating AutoHook.";
66+
// center the text
67+
ImGui.SetCursorPosX((ImGui.GetWindowSize().X - ImGui.CalcTextSize(hello).X) / 2);
68+
ImGui.TextColored(ImGuiColors.DalamudYellow, hello);
69+
70+
ImGui.TextWrapped($"This is a one-time message just to inform you that AutoHook has moved plugin repositories.\nThis will be the last update on the current repository.");
71+
72+
string warning = "You will have to transition to the new repository to recieve further updates.";
73+
74+
ImGui.GetIO().FontGlobalScale = 1.25f;
75+
ImGui.PushFont(ImGui.GetFont());
76+
ImGui.TextColored(ImGuiColors.HealerGreen, warning);
77+
78+
ImGui.GetIO().FontGlobalScale = 1f;
79+
ImGui.PopFont();
80+
6781
ImGui.SetCursorPosY(ImGui.GetWindowSize().Y - ImGui.GetFrameHeight() - ImGui.GetStyle().WindowPadding.Y);
68-
if (ImGui.Button("Ok, I understand", new(ImGui.GetContentRegionAvail().X / 2, default)))
82+
83+
ImGui.PushStyleColor(ImGuiCol.Button, 0xFFA06020);
84+
ImGui.PushStyleColor(ImGuiCol.ButtonActive, 0xDD000000 | 0x005E5BFF);
85+
ImGui.PushStyleColor(ImGuiCol.ButtonHovered, 0xAA000000 | 0x005E5BFF);
86+
87+
if (ImGui.Button("(New Repo) Give me more information! ", new(ImGui.GetContentRegionAvail().X / 2, default)))
6988
{
70-
Service.Configuration.TransitionPopupViewed = true;
71-
ImGui.CloseCurrentPopup();
89+
Util.OpenLink($"https://github.com/InitialDet/AutoHook");
7290
}
91+
92+
ImGui.PopStyleColor(3);
7393
ImGui.SameLine();
74-
if (ImGui.Button("Give me more information!", new(ImGui.GetContentRegionAvail().X, default)))
94+
95+
if (ImGui.Button("Ok, I understand", new(ImGui.GetContentRegionAvail().X, default)))
7596
{
76-
Util.OpenLink($"https://github.com/InitialDet/AutoHook");
97+
Service.Configuration.TransitionPopupViewed = true;
98+
ImGui.CloseCurrentPopup();
7799
}
78-
79100
}
80101
public override void Draw()
81102
{
@@ -185,6 +206,7 @@ private static unsafe void TestButtons()
185206
{
186207
if (ImGui.Button(@"Check"))
187208
{
209+
Service.Configuration.TransitionPopupViewed = false;
188210
}
189211
}
190212

@@ -361,6 +383,14 @@ public static class PluginChangeLog
361383
{
362384
public static readonly List<Version> Versions = new()
363385
{
386+
new Version("3.0.4.1")
387+
{
388+
MainChanges =
389+
{
390+
"AutoHook has moved to a new repository",
391+
"Please, install the new version from https://love.puni.sh/ment.json",
392+
}
393+
},
364394
new Version("3.0.4.0")
365395
{
366396
MainChanges =

0 commit comments

Comments
 (0)