View Single Post
08-29-11, 02:46 AM   #16
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,930
Ah yes, each addon needs a unique name. If you want to use a TestAddon temporary folder for one you are working on then you would have to make sure that the old wtf file for that last addon you used it with has been deleted so as to not confuse things. I usually just create a new folder with a new name and rename it later if I needed to.

As to it not seeming to work do a test printout of the values. If the values are stored as "1" and "0" for one reason or another the test of if x then .. will not work if I remember rightly. try doing the following before the if statements.

print(db.MAB.HideMacronames,type(db.MAB.HideMacronames))
if db.MAB.HideMacronames then
print("Hiding")
Btname:Hide()
else
print("Showing")
Btname:Show()
end
Hopefully that little test will highlight the problem for you.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote