Position frames inside gridPanel
Hello, so i am trying to make a function that will create a frame and position it inside my grid panel. I have the code to create one frame and position it how i want, but i can't find a way to create a function that will create a frame and position it into the gridpanel below another frame that would have previous been created.
This is how it currently looks: https://gyazo.com/205ec8741ee64a55ace2fff7a6c21653 I am pleased how it looks so far but now i need to find a way for a function like this that will position frames below eachother but still being inside the orange panel. My current code: Lua Code:
How would i go about this? |
One fairly basic approach depending on knowing the total number of buttons ahead of time and the gridFrame size being absolute.
Lua Code:
|
Quote:
Ah okay! I do not know the amount of frames created ahead of time sadly. I posted a question about this before but all my work got deleted and i have to start all over.. I did this for now and seems to be working Lua Code:
|
All times are GMT -6. The time now is 05:45 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI