Originally Posted by ChandlerJoseph
okay, thanks for the reply, for the integer loop, is it infinite or does it stop at the end of the table?
|
It stops at the end of the table:
Lua Code:
for i = 1, #MinimapButtons do
"#MinimapButtons" means the amount of values in MinimapButtons. So if you have 10 minimap buttons it would be:
But it seems more complicated to do what youre doing vs just grabbing the frame and executing the functions
|
Ofcourse it is more complexe but it also provides much more functionality. Thats your decision.
If you use that code only for yourself you dont need that. But if you are going to public an addon
for anyone your code would be quite useless if other players have minimap buttons that you dont have.