From 40dd9dd6db1cb8d15d565ec5bdaf39e70175e611 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sun, 27 Sep 2026 00:13:27 -0500 Subject: [PATCH] equipmentmanager: drag a set onto the action bars via PickupEquipmentSet --- modules/equipmentmanager.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/equipmentmanager.lua b/modules/equipmentmanager.lua index 45615732..4197831d 100644 --- a/modules/equipmentmanager.lua +++ b/modules/equipmentmanager.lua @@ -301,6 +301,16 @@ pfUI:RegisterModule("equipmentmanager", function() pfUI.equipmentmanager.Refresh() end) + -- Drag a set onto an action bar. PickupEquipmentSet is newer than + -- the rest of C_EquipmentSet, so dragging stays inert on ClassicAPI + -- builds that don't ship it yet. + if C_EquipmentSet.PickupEquipmentSet then + row:RegisterForDrag("LeftButton") + row:SetScript("OnDragStart", function() + if row.setID then C_EquipmentSet.PickupEquipmentSet(row.setID) end + end) + end + -- Show the gear and tooltip while the cursor is over the row or its -- gear child. The gear sits inside the row's rectangle, so a single -- MouseIsOver(row) check covers both. OnLeave on the row and the gear