Originally Posted by Hoft
I have a problem with simple code ((
My menu allways show only default value!
setFunc works right and changes variable
ZO_SavedVars works right and load/saves variable
When I change variable by menu, key bind, slash command, or any other way and returns to menu… it allways show default value! Where is my mistake?
|
The problem is not directly with your code.
Addon is a global variable and "Addon_Settings" is not really a unique name. If you have to save
Addon.Vars to a local variable, you have a global variable conflict.
Somebody else is using Addon as a global variable. Make
Addon local.