Originally Posted by Xrystal
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...