Frame Factory
Hi all
I want to build a little frame factory; I am tired of building each fame template to see which frame I like for various addons; so I figure that I can use a factory to build and then screenshot the frames. I have a static number 1 frame and I want the following frames using the static frame as the origin. I want each frame to display its frame template name. Here is an image of my desired out come. Here is my code: Lua Code:
When I run it the static frame displays correctly yet nothing else displays and there are no errors. I am using ReHack to run the code in game. I have looked at button factories and have followed them without success. There is obviously an error in my code yet I can't see it, maybe I am too close to the code that I can not see the error that I am making. Any help would be greatly appreciated. |
To start with, templates a passed as strings. Your frameList is empty because you're really defined it as
Lua Code:
therefore Code:
for k, v in pairs(frameList) do I'm pretty sure you will get plenty of errors once the list contains something ;) |
Ah, I said it would be an obvious error.
I guarantee that I will have errors, many errors, but this is how I learn. :) |
Ok, got it going, yes there were so many bugs I pulled it apart and started again.
This time I got rid of the first static frame. Lua Code:
|
Oh that looks neat :)
|
All times are GMT -6. The time now is 04:58 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI