• 0

    posted a message on ButtonFacade (was LibButtonSkin-1.0)
    Instead of passing the button frame in a table, I suggest passing it as an arg:
    LBFGroup:AddButton(btn, btndata)
    LBFGroup:RemoveButton(btn, noReskin)

    that way if btndata isn't passed it will default to the defaults as well as making it easier to remove buttons as you are storing the reference to the button and not the btndata.
    Posted in: General AddOns
  • 0

    posted a message on setting selfcast key in a SecureActionButton
    dammit, when self and any other modifier key is down SecureButton_GetModifierPrefix(button) returns just "self-" and not "self-ctrl" etc, anyway around this other than forgetting about self and using alt?
    Posted in: Lua Code Discussion
  • 0

    posted a message on setting selfcast key in a SecureActionButton
    I have a SecureActionButton with these attributes set:
    button:SetAttribute("*type*", "spell")
    button:SetAttribute("*spell*", "Healing Touch")
    button:SetAttribute("ctrl-type*", "spell")
    button:SetAttribute("ctrl-spell*", "Wrath")

    How do I go about adding the SELFCAST modifier?

    Edit: Ok I've got:
    button:SetAttribute("modifiers", "SELFCAST:self")
    button:SetAttribute("self-unit*", "player")
    button:SetAttribute("self-ctrl-unit*", "player")

    and while self+click selfcasts works, self+ctrl+click tries to selfcast Healing Touch on me, any help? (selfcast is alt)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Threat-2.0 / Omen2 - request for PTR testers
    Bugs:
    AOE mode doesn't work (at least when solo)
    If you don't have oRA loaded you get an error when trying to go into Healer mode (should probably default to Blizzards MTs if the selected MT addon isn't loaded).
    Posted in: Raid AddOns
  • 0

    posted a message on Faking Blizzard Events
    Well the mod I made modifys UnitDebuff so that you can see how much Hunters Mark has stacked since you can't see this normally and in order for Unit Frames and other addons to update the stack count I need to manually make it update and this seemed like the cleanest, fastests way to do that.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Faking Blizzard Events
    First of all I know this is generally a bad idea but because of what I needed the mod to do I thought this was the best way to go around it.

    I obviously want a fast and cheap way to do this and I'm wondering if it's possible to improve what I've come up with below:
    local _G = _G
    local GetFramesRegisteredForEvent = GetFramesRegisteredForEvent
    local select = select
    local UnitGUID = UnitGUID
    local units = { target = true, focus = true, }
    function addon:UpdateAuras(GUID)
    	if not GUID then return end
    	_G.event = "UNIT_AURA"
    	for i=select("#", GetFramesRegisteredForEvent("UNIT_AURA")), 1, -1 do
    		local frame
    		for unit in pairs(units) do
    			if UnitGUID(unit) == GUID then
    				frame = frame or select(i, GetFramesRegisteredForEvent("UNIT_AURA"))
    				_G.arg1 = unit
    				frame:GetScript("OnEvent")(frame, "UNIT_AURA", unit)
    			end
    		end
    	end
    	_G.event, _G.arg1 = nil, nil
    end

    Also, is it a bad idea to trigger this event during an different event or should I wait till the next OnUpdate?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Undocumented COMBAT_LOG_EVENT arguments
    Quote from Elsia »

    SPELL_SUMMON has the standard spell prefix and an empty postfix argument structure, adding to first post.

    I have yet to find a way to create SPELL_CREATE events, any hints welcome. My guess is that it also has an empty postfix but this is not verified at all.


    Maybe Healthstones / Spellstones / Firestone / Mana Gems / Food etc
    Posted in: Lua Code Discussion
  • 0

    posted a message on New undocumented functions in 2.4
    damn, forgot to extract the new interface files :P no wonder the search didn't find it
    Posted in: Lua Code Discussion
  • 0

    posted a message on New undocumented functions in 2.4
    2 new functions:
    hex = ConvertToHex(num)
    UsesGUID

    No idea what UsesGUID does, it always returns false. I've tried:
    UsesGUID()
    UsesGUID("player")
    UsesGUID("player",UnitGUID("player"))
    UsesGUID(UnitGUID("player"),"player")
    UsesGUID("player","player")
    UsesGUID(number)
    UsesGUID(boolean)

    and they all return false.
    Posted in: Lua Code Discussion
  • 0

    posted a message on New undocumented functions in 2.4
    Quote from Xinhuan »

    Yes, Antiarc and me optimized the whole Blizzard_CombatLog to use a lot of local upvalues instead, its quite apparent that the last commit was almost a direct .diff file generated from my last commit without edits to remove some of my comments.

    Hmm, Zeksie, what are you trying to do? I'll get back to Antiarc and Alexander about un-local-ing some of those things.

    Would
    function globalFunction()
    end
    local globalFunction = globalFunction

    work?

    Also, its probably best not to rely on the combatlog functions since its LoD
    Posted in: Lua Code Discussion
  • 0

    posted a message on Undocumented COMBAT_LOG_EVENT arguments
    Quote from Slouken »
    There are two new combat log events for the next test realm update:
    SPELL_SUMMON
    SPELL_CREATE
    These are sent with the guid and name of the creature or object that is created by a spell (along with who cast it, naturally)

    http://forums.worldofwarcraft.com/thread.html?topicId=2968233433&postId=49757555677&sid=1#473

    From the looks of it it'll be sent like this :)
    timestamp, event, sourceGUID, sourceName, sourceFlags, creatureGUID, creatureName, creatureFlags
    Posted in: Lua Code Discussion
  • 0

    posted a message on ax_RaidStatus
    I'd really like to be able to have tooltips so I can see who doesn't have enough mana and the ability to show common buffs.

    Also, please add LibSharedMedia-2.0 to the optional dependencies :)
    Posted in: Raid AddOns
  • 0

    posted a message on New undocumented functions in 2.4
    Quote from Shadowed »

    We also got a UnitHasRelicSlot(unit) in this build as well.

    Actually we have that on live (though maybe its not documented). GetQuestLogRewardTitle got added though.
    Decided to see what they removed as well:
    • CanRepairOnly
    • GetNumLaguages (got a spelling fix)
    • IsTalentTrainer
    • IsTrainerServiceLearnSpell
    • IsTrainerServiceTradeSkill
    Posted in: Lua Code Discussion
  • 0

    posted a message on Trinket & Idol Menu?
    I personally like SwapMagic. You open your character screen, hold shift and mouseover an item slot and it shows all the equipment for that slot.
    Posted in: Addon Ideas
  • 0

    posted a message on New undocumented functions in 2.4
    Quote from Slouken »
    guid = UnitGUID("unit")
    Returns a string representing a unique identifier for the given unit. This is the same string that is used in the combat log to identify a unit.

    http://forums.worldofwarcraft.com/thread.html?topicId=2968233433&postId=47749334207&sid=1#416
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.