Skip to content

Commit

Permalink
feat: add dummy buttons to notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Mar 21, 2024
1 parent e18ea88 commit 2776ead
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Ui/NotificationProgressManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Dalamud.Interface.Internal.Notifications;
using Dalamud.Plugin.Services;
using Heliosphere.Util;
using ImGuiNET;

namespace Heliosphere.Ui;

Expand Down Expand Up @@ -157,6 +158,23 @@ private State UpdateNotif(IActiveNotification notif, DownloadTask task) {
_ => NotificationType.Info,
};

if (state == State.Finished) {
notif.DrawActions += _ => {
ImGui.PushID($"notif-download-{task.TaskId}");
using var popId = new OnDispose(ImGui.PopID);
if (ImGui.Button("Open in Penumbra")) {
}
ImGui.SameLine();
if (ImGui.Button("Open in Heliosphere")) {
}
};
}

return state;
}
}

0 comments on commit 2776ead

Please sign in to comment.