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.