View Single Post
06-01-10, 12:46 PM   #9
alimjocox
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 96
Originally Posted by Xrystal View Post
Are you telling it to use the new value when it gets changed by the UI ? If not that would be your problem. Just setting the variable won't make it update.
Okay i've written this up to replicate whats going on... just imagine @ at a much larger scale :P

Code:
alUI_DB = {}

alUI_DB.example = true
if ( alUI_DB.example ) then
	print("Yay");
else
        print("Off")
end


local f = CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(_, _, name)
	if name ~= "alUI" then return end
	if not (alUI_DB) then
		alUI_DB = { }
	f:UnregisterEvent("ADDON_LOADED")
	f:SetScript("OnEvent", nil)
	end
end)
So you said, make it tak on the SavedVariable.. how do i do that? lol
The box stays unticked. so for some reason the box is taking the savedvariable boolean. but...

Last edited by alimjocox : 06-01-10 at 12:48 PM.
  Reply With Quote