View Single Post
07-13-10, 12:46 PM   #26
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,961
Hmm, change the ';' in that first block of code to ','. It may be stopping it from setting the table properly but from the sounds of it maybe not.


Now for some true programming testing.

1. Delete the Saved Variables wtf file for that addon.
2. Log in and note what the settings are set to.
3. Change some of the values you want changing and note them.
4. Log Out and look at the Saved Variables file and note the values ( copy the file possibly - which I do sometimes )
5. Log In and note what the settings are set to.
------- At this point when you log in they should reflect what the wtf file is
------- storing. If not you are not using the values in the right place
6. Change some more values ( different ones ) and note them.
7. Log Out and look at the Saved Variables file and note the values ( copy again if you want so you can compare the files later )
8. You can then repeat steps 5 to 7 with different settings. If you have the code set up right you should see the changes happening on log and the settings stored on log out.


From the sounds of it though the wtf file is being set but the true value is not being set on the check box. That could be due to this line:
K1OB_FixMe:SetChecked();
Try changing that to
K1OB_FixMe:SetChecked(true);
And see if that resolves your problem. A nil value is generally counted as false so possibly could be ignoring your setting.
__________________


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