Skip to content

Commit

Permalink
✨ Minimap icon now shows a tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
AssisrMatheus committed Sep 19, 2019
1 parent c6b3140 commit 8af867c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion minimapIcon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ function MinimapIcon:Init()
type = "data source",
text = addonName,
icon = "Interface\\Icons\\INV_Misc_Note_03",
OnClick = function (self, button) core.TodoChecklisterFrame:Toggle() end
OnClick = function (self, button) core.TodoChecklisterFrame:Toggle() end,
OnTooltipShow = function(GameTooltip)
GameTooltip:SetText(addonName, 1,1,1)
GameTooltip:AddLine("Click to toggle your list", NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b)
end
});

LibStub("LibDBIcon-1.0"):Register(addonName, minimapIconLDB, TodoChecklisterMapIcon)
Expand Down

0 comments on commit 8af867c

Please sign in to comment.