View Single Post
08-29-11, 01:18 AM   #15
dreamcatcher
A Black Drake
 
dreamcatcher's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2010
Posts: 82
Originally Posted by Xrystal View Post
If your game installation is in the program files folder then try running with administrator rights.

I apologise if this has already been suggested and tried without success.
Don't know what the problem was but after I changed the name from MyAddon to DreamTweaks it now saves the profile changes. I was just using MyAddon name for it as a test name so I would not have it mess up my working addon. Since I had both installed. lol o well I will just have to transfer them in and out of the addons file or make a new name for the one I'm working on. I'm rambling on a bought stuff that don't matter.

So any way, question. I still cant get the option for hide/show micro names to work.

Config.lua
Code:
	HideMacronames = {
		name = "HideMacronames",
		type = "toggle",
		order = 2,
		set = function(info, val)
		db.MAB.HideMacronames = val
		DreamTweaks:UpdateStuff()
		end,
		get = function(info) return db.MAB.HideMacronames end,
	},
Core.lua
Code:
function Style(self)  
	local name = self:GetName()
	local action = self.action
	local Button = self
	local Count = _G[name.."Count"]
	local HotKey = _G[name.."HotKey"]
	local Border  = _G[name.."Border"]
	local Btname = _G[name.."Name"]
	local Normal  = _G[name.."NormalTexture"]
	
	Button:SetNormalTexture[[Interface\AddOns\DreamTweaks\Media\button]]
	Border:Hide()
	
	if db.MAB.HideMacronames then
	Btname:Hide()
	else
	Btname:Show()
	end
end
  Reply With Quote