mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 12:44:16 +01:00
interface: add learn more button to ReShade addon notification
This commit is contained in:
parent
7e709d98cf
commit
69f490619f
1 changed files with 13 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ using Dalamud.Hooking.Internal;
|
||||||
using Dalamud.Hooking.WndProcHook;
|
using Dalamud.Hooking.WndProcHook;
|
||||||
using Dalamud.Interface.ImGuiNotification;
|
using Dalamud.Interface.ImGuiNotification;
|
||||||
using Dalamud.Interface.ImGuiNotification.Internal;
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
|
using Dalamud.Interface.Internal.DesignSystem;
|
||||||
using Dalamud.Interface.Internal.ManagedAsserts;
|
using Dalamud.Interface.Internal.ManagedAsserts;
|
||||||
using Dalamud.Interface.Internal.ReShadeHandling;
|
using Dalamud.Interface.Internal.ReShadeHandling;
|
||||||
using Dalamud.Interface.ManagedFontAtlas;
|
using Dalamud.Interface.ManagedFontAtlas;
|
||||||
|
|
@ -790,7 +791,18 @@ internal partial class InterfaceManager : IInternalDisposableService
|
||||||
Type = NotificationType.Warning,
|
Type = NotificationType.Warning,
|
||||||
InitialDuration = TimeSpan.MaxValue,
|
InitialDuration = TimeSpan.MaxValue,
|
||||||
ShowIndeterminateIfNoExpiry = false,
|
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 =====");
|
Log.Verbose("===== S W A P C H A I N =====");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue