Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions HandyNotes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -665,3 +665,27 @@ function HandyNotes:OnProfileChanged(event, database, newProfileKey)
self:UpdateMinimap()
self:UpdateWorldMap()
end

--[[ start section for the Blizzard AddOns Compartment ]]--
--[[ potential improvement: add option to disable displaying in the Compartment ]]--
local aboutText = "Handy Notes";
local mouseButtonNote = "\nThe Handy Note Displaying AddOn!";
AddonCompartmentFrame:RegisterAddon({
text = aboutText,
icon = "Interface/Icons/inv_misc_notescript1c.blp",
notCheckable = true,
func = function(button, menuInputData, menu)
-- local buttonName = menuInputData.buttonName; -- debugging check line
-- print("Hello from the addon compartment! You clicked " .. buttonName .. "!") -- debugging check line
LibStub("AceConfigDialog-3.0"):Open("HandyNotes")
end,
funcOnEnter = function(button)
MenuUtil.ShowTooltip(button, function(tooltip)
tooltip:SetText(aboutText .. mouseButtonNote)
end)
end,
funcOnLeave = function(button)
MenuUtil.HideTooltip(button)
end,
})
--[[ end section for the Blizzard AddOns Compartment ]]--