• 0

    posted a message on UnitInRange returns false
    Indeed you have to use a unitId as in "player", "target", "focus", "party2" etc.

    cheers,
    mitch
    Posted in: Lua Code Discussion
  • 0

    posted a message on Detecting if cone spell is in range
    Hi,

    You could use IsItemInRange() with a suitable item ID. I use the following items in LibRangeCheck:

        [5] = {
            37727, -- Ruby Acorn
        },
        [8] = {
            34368, -- Attuned Crystal Cores
            33278, -- Burning Torch
        },
        [10] = {
            32321, -- Sparrowhawk Net
        },
    


    The downside is that you'll have to make sure that the item in question is "known" to the client. If you don't mind adding a lib dependency to your addon, then you can use LibRangeCheck-2.0 and let it handle the details for you. Check the API docs for more info.

    cheers,
    mitch

    ps: it won't help with cone direction detection, and I don't think it's even possible to do for enemy units.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Bazooka
    Quote from glithramir
    Is is possible to put a static width on the plugins?


    Hi,

    Currently you cannot set a static width, but you can set the maximum width with the Max text width plugin option and you can set the Shrink threshold plugin option to tell Bazooka not to make the plugin smaller unless the plugin text shrinks by this amount. Setting this to a high value will effectively make the plugin never shrink, so it'll settle on the Max text width (if it ever grows that large).

    cheers,
    mitch
    Posted in: Data Broker AddOns
  • 0

    posted a message on local x = x VS local x = _G.x
    If you use _G only to access globals, it's easier to catch accidental global access (usually a typo) with "luac -p -l x.lua |grep GLOBAL" as you should only see _G in that output.

    cheers,
    mitch
    Posted in: Lua Code Discussion
  • 0

    posted a message on Data broker display which fades LDB modules in when the text changes?
    Could you add a feature request ticket to Bazooka? I might get around implementiing this.

    cheers,
    mitch
    Posted in: Addon Ideas
  • 0

    posted a message on New and broken stuff with Cataclysm
    type, id, subtype = GetActionInfo(slot)


    if type is 'spell', then id is no longer the spellbook index, but the spellId.

    cheers,
    mitch
    Posted in: Lua Code Discussion
  • 0

    posted a message on general questions about libs
    I still think making CBH and LibStub "special" was a bad move... *shrug*
    Posted in: Libraries
  • 0

    posted a message on PitBull 4.0
    Quote from Fichte
    I dont know if this is just impossible, but i have a problem with the 40y range check. This range check only works for people in my raid/group. Other ranges like 28y work flawless.


    Take a look at PitBull4_RangeFader2, maybe you'll have better luck with that.

    cheers,
    mitch
    Posted in: Unit Frames
  • 0

    posted a message on FuBar 3.0
    Hi,

    Just a quick advice to those that consider switching to Bazooka: the current release (1.7.0) has a nasty bug with plugin placement configuration. The latest alpha on wowace is updated for 3.3 and should work, but I couldn't yet test it on live, so I haven't tagged it yet. Hopefully a proper release will be available later today.

    cheers,
    mitch

    Edit: I just tagged a new release, Grum said the alpha works, blame him if it doesn't :)
    Posted in: FuBar AddOns
  • 0

    posted a message on Raid/Instance-ID at Fubar
    Or you could just be trendy and switch to an LDB based display addon (I personally recommend Bazooka for obvious reasons :) and replace your current FuBar plugins with LDB plugins.

    You can use Fubar2Broker for the few FuBar plugins you don't find suitable LDB based replacements for.

    (yes, Fubar2Broker is the one that converts old FuBar plugins to LDB, and Broker2Fubar does the reverse, Networkerror gave the wrong name but the right link :)

    cheers,
    mitch
    Posted in: Addon Ideas
  • 0

    posted a message on Bazooka
    Quote from yj589794
    I've checked with the latest release version and everything looks OK.

    thanks again


    Hi,

    Did you need to adjust the positioning with the "Tweaks" or the 1 pixel gap just disappeared?
    Posted in: Data Broker AddOns
  • 0

    posted a message on Bazooka
    Hi,

    Thanks for the tickets, I think I fixed all of them, please check and report back if something's amiss. Regarding the statusbar textures, I don't think that's a good idea, but I might experiment with it a bit.

    cheers,
    mitch

    Quote from yj589794
    Very nice addon.

    I've created a couple of tickets for some minor things I've seen, and I've also got a question.
    Would it make sense to use statusbar textures from LibSharedMedia rather than background textures?
    Posted in: Data Broker AddOns
  • 0

    posted a message on PitBull 4.0
    Quote from bossmansmith
    What bugs me is a friendly will fade at a range of 8 yards on my hunter but a hostile will fade at 28 yards meanwhile my attack distance is 35 yards on all hostiles. Is there any way to setup a range setting that is not dependant on hostility of the thing the frame is showing?


    Hello,

    I've created an alternative range fader for PitBull4 based on LibRangeCheck-2.0. It might work out for you: PitBull4_RangeFader2.

    (It's not yet approved, dunno if you can grab it or not at this stage)

    cheers,
    mitch
    Posted in: Unit Frames
  • 0

    posted a message on Bazooka
    Glad you like it :)
    Posted in: Data Broker AddOns
  • 0

    posted a message on Bazooka
    Hi,

    I switched to the Default profile thing in the latest alpha (r73). I'll tag a release in a day or two if nothing else comes up worth fixing.

    cheers,
    mitch

    Quote from StormFX
    Hey, great job! Clean interface and works great! I do have one odd request: Can you have it default to the "Default" profile? If I notice any issues, I'll let ya know. And thank you!
    Posted in: Data Broker AddOns
  • To post a comment, please or register a new account.