From 88c6508e17c70802f7c4738bd7a218ab0b63314d Mon Sep 17 00:00:00 2001 From: JPEscher Date: Sat, 10 Aug 2024 12:42:25 -0400 Subject: [PATCH] adding blizzard addon compartment code --- Config.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Config.lua b/Config.lua index f58faf5..9407028 100644 --- a/Config.lua +++ b/Config.lua @@ -181,3 +181,22 @@ function Mapster:SetupMapButton() self.optionsButton:SetScript("OnClick", optFunc) end + +local aboutText = "Mapster"; +local mouseButtonNote = "\nWoW Maps: Improved"; +AddonCompartmentFrame:RegisterAddon({ + text = aboutText, + icon = "Interface/Icons/icon_treasuremap.blp", + notCheckable = true, + func = function(button, menuInputData, menu) + Settings.OpenToCategory("Mapster") + end, + funcOnEnter = function(button) + MenuUtil.ShowTooltip(button, function(tooltip) + tooltip:SetText(aboutText .. mouseButtonNote) + end) + end, + funcOnLeave = function(button) + MenuUtil.HideTooltip(button) + end, +}) \ No newline at end of file