mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
utilize IsModifierKeyDown
This commit is contained in:
@@ -146,7 +146,7 @@ pfUI:RegisterModule("questitem", function ()
|
||||
-- populates ItemRefTooltip, so we just read the item back out of the tooltip
|
||||
-- instead of re-parsing the "item:NNN" out of the link string.
|
||||
hooksecurefunc("SetItemRef", function()
|
||||
if IsAltKeyDown() or IsShiftKeyDown() or IsControlKeyDown() then return end
|
||||
if IsModifierKeyDown() then return end
|
||||
if ItemRefTooltip:HasItem() then
|
||||
local name, _, id = ItemRefTooltip:GetItem()
|
||||
if name and id then AddTooltip(ItemRefTooltip, name, id) end
|
||||
|
||||
@@ -41,7 +41,7 @@ pfUI:RegisterModule("sellvalue", function ()
|
||||
end)
|
||||
|
||||
hooksecurefunc("SetItemRef", function()
|
||||
if IsAltKeyDown() or IsShiftKeyDown() or IsControlKeyDown() then return end
|
||||
if IsModifierKeyDown() then return end
|
||||
if ItemRefTooltip:HasItem() then
|
||||
local _, _, id = ItemRefTooltip:GetItem()
|
||||
if id then AddVendorPrices(ItemRefTooltip, id, 1) end
|
||||
|
||||
Reference in New Issue
Block a user