Fixing up an abandoned addon
Hi, I am trying to update an addon that was abandoned in 2011.
It was working till patch 8.0 though. I think there are 2 main problems. SetText doesn't seem to be sending over any text. Code:
autoMacroOptionsTitle:SetText(autoMacroStrings.Title); My debuff only shows channel Code:
function ChannelsMenu_Initialize() I would greatly appreciate any help. |
The reason why the code is erroring is that GetChannelList() now returns 3 values per channel rather than 2. Also changed to a recursive style, adding another if statement with a modulus comparison seemed ugly. And I don't think anything is wrong with the SetText code, it just never got executed because it happens after the error trying to initialize the dropdown menu. Just replace the original ChannelsMenu_Initialize with this one and you should be good to go.
Lua Code:
|
All times are GMT -6. The time now is 06:51 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI