Getting a frame through global
I have been away from WoW for 2 years, just started playing again and wanted to update an old addon I had made. However, I am running into a problem. I need to get each of the party frames, but the method I've used before is not working.
If I manually grab the frames: Code:
PartyFrame.MemberFrame1 Once I try to add it to a variable, it comes up nil. The way I've done this in the past was: Code:
local frame = _G["PartyFrame.MemberFrame1"] Code:
for i=1, 4 do Tried searching around on the internet but can't seem to find a change. |
The .MemberFrame means it is a key of the PartyFrame ie. PartyFrame["MemberFrame1"] or _G["PartyFrame"]["MemberFrame1"]
But the (retail) member frames are part of a pool these days so, Lua Code:
|
Thank you!
|
All times are GMT -6. The time now is 08:40 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI