LibGetFrame
Return unit frame for a given unit
Usage
local LGF = LibStub("LibGetFrame-1.0")
local frame = LGF.GetFrame(unit , options)
Options
- framePriorities : array, default :
{
-- raid frames
[1] = "^Vd1", -- vuhdo
[2] = "^Vd2", -- vuhdo
[3] = "^Vd3", -- vuhdo
[4] = "^Vd4", -- vuhdo
[5] = "^Vd5", -- vuhdo
[6] = "^Vd", -- vuhdo
[7] = "^HealBot", -- healbot
[8] = "^GridLayout", -- grid
[9] = "^Grid2Layout", -- grid2
[10] = "^ElvUF_RaidGroup", -- elv
[11] = "^oUF_bdGrid", -- bdgrid
[12] = "^oUF.*raid", -- generic oUF
[13] = "^LimeGroup", -- lime
[14] = "^SUFHeaderraid", -- suf
[15] = "^CompactRaid", -- blizz
-- party frames
[16] = "^SUFHeaderparty", --suf
[17] = "^ElvUF_PartyGroup", -- elv
[18] = "^oUF.*party", -- generic oUF
[19] = "^PitBull4_Groups_Party", -- pitbull4
[20] = "^CompactParty", -- blizz
-- player frame
[21] = "^SUFUnitplayer",
[22] = "^PitBull4_Frames_Player",
[23] = "^ElvUF_Player",
[24] = "^oUF.*player",
[25] = "^PlayerFrame",
}
- ignorePlayerFrame : boolean (default true)
- ignoreTargetFrame : boolean (default true)
- ignoreTargettargetFrame : boolean (default true)
- playerFrames : array, default :
{
"SUFUnitplayer",
"PitBull4_Frames_Player",
"ElvUF_Player",
"oUF_TukuiPlayer",
"PlayerFrame",
}
- targetFrames : array, default :
{
"SUFUnittarget",
"PitBull4_Frames_Target",
"ElvUF_Target",
"TargetFrame",
"oUF_TukuiTarget",
}
- targettargetFrames : array, default :
{
"SUFUnittargetarget",
"PitBull4_Frames_TargetTarget",
"ElvUF_TargetTarget",
"TargetTargetFrame",
"oUF_TukuiTargetTarget",
}
- ignoreFrames : array, default :
{ }
- returnAll : boolean (default false)
Examples
Glow player frame
``` local LGF = LibStub("LibGetFrame-1.0") local LCG = LibStub("LibCustomGlow-1.0") local frame = LGF.GetFrame("player")
if frame then LCG.ButtonGlowStart(frame) -- LCG.ButtonGlowStop(frame) end ```
Glow every frames for your target
``` local LGF = LibStub("LibGetFrame-1.0") local LCG = LibStub("LibCustomGlow-1.0")
local frames = LGF.GetFrame("target", { ignorePlayerFrame = false, ignoreTargetFrame = false, ignoreTargettargetFrame = false, returnAll = true, })
for , frame in pairs(frames) do LCG.ButtonGlowStart(frame) --LCG.ButtonGlow_Stop(frame) end ```
Ignore Vuhdo panel 2 and 3
local frame = LGF.GetFrame("player", {
ignoreFrames = { "Vd2.*", "Vd3.*" }
})
Latest update (1.5.9) breaks weakauras that use raid frame glows.
Testing path:
- Have a weakaura that triggers glows (ex: Dibs on Power Infusion, Innervate me, etc)
- Create a custom group on group finder
- Whisper yourself the trigger word of the aura (ex: pi me, innervate, etc)
While the auras trigger, they don't show glows on the raid frame. When I disabled LibGetFrame the glows appeared again.
In reply to repimbas:
just wanted to second this.
Just recently Downloaded, Lib frames and spell alert toggle, works fine except for once there is a spell targeted an icon of that spell appears across my screen almost like Doomcooldown pulse and i cant seem to move or delete, any help would be appreciated ty, still new to set up
Getting error from weakaura ingame that I don't have LibGetFrame-1.0 after the latest update.
The Twitch app keeps saying that this addon needs to be updated from version 1.1.2-2-gdb40eb7-alpha to version 1.1.3, every time I start it or even just Refresh after updating. Similar issue to what Raider.io and DBM were experiencing until a few days ago but while it was resolved for those addons, this one still suffers from it.
Anyone else experiencing massive in-game spikes since the latest update?
The addon pops up to 140+ addon memory just if I'm in a party with 2 - which its NEVER done before.
Barely even playable atm :/
In reply to Forge_User_20607073:
Haven't noticed that , but i cannot update it to 1.3 version.Every time i hit update button it doesn;t do anything .I have reinstalled it and it's still 1.2..
Is it possible to do this with a focus?
What unit would I invoke to get one of the raid frames or party frames returend?