You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
568 B
19 lines
568 B
|
5 years ago
|
local E, L, V, P, G = unpack(select(2, ...)) --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||
|
|
local UF = E:GetModule('UnitFrames')
|
||
|
|
|
||
|
|
function UF:Construct_PvPText(frame)
|
||
|
|
local pvp = frame.RaisedElementParent:CreateFontString(nil, 'OVERLAY')
|
||
|
|
UF:Configure_FontString(pvp)
|
||
|
|
|
||
|
|
return pvp
|
||
|
|
end
|
||
|
|
|
||
|
|
function UF:Configure_PVPText(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
|