Skip to content

Commit

Permalink
interface: add learn more button to ReShade addon notification
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Jul 23, 2024
1 parent 7e709d9 commit 69f4906
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Dalamud/Interface/Internal/InterfaceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using Dalamud.Hooking.WndProcHook;
using Dalamud.Interface.ImGuiNotification;
using Dalamud.Interface.ImGuiNotification.Internal;
using Dalamud.Interface.Internal.DesignSystem;
using Dalamud.Interface.Internal.ManagedAsserts;
using Dalamud.Interface.Internal.ReShadeHandling;
using Dalamud.Interface.ManagedFontAtlas;
Expand Down Expand Up @@ -790,7 +791,18 @@ private unsafe void ContinueConstruction(
Type = NotificationType.Warning,
InitialDuration = TimeSpan.MaxValue,
ShowIndeterminateIfNoExpiry = false,
}));
})).ContinueWith(
t =>
{
t.Result.DrawActions += _ =>
{
ImGuiHelpers.ScaledDummy(2);
if (DalamudComponents.PrimaryButton(Loc.Localize("LearnMore", "Learn more...")))
{
Util.OpenLink("https://dalamud.dev/news/2024/07/23/reshade/");
}
};
});
}

Log.Verbose("===== S W A P C H A I N =====");
Expand Down

0 comments on commit 69f4906

Please sign in to comment.