Skip to content

Enhancement Request: Please add support for Blizzard Addons Compartment #5

@JPEscher

Description

@JPEscher

same as https://legacy.curseforge.com/wow/addons/handynotes/issues/197

I was wondering if we could get a way to access options that doesn't clutter the minimap and i wont have to come searching for slash commands. figured this area of the blizz ui would work. more details: https://warcraft.wiki.gg/wiki/Addon_compartment

hope this helps. please ask if there's any clarity needed.

Unfortunately i haven't really worked with LUA.
(i have PowerShell, Perl, Python, Bash, Java, C, and LISP, experience.)
Maybe if i look and things i can propose changes that help?

An attempt with manual registration style from https://warcraft.wiki.gg/wiki/Addon_compartment
I did a test with it at the end of the "Interface/AddOns/HandyNotes/HandyNotes.lua" file and it appears to work. Hope This Helps!

AddonCompartmentFrame:RegisterAddon({
	text = "Handy Notes",
	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("Handy Notes")
		end)
	end,
	funcOnLeave = function(button)
		MenuUtil.HideTooltip(button)
	end,
})

will make a fork and PR to help.

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