Thread Tools Display Modes
07-16-06, 01:41 AM   #1
Wadsworth
A Murloc Raider
 
Wadsworth's Avatar
Join Date: Jul 2006
Posts: 4
list saved variables?

currently my addon saves data in this format:
Code:
CritLockData = {
	["Data"] = {
		["Searing Pain"] = {
			["Norm"] = {
				["Level"] = 41,
				["Damage"] = "165",
				["Unit"] = "Starving Blisterpaw",
			},
		},
		["Death Coil"] = {
			["Norm"] = {
				["Level"] = 42,
				["Unit"] = "Glasshide Basilisk",
				["Damage"] = "349",
			},
		},
	},
}
what i need to do is list all of the attack names currently saved as headings under "Data" in a combobox. unfortunatly, i have no idea how to do this and can seem to find an idea anywhere.

is there a way i can get how many headings are under "Data" and then add them to a combobox? the headings arent pre-determined so i dont know how many headings there will be or what they will be called.

any info would be greatly appriciated. thanks in advance.
  Reply With Quote
07-18-06, 11:32 AM   #2
Nyrine
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 23
Well, to fnd the sections :

for k,v in pairs(CritLockData["Data"]) do
print (k)
end
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » list saved variables?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off