• 0

    posted a message on SecureActionButton_OnClick question
    It's a bit murky, but check out SecureTemplates.xml. SecureActionButton_OnClick is assigned to the "onClick" handler of each SecureActionButtonTemplate instance at the time that the frame is created. Now, that bit of code is Blizzard's XML pseudo-code, not true Lua, so we can't be sure whether it does a global lookup each time OnClick is invoked, or if it does an assignment of the function reference once at load time for each frame (heck it might do it once at startup for the base template and everything just inherits the assigned reference). If the latter, then calling hooksecurefunc() will only install your hooked wrapper on frames which are created after your hook has taken effect. I'm surprised hooking SecureActionButton_OnClick works at all on Blizzard's default frames, frankly.

    If you want to hook other addons' SecureActionButtons, then make sure that (a) your addon is loaded first in the list, e.g. by prefixing its name with '!' or '+', and (b) you call hooksecurefunc() in the main chunk, not in an initialization event handler.

    As for why it would work with keybindings but not mouse clicks, that's a bit of a mystery. We don't have any visibility into how Blizzard's keybinding API actually maps key presses to clicks.

    You may need to dig into the dark realm of COMBAT_LOG_EVENT_UNFILTERED to get what you want. It does report instances of attempted ability casts which failed including reason for failure.

    http://www.wowpedia.org/API_COMBAT_LOG_EVENT
    Posted in: Lua Code Discussion
  • 0

    posted a message on Mapster: Official Thread
    That's not actually Mapster's fault. Blizzard foolishly put the raid markers inside a dropdown menu, so *any* addon which uses or modifies a UIDropDownMenu taints those raid markers.

    It's been that way since they were added in 4.03.
    Posted in: Map/Minimap AddOns
  • 0

    posted a message on Ace3 Blizzard Options - different options available
    The 'disabled' field can be a function which returns a value based on some condition (e.g. myVariable).

    opts = {
      ...
      disabled = function() return myVariable == true end,
      ...
    }
    Posted in: Lua Code Discussion
  • 0

    posted a message on ButtonFacade (was LibButtonSkin-1.0)
    Happy to help. :)
    Posted in: General AddOns
  • 0

    posted a message on ButtonFacade (was LibButtonSkin-1.0)
    I think I may have found a solution to the Dreamlayout problem when used with certain addons. Posted it as a ticket, you can check it out here.
    Posted in: General AddOns
  • 0

    posted a message on Aloft - Customized Nameplates - Official Thread
    Rather than :Hide()ing the frame, you can :SetAlpha(0) in combat (though this does not propagate well to child frames with alpha settings of their own). Since you already have the option to disable clicking, this should be sufficient.

    As for the frame range thing, it's almost certainly a CVar that's being set in the beta. wdn.wowinterface.com doesn't have the beta FrameXML in there, but I found a (stale) reference to it (through searching on google!) over on Norganna's forum: a user extracted it and posted it as a .rar file. Tried to download it but it appears to have since been deleted, so at least it was available at one point. The one to ask would probably be Iriel - likely got a copy of the beta FrameXML stashed away somewhere.

    A complete (?) list of cvars can be found here: http://www.wowwiki.com/Config.wtf_defaults . Nothing jumps out at me. Have you tried playing with targetNearestDistance? Could be that the nameplates are tied to the tab-targeting distance, though in my experience they show up a lot closer than that (25 yd?)

    Just saw this thread while goofing off at work :p and - wow - it appears by all descriptions that you've been able to accomplish one of the most challenging mods to date. Can't wait to get home tonight and try it out. :) May go a long way to "drawing the user into the game" rather than just clicking UI elements all day, which I know is a pet peeve of many.
    Posted in: General AddOns
  • To post a comment, please or register a new account.