initial commit
This commit is contained in:
18
Modules/UnitFrames/Elements/PVPIndicator.lua
Normal file
18
Modules/UnitFrames/Elements/PVPIndicator.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local UF = E:GetModule('UnitFrames');
|
||||
|
||||
function UF:Construct_PvPIndicator(frame)
|
||||
local pvp = frame.RaisedElementParent:CreateFontString(nil, 'OVERLAY')
|
||||
UF:Configure_FontString(pvp)
|
||||
|
||||
return pvp
|
||||
end
|
||||
|
||||
function UF:Configure_PVPIndicator(frame)
|
||||
local pvp = frame.PvPText
|
||||
local x, y = self:GetPositionOffset(frame.db.pvp.position)
|
||||
pvp:ClearAllPoints()
|
||||
pvp:Point(frame.db.pvp.position, frame.Health, frame.db.pvp.position, x, y)
|
||||
|
||||
frame:Tag(pvp, frame.db.pvp.text_format)
|
||||
end
|
||||
Reference in New Issue
Block a user