Hi all,
Was having a great time and learning how things work playing around with my addon(as you do).
Once I had my addon doing what I wanted. I figured I would add save/load functionality for the background and controls so if someone moved it I could put it back on next load along with 2 other variables and call it complete. Then it all went bad.
I have tried to merge
http://wiki.esoui.com/MyFirstAddon_tutorial with the SavedVariablesDemo on this website
http://www.esoui.com/downloads/info1...ablesDemo.html
As don't know it all, I eventually ended up stripping SavedVariablesDemo down and adding bits from MyFirstAddon until it broke. This is where I need the help (and perhaps an explaination)
The controls section of the SavedVariables.xml file appears to be the problem. Can someone explain why when I add back in the code below it will not save, but if I take it out saving works fine?
<Controls>
<Backdrop name="$(parent)BG" inherits="ZO_ThinBackdrop" />
<Label name="$(parent)Counter" font="ZoFontWindowTitle" color="CFDCBD" wrapMode="ELLIPSIS" verticalAlignment="CENTER" text="Updating: ">
<AnchorFill />
</Label>
</Controls>
I read the section on
http://wiki.esoui.com/AddOn_Quick_Questions about adding savedVariables, but the terminology is not clear for me e.g. In your initialize:
EVENT_MANAGER:RegisterForEvent("MyAddOn", EVENT_ADD_ON_LOADED, OnAddOnLoaded)
does someone have a full copy of Myfirstaddon with saving variables that works, they are willing to email or post?
Thanks In Advance,
Garb_Paratus.