![]() |
Portrait dropdown help
Hi,
Something changed in 3.0.8 which is causing an error in my addon. I can't fix it because I can't find what has changed. I'm getting the following error: Code:
attempt to index local 'dropdownFrame' (a nil value) Code:
local dropdownFrame = getglobal(UIDROPDOWNMENU_INIT_MENU); Thanks in advance Felankor |
UIDROPDOWNMENU_INIT_MENU points to the actual frame instead of the frame's name, now. Try this:
Code:
local dropdownFrame = UIDROPDOWNMENU_INIT_MENU; |
this wont work Tuhl this is
Code:
local dropdownFrame = getglobal(UIDROPDOWNMENU_INIT_MENU); Code:
local name = _G["UIDROPDOWNMENU_INIT_MENU"]:GetName() |
Thanks for the replies.
Code:
local name = dropdownFrame:GetName() Code:
local name = dropdownFrame.name; However your post still solved my problem so thank you. I got it to work with the following code: Code:
local dropdownFrame = _G["UIDROPDOWNMENU_INIT_MENU"]; Thanks again, Felankor |
Code:
local dropdownFrame = _G["UIDROPDOWNMENU_INIT_MENU"]; Code:
local dropdownFrame = UIDROPDOWNMENU_INIT_MENU; |
getglobal doesn't work anymore because of changes Blizzard made with their coding. caused an error with a lot of addons.
|
Okay, believe whatever you want. Obviously I'm not going to be able to convince you of this, even though it's extremely simple for an addon author to check these things for themselves.
|
All times are GMT -6. The time now is 03:07 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI