Target subframe within main frame
Hello! So i am wondering how i can target the subframe that lies within a mainframe? I am making a group box sort of where the main window is just the window where the group members lies inside.
This is how it looks: https://gyazo.com/1bf04b61fb48f560429fadf1f944f10e How can i target the frame with the name "Lwarlock"? How my code is built Lua Code:
A general way how the code looks. That is the way i add the subframe to the main frame anyways. Sub frames are going to be added and removed left and right in this program so this is why i cant use a frame:SetScript("OnMouseDown") event. That is what i think atleast, i have this subframe creation code inside a function that will be called pretty often so! Any tips? Kind Regards |
Something to look at and play with. A function to uniformly create all sub-frames (buttons in this case) with the return value being stored in a table attached to the main frame. Not the only way.
Lua Code:
Frame names are global so you should try and make them unique, hence the addition of "wille480" to "DragFrame" |
Quote:
|
All times are GMT -6. The time now is 05:44 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI