fix: quest bar display

This commit is contained in:
Salikh Gurgenidze
2025-12-22 02:56:50 +04:00
parent 657cf53507
commit 55b62d7cd5
3 changed files with 23 additions and 0 deletions
+15
View File
@@ -340,6 +340,21 @@ function QuestItemBar:UpdateCooldowns()
end
end
-- Global wrappers for keybindings
function Guda_UseQuestItem1()
local button = getglobal("Guda_QuestItemBarButton1")
if button and button:IsShown() and button.hasItem and button.bagID and button.slotID then
UseContainerItem(button.bagID, button.slotID)
end
end
function Guda_UseQuestItem2()
local button = getglobal("Guda_QuestItemBarButton2")
if button and button:IsShown() and button.hasItem and button.bagID and button.slotID then
UseContainerItem(button.bagID, button.slotID)
end
end
function QuestItemBar:Initialize()
local frame = CreateFrame("Frame", "Guda_QuestItemBar", UIParent)
frame:SetWidth(40)