Any number of addons have broken. One example is the very useful BugMeNot addon (which I'm trying to patch right now).
I've figured out workarounds for most of the "this:" uses in the BugMeNot.lua code, but not all of them. Any suggestions from others as to how they solved similar problems?
A message in another forum addressed this issue, but was damnably sketchy on how to solve the problem.
http://forums.worldofwarcraft.com/th...76430349&sid=1
They say "use self and pass it between functions." Yeah, right ... so someone tell me how to do that with BugMeNot.lua? Or Thottbot.lua? Or Dialect.lua? Because I cannot make "self" work ANYWHERE in any real world code.
Understand I was a pretty good programmer in my time, but never made the mental jump to OOP, so I'm still pretty shakey about all this stuff about objects, frames, etc.
For instance, I have BugMeNot running again (optimized quite a bit even) ... but am still getting errors when making changes on the popup GUI menu (where the code used "this:" numerous times).
function DropDownMenuItem_OnClick()
UIDropDownMenu_SetSelectedValue(this.owner, this.value);
PlaySound("igMainMenuOptionCheckBoxOn");
if (this.value == 0) then
--We clicked the first menu item. Enter code here to affect the rest of your mod.
elseif (this.value == 1) then
--We clicked the second menu item. Enter code here to affect the rest of your mod.
end
end
With every button, every text field, every checkbox being its own separate object, how the HELL can I identify what clicked? Who owns it? What the value was, or is?
Thanks in advance.