Skip to content

Commit

Permalink
Update LibDataBroker label with set name
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and Rottenbeer committed May 22, 2021
1 parent 33e7962 commit 5f8128b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ function ItemRack.UpdateCurrentSet()
ItemRackButton20Name:SetText(setname)
end
ItemRack.Broker.icon = texture
ItemRack.Broker.label = setname
end

--[[ Item info gathering ]]
Expand Down
5 changes: 4 additions & 1 deletion ItemRack/ItemRackEvents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -451,21 +451,24 @@ function ItemRack.ProcessBuffEvent()
end
end

local prevIcon
local prevIcon, prevText
function ItemRack.ReflectEventsRunning()
if ItemRackUser.EnableEvents=="ON" and next(ItemRackUser.Events.Enabled) then
-- if events enabled and an event is enabled, show gear icons on set and minimap button
if ItemRackUser.Buttons[20] then
ItemRackButton20Queue:Show()
end
prevIcon = ItemRack.Broker.icon
prevText = ItemRack.Broker.text
ItemRack.Broker.icon = [[Interface\AddOns\ItemRack\ItemRackGear]]
ItemRack.Broker.label = "..."
else
if ItemRackUser.Buttons[20] then
ItemRackButton20Queue:Hide()
end
if prevIcon then
ItemRack.Broker.icon = prevIcon
ItemRack.Broker.label = prevText
end
end
end

0 comments on commit 5f8128b

Please sign in to comment.