• 0

    posted a message on EditBox Not Resizing Properly

    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..

    Posted in: Lua Code Discussion
  • 0

    posted a message on DuelResponse

    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.)

    Posted in: General AddOns
  • 0

    posted a message on DuelResponse

    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.

    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.

    Posted in: General AddOns
  • 0

    posted a message on AceTimer-3.0 'function or method name expected' error
    Quote from Torhal
    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.


    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."
    Posted in: Lua Code Discussion
  • 0

    posted a message on AceTimer-3.0 'function or method name expected' error
    Problem solved. Please delete this topic.
    Posted in: Lua Code Discussion
  • 0

    posted a message on [RESOLVED] Annoying Error
    Never mind. Deleting my Cache and WTF folders seems to have fixed the problem.
    Posted in: AddOn HELP!
  • 0

    posted a message on [RESOLVED] Annoying Error
    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:

    <Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
    <Script file="libs\LibStub\LibStub.lua"/>
    <Include file="libs\AceGUI-3.0\AceGUI-3.0.xml"/>

    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.
    Posted in: AddOn HELP!
  • 0

    posted a message on Ace3 TOC
    Thanks for that, Phanx. Much appreciated.

    Just to clarify, I should add:

    url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0
    tag: latest

    to my .pkgmeta, since I'm only using Ace3 to create ScrollFrames and Buttons?
    Posted in: Ace3
  • 0

    posted a message on Ace3 TOC
    Quote from Adirelle
    Take a look there and there.


    It's not exactly helpful, as it doesn't tell you how to use the .pkgmeta file to do this.
    Posted in: Ace3
  • 0

    posted a message on Ace3 TOC
    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?
    Posted in: Ace3
  • 0

    posted a message on Argh! ScrollFrames!
    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?
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.