I've got an addon that my brother and I use to better communicate with each other; thing is, there are a LOT of commands involved, and I'm trying to come up with a better way of accessing them. I came up with the idea of having some buttons which, when pressed, would change an EditBox to show what arguments went with which command. So, for example, you click the button labelled 'Example,' and the EditBox changes to say something like
/example accepts the following commands:
/example test
/example 1
/example anothertest
/example blah
/example yadda
/example waffle
/example yawn
I know this could be done in the chat frame, but I don't really like outputting a lot of text to that, as some of these commands accept quite a lot of arguments, and outputting them all to the chat frame would result in a lot of spam.
Right now, I have two test buttons: One and Two. Button One changes my EditBox to have one line of text, while Button Two changes it to have several lines of text. The only problem is that the box itself does not expand to match the extra lines; it stays as a single line and the rest are printed underneath it. I've looked at several forum threads which say to anchor the EditBox, which I've done, yet it hasn't fixed the problem.
The help window is accessed via the AddOns tab under Interface Options; the code I have at the moment is here.
As far as I am aware, I've done everything right, so I don't understand why it isn't working properly. Any and all help is appreciated, but please bear in mind that my knowledge of Lua is pretty basic, so I might ask stupid questions..
I have uploaded a version of DuelResponse which will hopefully work with the WoW Classic Beta.
The only problem is I am not in said Beta, so I cannot guarantee if anything will work; if you do use it and find any problems, please do not hesitate to open a ticket. (I'm trying to pay more attention to the ticket tracker, as I received one back in JANUARY but wasn't notified about it... unless I was and simply forgot.)
Whether you love or hate to duel, DuelResponse has tools to make life easier.
Hate dueling? DuelResponse will block any and all duel or Pet Battle requests sent your way, allowing you to play in peace.
If you love dueling, then the addon can still help you in a number of ways:
Lagging? Decline duels while your latency is above a set number.
Frame rate gone to heck? Decline duels while you shout at your computer to stop acting up (well, that's what I do).
Resurrection Sickness? No duels for you!
AFK or Busy? Again, block all incoming duels until you return or finish doing what you're doing.
DuelResponse also has optional plugins which extend its functionality:
Blacklist is like an ignore list for duels; add someone to this, and all challenges they send will be declined. Handy for the kinds of people who like to get all up in your face and spam you with requests.
The whisper plugin, as its name implies, sends customised whisper messages to people when a duel is declined.
Why are you using XML when you're using AceAddon, which has :OnInitialize() and :OnEnable() members? You should probably ditch the XML and use the AceAddon functions, and either use AceEvent or make your own event handler.
I appreciate the advice, but I prefer XML.
EDIT
New error when putting down a train:
Message: Interface\AddOns\TrainAlert\TrainAlert.lua:103: AceTimer-3.0: ScheduleTimer("methodName", delay, arg): 'methodName' - method not found on target object.
Time: 01/11/12 15:59:00
Count: 1
Stack: [C]: ?
...ce\AddOns\Recount\Libs\AceTimer-3.0\AceTimer-3.0.lua:223: in function <...ce\AddOns\Recount\Libs\AceTimer-3.0\AceTimer-3.0.lua:211>
(tail call): ?
Interface\AddOns\TrainAlert\TrainAlert.lua:103: in function `TrainAlertFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>
Locals: (*temporary) = "AceTimer-3.0: ScheduleTimer("methodName", delay, arg): 'methodName' - method not found on target object."
My addon, Easy Portal Advert, uses AceGUI to create its help screen. But for some reason, it has stopped working. Every time I use the command to view said help screen, I get this error:
Message: ...terface\AddOns\EasyPortalAdvert\EasyPortalAdvert.lua:400: attempt to index local 'frame' (a nil value)
Time: 03/06/11 10:10:17
Count: 1
Stack: ...terface\AddOns\EasyPortalAdvert\EasyPortalAdvert.lua:400: in function `?'
Interface\FrameXML\ChatFrame.lua:4214: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3825: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:3863: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
I don't understand why this is happening, as the only change I have made to the help, is add in the new commands. Everything is referenced properly in my XML file, as follows:
Everything was working fine in the version of EPA prior to this one, and I've been wracking my brains trying to figure out why it's not working, when I can see nothing wrong with the code (seeing as it was working this time last week).
One of my addons uses Ace3 to create ScrollFrames, which are used for displaying help windows.
However, one of the users of said addon told me that they can't use the commands which create said ScrollFrames. Only when I told him to install Ace3 did he say they worked properly.
So, I added
##RequiredDeps: Ace3
to my addons TOC file.
What I want to know is, is there another way of including the required files without the user needing to install Ace3?
I've been looking at all the ScrollFrame topics here, and pretty much all of them seem to mention scrolling buttons and so forth.
All I really want is a ScrollFrame that scrolls text only, with a button to close it. But I can't find any tutorials on how to make this work - and I want to get my addons help file all organised into a single frame.
I did manage to create a SimpleHTMLFrame, but I don't understand how to attach a scrollbar to it. I'm starting to lose patience with this, but for the sake of my users I will persevere.
Please, can't someone point me to a tutorial that actually does what I am looking for?
0
I've got an addon that my brother and I use to better communicate with each other; thing is, there are a LOT of commands involved, and I'm trying to come up with a better way of accessing them. I came up with the idea of having some buttons which, when pressed, would change an EditBox to show what arguments went with which command. So, for example, you click the button labelled 'Example,' and the EditBox changes to say something like
I know this could be done in the chat frame, but I don't really like outputting a lot of text to that, as some of these commands accept quite a lot of arguments, and outputting them all to the chat frame would result in a lot of spam.
Right now, I have two test buttons: One and Two. Button One changes my EditBox to have one line of text, while Button Two changes it to have several lines of text. The only problem is that the box itself does not expand to match the extra lines; it stays as a single line and the rest are printed underneath it. I've looked at several forum threads which say to anchor the EditBox, which I've done, yet it hasn't fixed the problem.
The help window is accessed via the AddOns tab under Interface Options; the code I have at the moment is here.
As far as I am aware, I've done everything right, so I don't understand why it isn't working properly. Any and all help is appreciated, but please bear in mind that my knowledge of Lua is pretty basic, so I might ask stupid questions..
0
I have uploaded a version of DuelResponse which will hopefully work with the WoW Classic Beta.
The only problem is I am not in said Beta, so I cannot guarantee if anything will work; if you do use it and find any problems, please do not hesitate to open a ticket. (I'm trying to pay more attention to the ticket tracker, as I received one back in JANUARY but wasn't notified about it... unless I was and simply forgot.)
0
Whether you love or hate to duel, DuelResponse has tools to make life easier.
Hate dueling? DuelResponse will block any and all duel or Pet Battle requests sent your way, allowing you to play in peace.
If you love dueling, then the addon can still help you in a number of ways:
DuelResponse also has optional plugins which extend its functionality:
More detailed information is available here: https://www.curseforge.com/wow/addons/duelresponse
The addon is available in many languages; if you can help translate, please go here: https://wow.curseforge.com/projects/duelresponse/localization
Please use the ticket tracker - https://wow.curseforge.com/projects/duelresponse/issues - to report any bugs.
If you have any questions, please ask.
0
I appreciate the advice, but I prefer XML.
EDIT
New error when putting down a train:
0
0
0
I don't understand why this is happening, as the only change I have made to the help, is add in the new commands. Everything is referenced properly in my XML file, as follows:
Everything was working fine in the version of EPA prior to this one, and I've been wracking my brains trying to figure out why it's not working, when I can see nothing wrong with the code (seeing as it was working this time last week).
Any and all help is very much appreciated.
0
Just to clarify, I should add:
externals:
to my .pkgmeta, since I'm only using Ace3 to create ScrollFrames and Buttons?
0
http://kb.wowace.com/projects/packaging-an-addon/#w-use-of-libraries
It's not exactly helpful, as it doesn't tell you how to use the .pkgmeta file to do this.
0
However, one of the users of said addon told me that they can't use the commands which create said ScrollFrames. Only when I told him to install Ace3 did he say they worked properly.
So, I added
to my addons TOC file.
What I want to know is, is there another way of including the required files without the user needing to install Ace3?
0
All I really want is a ScrollFrame that scrolls text only, with a button to close it. But I can't find any tutorials on how to make this work - and I want to get my addons help file all organised into a single frame.
I did manage to create a SimpleHTMLFrame, but I don't understand how to attach a scrollbar to it. I'm starting to lose patience with this, but for the sake of my users I will persevere.
Please, can't someone point me to a tutorial that actually does what I am looking for?