This commit is contained in:
Salikh Gurgenidze
2025-11-23 14:07:24 +04:00
parent 5e38a76dfa
commit b8f46eca33
+19 -19
View File
@@ -661,27 +661,27 @@ function Guda_ItemButton_SetItem(self, bagID, slotID, itemData, isBank, otherCha
end end
end end
-- Check for quest items and show golden border + icon (higher priority than quality border) if not self.otherChar and not self.isReadOnly then
-- Only check for current character's items (not other characters or bank in read-only mode) local isQuest, isQuestStarter = IsQuestItem(bagID, slotID)
local isQuest, isQuestStarter = IsQuestItem(bagID, slotID) -- Update quest icon with the appropriate texture
Guda_ItemButton_UpdateQuestIcon(self, isQuest, isQuestStarter)
if self.questBorder then
if isQuest then
self.questBorder:Show()
else
self.questBorder:Hide()
end
end
if self.questBorder then if self.questIcon then
if isQuest then if isQuest then
self.questBorder:Show() self.questIcon:Show()
else else
self.questBorder:Hide() self.questIcon:Hide()
end end
end end
end
if self.questIcon then
if isQuest then
self.questIcon:Show()
else
self.questIcon:Hide()
end
end
-- Update quest icon with the appropriate texture
Guda_ItemButton_UpdateQuestIcon(self, isQuest, isQuestStarter)
self:Show() self:Show()
else else
self.hasItem = false self.hasItem = false