Thread: PvP Icon
View Single Post
09-12-09, 01:21 AM   #1
Icerat
A Fallenroot Satyr
Join Date: Sep 2006
Posts: 28
PvP Icon

I'm fairly new to lua and ouf but have worked out how to customize and get what i want out of an oUF_coree layout i been playing with.

At the moment im using
Code:
--	PVP Icon
	if (unit == "player" or unit == "target") then
		self.PvP = self.Health:CreateTexture(nil, "OVERLAY")
		local faction = PvPCheck
			if faction == "Horde" then
				self.PvP:SetTexCoord(0.08, 0.58, 0.045, 0.545)
			elseif faction == "Alliance" then
				self.PvP:SetTexCoord(0.07, 0.58, 0.06, 0.57)
			else
				self.PvP:SetTexCoord(0.05, 0.605, 0.015, 0.57)
			end
		self.PvP:SetHeight(18)
		self.PvP:SetWidth(18)
		self.PvP:SetPoint("BOTTOMLEFT", -13, -13)
	end
to generate a PvP ion on the bottom left edge my player frame.

My question is how do i alter this so it shows a small red square at the bottom left hand corner of my player frame?
  Reply With Quote