• 0

    posted a message on Metamethods


    instead of creating an unused frame for the metatable for all my libs/addons that use this pattern, i tried using an existing one. using UIParent as the parentPrototype seems to work just fine. any objections to doing it this way?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Positioning frames
    Not sure how useful it'll be to anybody else, but I did manage to get this running at last.

    local ChatFrameN = CreateFrame("Frame", nil, UIParent)
        ChatFrameN:RegisterEvent("PLAYER_LOGIN")
        ChatFrameN:RegisterEvent("UPDATE_CHAT_WINDOWS")
    
    ChatFrameN:SetScript("OnEvent", function ()
        if event == "PLAYER_LOGIN" or "UPDATE_CHAT_WINDOWS" then
            ChatFrame1:ClearAllPoints()
            ChatFrame1:SetHeight(136)    
            ChatFrame1:SetWidth(495)
            ChatFrame1:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',4,8)
            ChatFrame1:SetUserPlaced(true);
    
            ChatFrame2:ClearAllPoints()
            ChatFrame2:SetHeight(112)    
            ChatFrame2:SetWidth(495)
            ChatFrame2:SetPoint('BOTTOMRIGHT',UIParent,'BOTTOMRIGHT',-4,8)
            ChatFrame2:SetUserPlaced(true);
        end
    end)
    
    for i = 1, 10 do
      local cf = _G[("ChatFrame%d"):format(i)] 
      cf:SetClampRectInsets(0,0,0,0)
    end
    
    local sFilgerAnchorN = CreateFrame("Frame", nil, UIParent)
    sFilgerAnchorN:RegisterEvent("PLAYER_LOGIN")
    sFilgerAnchorN:RegisterEvent("UPDATE_CHAT_WINDOWS")
    
    sFilgerAnchorN:SetScript("OnEvent", function ()
    if event == "PLAYER_LOGIN" or "UPDATE_CHAT_WINDOWS" then
    sFilgerAnchor1:ClearAllPoints()
    sFilgerAnchor1:SetHeight(13)    
    sFilgerAnchor1:SetWidth(13)
    sFilgerAnchor1:SetPoint('CENTER',UIParent,'CENTER',-362,6)
    sFilgerAnchor1:SetUserPlaced(true);
    
    sFilgerAnchor2:ClearAllPoints()
    sFilgerAnchor2:SetHeight(13)    
    sFilgerAnchor2:SetWidth(13)
    sFilgerAnchor2:SetPoint('CENTER',UIParent,'CENTER',258,6)
    sFilgerAnchor2:SetUserPlaced(true);
    
    sFilgerAnchor3:ClearAllPoints()
    sFilgerAnchor3:SetHeight(13)    
    sFilgerAnchor3:SetWidth(13)
    sFilgerAnchor3:SetPoint('CENTER',UIParent,'CENTER',7,-146)
    sFilgerAnchor3:SetUserPlaced(true);
    
    sFilgerAnchor4:ClearAllPoints()
    sFilgerAnchor4:SetHeight(13)    
    sFilgerAnchor4:SetWidth(13)
    sFilgerAnchor4:SetPoint('CENTER',UIParent,'CENTER',139,6)
    sFilgerAnchor4:SetUserPlaced(true);
    end
    end)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Altoholic - Official Thread
    If it's the taint error thing, then Altoholic is (sorry to say) not guilty. It is blamed because it's the first addon in the alphabetical order that uses DropDownMenus (bug in the wow engine iirc, don't ask me what).
    Posted in: General AddOns
  • 0

    posted a message on Recount
    Quote from Stanzilla
    meep


    what was the problem?
    Posted in: General AddOns
  • 0

    posted a message on Recount
    Thank you it works now, what does that magical command do?
    Posted in: General AddOns
  • 0

    posted a message on Recount
    Since 4.0.1 I when clicking on a player's bar I'm not getting a detailed preview, nothing happens at all. Is this going to be fixed, I want my pie graphics ;)
    Posted in: General AddOns
  • 0

    posted a message on Grid2 - What it is, and what it's not
    Quote from Phanx
    Yeah, that's the big thing. If you can muddle through and fix an addon for yourself by copying and pasting stuff from forums, that's one thing, but we do ask that you not commit such "updates" to an addon's repository, or otherwise post a public update, unless you fully understand why the changes you made fixed the problem, and are willing and able to commit to supporting the addon. Otherwise, we end up with tons of addons that are now marked as updated, but still have nobody actually maintaining or supporting them, which doesn't really help anybody. :|


    I agree. I've fiddled with it partially but it's only good for myself. I don't even completely understand why it worked so there's no chance I would ever commit my experimental mess for public use.

    I will patiently wait when someone does get the time and interest to update it. In the meantime, Grid works just as well with a few plugins.
    Posted in: Grid & Grid2
  • 0

    posted a message on New and broken stuff with Cataclysm
    local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, canApplyAura, isBossDebuff = UnitDebuff(unit, index, filter)

    Has this isBossDebuff return value been introduced with the patch? I found it while trying to modify Blizzard's new CompactRaidFrames, which seem to show boss debuffs fairly well.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Deus Vox Encounters
    it appears that you have to check the SoundEffects option to be able to hear sounds played via PlaySound() and PlaySoundFile(). hopefully its possible to bypass that restriction or at least to mute all other combat sounds
    Posted in: Raid AddOns
  • 0

    posted a message on Ace2 error in 4.0.1
    Mysticalos writes in the Ace2 ticket section: i fixed this by changing
    local len = text:len() to local len = text:len(self)

    in AceComm-2.0.lua
    Posted in: Ace2
  • 0

    posted a message on Ace2 error in 4.0.1
    Some Fubar content is on ace2 as well, isn't there a quickcoded fix for this?
    Posted in: Ace2
  • 0

    posted a message on Positioning frames
    I did notice that the chat frame positions are no longer stored in layout-local which I assume has something to do with it, you lost me at secure hook though, you may be underestimating my Lua noobishness. :x
    Posted in: Lua Code Discussion
  • 0

    posted a message on Positioning frames
    Until today I've been using the attached snippet of code in a basic addon to fix a long standing issue with my chat frames randomly moving, and Filger frames resetting position if the addon is ever disabled and re-enabled.

    Today however, neither is working, I assume it's due to some change or other from the patch but I have no idea how to fix it due to my obscenely limited Lua experience.

    Could anybody out there troubleshoot this?

    local ChatFrameN = CreateFrame("Frame", nil, UIParent)
    ChatFrameN:RegisterEvent("PLAYER_LOGIN")
    ChatFrameN:RegisterEvent("PLAYER_ENTERING_WORLD")
    
    ChatFrameN:SetScript("OnEvent", function ()
    if event == "PLAYER_LOGIN" then
    ChatFrame1:ClearAllPoints()
    ChatFrame1:SetHeight(136)    
    ChatFrame1:SetWidth(512)
    ChatFrame1:SetPoint('BOTTOMLEFT',UIParent,'BOTTOMLEFT',2,7)
    ChatFrame1:SetUserPlaced(true);
    
    ChatFrame2:ClearAllPoints()
    ChatFrame2:SetHeight(112)    
    ChatFrame2:SetWidth(512)
    ChatFrame2:SetPoint('BOTTOMRIGHT',UIParent,'BOTTOMRIGHT',-2,7)
    ChatFrame2:SetUserPlaced(true);
    end
    end)
    
    for i = 1, 10 do
      local cf = _G[("ChatFrame%d"):format(i)] 
      cf:SetClampRectInsets(0,0,0,0)
    end
    
    local sFilgerAnchorN = CreateFrame("Frame", nil, UIParent)
    sFilgerAnchorN:RegisterEvent("PLAYER_LOGIN")
    sFilgerAnchorN:RegisterEvent("PLAYER_ENTERING_WORLD")
    
    sFilgerAnchorN:SetScript("OnEvent", function ()
    if event == "PLAYER_LOGIN" then
    sFilgerAnchor1:ClearAllPoints()
    sFilgerAnchor1:SetHeight(13)    
    sFilgerAnchor1:SetWidth(13)
    sFilgerAnchor1:SetPoint('CENTER',UIParent,'CENTER',-362,6)
    sFilgerAnchor1:SetUserPlaced(true);
    
    sFilgerAnchor2:ClearAllPoints()
    sFilgerAnchor2:SetHeight(13)    
    sFilgerAnchor2:SetWidth(13)
    sFilgerAnchor2:SetPoint('CENTER',UIParent,'CENTER',258,6)
    sFilgerAnchor2:SetUserPlaced(true);
    
    sFilgerAnchor3:ClearAllPoints()
    sFilgerAnchor3:SetHeight(13)    
    sFilgerAnchor3:SetWidth(13)
    sFilgerAnchor3:SetPoint('CENTER',UIParent,'CENTER',7,-148)
    sFilgerAnchor3:SetUserPlaced(true);
    
    sFilgerAnchor4:ClearAllPoints()
    sFilgerAnchor4:SetHeight(13)    
    sFilgerAnchor4:SetWidth(13)
    sFilgerAnchor4:SetPoint('CENTER',UIParent,'CENTER',138,6)
    sFilgerAnchor4:SetUserPlaced(true);
    end
    end)
    Posted in: Lua Code Discussion
  • 0

    posted a message on Grid
    Quote from Nevcairiel
    The default frames are actually quite capable in 4.0, probably enough for many people, tbh =)


    Until they let me change the size of the debuff/buff icons, I think not. My eyes are going to bleed.

    Have you tried to heal in PTR/beta with these teeny tiny debuff icons? =P
    Posted in: Grid & Grid2
  • To post a comment, please or register a new account.