Originally Posted by Seerah
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)