Quantcast
local T, C, L = unpack(Tukui)
if not C.unitframes.enable then return end
local oUF = oUFTukui or oUF

local barTex = T.GetBarTexture()

T.groupframefuncs = {}

T.groupframefuncs["general"] = function(self)
	self:ThickBorder()
	self:SetTemplate("Transparent")

	if self.Health.bg then self.Health.bg:Kill() end

	self.Health:ClearAllPoints()
	self.Health:AllPoints(self, 2)

	self.Name:SetFont(T.GetPixelFont())

	if self.Power then
		self.Power:ClearAllPoints()
		self.Power:SetPoint("BOTTOMLEFT", self, "BOTTOMLEFT", 2, 2)
		self.Power:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -2, 2)
		self.Power:SetFrameLevel(self.Health:GetFrameLevel()+2)
	end

	self:UpdateAllElements()
end