hey im new to programming and have been trying various tutorials on how to make addons for wow recently iv been haveing alot of trouble with makeing a readycheck popup
my codes are
popup.toc
## Interface: 3089464
## Title: popup
## Notes: ready checker
## Dependencies
HelloWorld()
popup.lua
popup.lua
StaticPopupDialogs["popup"] = {
text = "are you ready?",
button1 = "Yes",
button2 = "No",
OnAccept = function()
HelloWorld();
end,
timeout = 40,
whileDead = 1,
hideOnEscape = 1
sound = "levelup2",
};
im not quite sure what im doing wrong if anyone could help me out it would b greatly apreciated|||Only file names go in your TOC, not function names, so HelloWorld() shouldn't be in there.
Neither of your files defines the HelloWorld() function.
Honestly, I'm not sure what you're trying to accomplish here anyway. What do you want your addon to do?|||## Interface: 300000
Remove HelloWorld from the .toc
define HelloWorld in your lua: 'function HelloWorld() --do stuff; end
then you need to call your popup with Static Popup Show, look it up wherever the tutorial is.
No comments:
Post a Comment