AceDB get defalut values?
Hello there! I'm newbie on Lua and Addon writing in general. Now i'm trying to create one simple addon based on Ace3, that handle players tracking spells and switches between them at a certain interval.
For now i'm stucked on one point that i can't access\iterate through the default options values using for-do loop. For example i have a DB with defaults: Lua Code:
How can i iterate through the Lua Code:
I found that this way doesn't work for me( Lua Code:
print method returns empty string... But if i refer directly to the Lua Code:
*i hope you understand what i was ment. sorry for my bad eng) |
You could iterate over your local Defaults variable?
|
Quote:
* is a special key in AceDB that defines the default value (by adding a metatable to trackingTypes), so all your not yet existing trackingTypes return its value (true in your case): https://www.wowace.com/projects/ace3...rial#title-3-1 |
All times are GMT -6. The time now is 11:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI