Access frame by name
Hello.
I'm using the template UIPanelDialogTemplate and I want to override the "OnClick" event of the close button, however I don't know how to access it because it doesn't have a parent key. Can I do it using its name? How? Thanks. |
local frame = _G["FrameName"]
|
You said you were using it, right? The close button has a name, it's $parentClose, so it would be whatever you named your frame with Close at the end.
Lua Code:
|
Thank you both.
Now I know how to access a frame by name, however I will try the second option, which seems the proper one in this case. |
All times are GMT -6. The time now is 05:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI