Skip to content

Commit

Permalink
Create a widget blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Sep 6, 2018
1 parent 325fb23 commit 9d5e64e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Transcriptor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,11 @@ local sh = {}
We don't care about other widgets, for now
]]
do
local blackList = {
[1309] = true,
[1313] = true,
[1319] = true,
}
local GetIconAndTextWidgetVisualizationInfo = C_UIWidgetManager and C_UIWidgetManager.GetIconAndTextWidgetVisualizationInfo
function sh.UPDATE_UI_WIDGET(tbl)
if tbl.widgetSetID == 1 and tbl.widgetType == 0 then
Expand All @@ -565,7 +570,7 @@ do
end
end
return txt
else
elseif not blackList[tbl.widgetID] then
local txt
for k, v in next, tbl do
if not txt then
Expand Down

0 comments on commit 9d5e64e

Please sign in to comment.