View Single Post
08-29-11, 05:44 PM   #18
dreamcatcher
A Black Drake
 
dreamcatcher's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2010
Posts: 82
Originally Posted by Seerah View Post
Well, considering your above AceConfig options table code mostly originated in TipTop, with.
o hehe well I got most working good now but the micro names hide/show option.

The thing is it works fine if i do it manually in the default config but it dos nothing in the gui.

Config.lua
Code:
	HideMacronames = {
		name = "HideMacronames",
		type = "toggle",
		order = 2,
		set = function(info, val)
		db.HideMacronames = val
		DreamTweaks:UpdateStuff()
		end,
		get = function(info) return db.HideMacronames end,
	},
Core.lua
Code:
local defaults = {
	profile = {
		HideMacronames = true,


hooksecurefunc('ActionButton_Update', function(self)
        for _, icon in pairs({
            self:GetName(),
            'MultiCastRecallSpellButton',
            'MultiCastSummonSpellButton',
        }) do
        local macroname = _G[self:GetName()..'Name']
        if (db.HideMacronames) then
            macroname:SetAlpha(0)
        end
    end
end)


function DreamTweaks:UpdateStuff()
	hooksecurefunc("ActionButton_Update", Style)
  Reply With Quote