• 0

    posted a message on RunMacro - Can be done without a button?
    Quote from Adirelle
    Would that macro be called in response to an user input ?


    Yes, the user triggers the execution of the code but somewhat indirectly.

    The button they press activates a sequence of actions one of which may be to run a macro. For example:


    • User clicks button and addon starts to process the queue of waiting actions
      • Code to swap some gear
      • Code to swap talents
      • Code to execute macro command
      • Code to swap AddonX's profile
      • etc
    The addon is described here: http://forums.wowace.com/showthread.php?t=16702

    I hope that that makes it clearer.
    Posted in: Lua Code Discussion
  • 0

    posted a message on RunMacro - Can be done without a button?
    Hi all ,

    I'd like to run macros from my code, however, I don't want to have to create a clickable button in order to do so. Initially I thought I just needed to create a frame like this:

            
    local btn = CreateFrame("Button", "SetTheory_Macro", UIParent, "SecureActionButtonTemplate")
    btn:SetAttribute('type', 'macro')
    btn:SetAttribute('macro', opts.locals)
    and then btn:Click() but it turns out that that's a protected method too :(

    Is this possible?

    Thanks,
    Dan.
    Posted in: Lua Code Discussion
  • 0

    posted a message on SetTheory - Sets of addon configurations
    Hi xbeeps,

    Thanks for the reply! I'm very eager to add new functionality to this and lua/macros is a action I hadn't considered. I'll try to add it today as well as removing 'SetTheory' from the LDB text. With regards to the talent spec/outfitter swap, there is a 'Wait' action which can be used to pause the action sequence long enough for previous actions to go about their business before proceeding with the rest. For example, if your action sequence looks like this:

    Outfitter
    Dual Spec

    Although Outfitter is activated first the way the item swaps work mean they'll try to happen during the talent swap cast which won't work immediately and you'll have to wait until outfitter notices an opportunity to swap again. Changing the queue to something like this:

    Outfitter
    --Wait-- (with a value of ~2)
    Dual Spec

    Will pause the queue for two seconds after the outfitter swap which should give it enough time to complete unhindered. It might be better to add an optional (but set by default) pause to the end of the Outfitter action (and any other actions which work with items or cast times) to avoid any confusion. What do you think?

    Thanks,
    Dan.
    Posted in: General AddOns
  • 0

    posted a message on SetTheory - Sets of addon configurations
    Quote from Shadoweric
    Screenshots Screenshots Screenshots Screenshots Screenshots


    Here's a video http://www.youtube.com/watch?v=dgbwaXgqy9s

    :)
    Posted in: General AddOns
  • 0

    posted a message on Finding AceDB DBs
    Quote from OrionShock
    Best to itterate over the .db_registry, but that has problems all to it's own. One should not go poking around inside unexposed lib tables.


    I agree, especially considering the risk to my health if I try to work out its format again.

    Quote from OrionShock
    There is however a Lib that Adirelle developed that allows addon authors to opt in to this sort of automatic switch over provided that addon's author sets up their stuff right.


    Do you happen to remember what it was called and if it's still available? I scanned Adirelle's projects on his curse profile and didn't see one. I'd like to support this in SetTheory.

    Thanks for the reply,
    Dan.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Finding AceDB DBs
    Hi there,

    I'd like to be able to select the ace profiles of other addons from outside those addons. If I know where to find the DBObject (e.g. SetTheory.db in my own addon's case) this is easy. I can also iterate over all Ace'd addons and see if they have a 'db' table but that's hardly comprehensive. I've been looking at AceDB-3.0.lua and it doesn't seem to store this kind of information anywhere, even in .db_registry. Have I missed something or is this impossible?

    Thanks, Dan.

    P.S. If I call AceDB-3.0:New("Some other addon's DB") would I get an isolated copy of it or somehow screw over the original?
    Posted in: Lua Code Discussion
  • 0

    posted a message on SetTheory - Sets of addon configurations
    Quote from sylvanaar
    I'd like to see screenshots, and some suggestions on how to integrate with existing addon managers. Could I make ACP use this for example...


    Hi Sylvanaar,

    I've downloaded ACP and liked it very much. With a SetTheory module ACP users would be able to tie in their ACP sets with the templates, profiles, queues, etc of other addons and switch the whole lot over with one button press. The idea is to save time opening different addon's configuration options and chosing different setups as well as to reduce the number of times that you, for example, end up in an arena without your trinket selected (*cough* me *uncough*) or, relating to ACP, engaging a boss without vital raid addons.

    Quote from Shadoweric »
    Screenshots Screenshots Screenshots Screenshots Screenshots


    Good idea Shadoweric, I'll upload some soon,
    Dan.
    Posted in: General AddOns
  • 0

    posted a message on SetTheory - Sets of addon configurations
    Hi all,

    I've created an addon called SetTheory which aims to facilitate the quick selection of different sets of addon configurations through a consistent UI and a collection of modules.

    The addon is on curse at http://wow.curse.com/downloads/wow-addons/details/settheory.aspx

    If, like me, this addon would save you time switching between common sets of configurations (i.e. PvP-Healing, PvP-Damage, PvE-Healing, Tanking for me) please do try it out. I'm very keen to hear of bug reports, ideas and suggestions for new modules.

    Thanks, Dan.
    Posted in: General AddOns
  • 0

    posted a message on Curseforge, Pkgmeta & Externals: libs awol
    Thanks a lot Arnath, I had hoped it was something like this but didn't want to possibly mess up the packaging by dual-specifying externals.

    Dan.
    Posted in: AddOn HELP!
  • 0

    posted a message on Curseforge, Pkgmeta & Externals: libs awol
    Hi there,

    I just started using the CurseForge svn repository and wanted to setup my externals using .pkgmeta:

    externals:
     libs/LibStub:
      url: svn://svn.wowace.com/wow/libstub/mainline/trunk
      tag: latest
     libs/CallbackHandler-1.0:
      url: svn://svn.wowace.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0
      tag: latest
     libs/AceAddon-3.0:
      url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0
      tag: latest
     libs/AceEvent-3.0:
      url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceEvent-3.0
      tag: latest
     libs/AceDB-3.0:
      url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDB-3.0
    svn commit -m 'creating pkgmeta'
    OK so far, but then I looked at my working directory (also the wow-addon directory for my addon) and my libs folder disappeared. I assumed that setting up externals in the pkgmeta would have some effect on these externals (such as keeping them up to date with the latest tags) but I didn't expect them to be completely removed.

    So, have I been expecting too much from pkgmeta and should just manually curate my libs folder or is there a way of automatically downloading them with new revisions? It would seem weird that the packager would automatically bring in latest taged revisions of projects but that the repository the author works with may be outdated.

    Thanks,
    Dan.

    P.S. I posted this also on CurseForge's forums but noticed that the last post was two weeks ago, thanks for any help you can give me.
    Posted in: AddOn HELP!
  • 0

    posted a message on Pkgmeta & Externals, libs awol
    Hi there,

    I just started using the CurseForge svn repository and wanted to setup my externals using .pkgmeta:

    externals:
     libs/LibStub:
      url: svn://svn.wowace.com/wow/libstub/mainline/trunk
      tag: latest
     libs/CallbackHandler-1.0:
      url: svn://svn.wowace.com/wow/callbackhandler/mainline/trunk/CallbackHandler-1.0
      tag: latest
     libs/AceAddon-3.0:
      url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceAddon-3.0
      tag: latest
     libs/AceEvent-3.0:
      url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceEvent-3.0
      tag: latest
     libs/AceDB-3.0:
      url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDB-3.0
    svn commit -m 'creating pkgmeta'
    OK so far, but then I looked at my working directory (also the wow-addon directory for my addon) and my libs folder disappeared. I assumed that setting up externals in the pkgmeta would have some effect on these externals (such as keeping them up to date with the latest tags) but I didn't expect them to be completely removed.

    So, have I been expecting too much from pkgmeta and should just manually curate my libs folder or is there a way of automatically downloading them with new revisions? It would seem weird that the packager would automatically bring in latest taged revisions of projects but that the repository the author works with may be outdated.

    Thanks,
    Dan.
    Posted in: Need Help?
  • 0

    posted a message on Grid2 - What it is, and what it's not
    I also added a HealthDeficit status (which I display in text-down). It seems to function OK. Let me know if you want the code (not that it'd take you more than 2minutes to recreate).
    Dan.

    P.S.
    Should
    		v = ("%.1fk"):format(v)


    have been

    		v = ("%.1fk"):format(v/1000)


    in GridUtils.lua ?
    Posted in: Grid & Grid2
  • 0

    posted a message on Grid2 - What it is, and what it's not
    For Unstable afflication, the following should work:


    Should

    		self.indicators["icon"]:RegisterStatus(aff, 100)

    have been

    		self.indicators["icon-center"]:RegisterStatus(aff, 100)

    ?

    Even then it doesn't work :( It clears up the "icon" equally nil error but UA doesn't show through.
    Posted in: Grid & Grid2
  • 0

    posted a message on Grid2 - What it is, and what it's not
    Thanks for the reply Jerry. And my compliments on a really good addon.

    Two questions though.

    How does overloading work in Lua? I can write the new method but how can I be sure that it overloads yours and not vice-versa? Is it the LoadWith clause?

    The only feature I find it hard to live without in Grid2 currently is the estimated heals bar, do you plan to implement that in Grid2's core?

    All the best,
    Dan.
    Posted in: Grid & Grid2
  • To post a comment, please or register a new account.