You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
711 B

--[[-----------------------------------------------------------------------------
Icon Widget that allows for a tooltip, by preventing SetLabel from actually
setting a label
Graphical Button.
-------------------------------------------------------------------------------]]
3 years ago
if not WeakAuras.IsLibsOK() then return end
3 years ago
local Type, Version = "WeakAurasIcon", 2
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
local function Constructor()
local button = AceGUI:Create("Icon")
button.type = Type
button.SetLabel = function() end
return button
end
AceGUI:RegisterWidgetType(Type, Constructor, Version)