Hey, I still programming a little bit for WoW.
Now I want to create a minimap button, because I want to display and hide a frame (once i'm only testing to hide the frame, but not even that works! :()
Here an extract from my *.xml: http://pastey.net/102318
The minimap button is shown in WoW, but if I left-click on it the following error fires: "[string "AddonMinimapButton:OnClick"]:2:attempt to index global 'Addon' (a nil value)"
Can you please tell me, where the error is and what I must edit, that 'addon' isn't a nil value and the frame could be hide??
Thank you in advance!!|||Quote:
Hey, I still programming a little bit for WoW.
Now I want to create a minimap button, because I want to display and hide a frame (once i'm only testing to hide the frame, but not even that works! :()
Here an extract from my *.xml: http://pastey.net/102318
The minimap button is shown in WoW, but if I left-click on it the following error fires: "[string "AddonMinimapButton:OnClick"]:2:attempt to index global 'Addon' (a nil value)"
Can you please tell me, where the error is and what I must edit, that 'addon' isn't a nil value and the frame could be hide??
Thank you in advance!!
Where have you defined 'Addon' ?
In your LUA file ?
Is your LUA being processed BEFORE the XML so that 'Addon' is defined and ready before the XML needs it ?
I hope you're only calling it 'Addon' while you play and test
It's a bit generic otherwise.
No comments:
Post a Comment