10/30/14, 10:41 PM | #1 |
A Save Variable Question
This maybe and easy question but I've been playing around with a new code I wrote for my QuestCounter. My counter when double clicked will show 1, 2, 3, and so on. So someone can count how many quest they've done. I also have the mouse wheel when moved to reset it back to 0 and a slash command to hide it if you want. Now I have it where if you reloadui or logout it will remember where the location of the addon is and put it back so you don't have to keep moving it around. My question comes in on this example. If I have clicked my QuestCounter and have it saying Completed: 7 when I reload the ui it will set back to QuestCounter which is the original text. What I want it to do is if I logout and it says Completed: 7 when I log back in it will still say Completed: 7 . Here is my code below.
txt Lua Code:
xml Lua Code:
lua Lua Code:
|
|
10/31/14, 03:23 AM | #2 |
|
I didn't see this post until now or I would have answered here, but earlier I saw your statement about this problem on your addon page & sent you a PM about how to fix it.
Hope it helps. |
10/31/14, 06:12 AM | #3 |
If you want to store counter, you have to use saved variables - i.e. move your counter to saved variables table.
Just to show something different, I have also moved your code from XML to LUA. Lua Code:
Last edited by Garkin : 10/31/14 at 06:46 AM. |
|
ESOUI » Developer Discussions » General Authoring Discussion » A Save Variable Question |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|