Skip to content

Enhancement Request: use the Blizzard AddOns Compartment (PR123 is a set of suggestions to look at as it might be usable as a base) #91

@JPEscher

Description

@JPEscher

As per: https://warcraft.wiki.gg/wiki/Addon_compartment
a new feature with DF was the addons compartment for easy access to add on configs without cluttering the minimap
would it be possible to use it?

i tried what they show for manual at the link in Interface/AddOns/Mapster/Config.lua
and this code seems to work. hope it helps!


local aboutText = "Mapster";
local mouseButtonNote = "\nYour Map, Improved";
AddonCompartmentFrame:RegisterAddon({
	text = aboutText,
	icon = "Interface/AddOns/Mapster",
	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,
})

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions