Thread Tools Display Modes
05-08-10, 03:33 AM   #1
mojo0070
A Kobold Labourer
Join Date: May 2010
Posts: 1
How to add ouf Frame status icons?

I have a question to all the people out there who have a little bit more LUA skill than me and know how to set up the oUF Frames to show more Status Icons.

I'm looking for a workaround to show following Icons at the PlayerFrame:
Combat Icon - upper left corner / top middle (where the RaidIcon would appear)
Resting Icon - upper left corner / left side in the middle
Ready Check Icon - center of the Frame.

I know u can add this by editing the lua files but i have little/no experience in messing with this.

Using LUI v3 UI btw if that makes a difference
  Reply With Quote
05-08-10, 11:45 AM   #2
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
Code:
if(unit == 'player') then
			local leader = hp:CreateTexture(nil, 'OVERLAY')
			leader:SetPoint('TOPLEFT', self, 10, 8)
			leader:SetHeight(db.symbolsize)
			leader:SetWidth(db.symbolsize)
			self.Leader = leader

			local assistant = hp:CreateTexture(nil, 'OVERLAY')
			assistant:SetPoint('TOPLEFT', self, 10, 8)
			assistant:SetHeight(db.symbolsize)
			assistant:SetWidth(db.symbolsize)
			self.Assistant = assistant

			local combaticon = power:CreateTexture(nil, 'OVERLAY')
			combaticon:SetPoint('CENTER', self, 'BOTTOMRIGHT', -1, -2)
			combaticon:SetHeight(db.symbolsize)
			combaticon:SetWidth(db.symbolsize)
			combaticon:SetTexture('Interface\\CharacterFrame\\UI-StateIcon')
			combaticon:SetTexCoord(0.58, 0.90, 0.08, 0.41)
			self.Combat = combaticon
			
			local masterlooter = hp:CreateTexture(nil, 'OVERLAY')
			masterlooter:SetHeight(db.symbolsize)
			masterlooter:SetWidth(db.symbolsize)
			masterlooter:SetPoint('LEFT', leader, 'RIGHT')
			self.MasterLooter = masterlooter

		if UnitLevel('player') ~= MAX_PLAYER_LEVEL then
			local rest = power:CreateTexture(nil, 'OVERLAY')
			rest:SetPoint('BOTTOMLEFT', self, -5, -8)
			rest:SetHeight(db.symbolsize)
			rest:SetWidth(db.symbolsize)
			rest:SetTexture('Interface\\CharacterFrame\\UI-StateIcon')
			rest:SetTexCoord(0.09, 0.43, 0.08, 0.42)
			self.Resting = rest
		end
end
Change the hp and power name with the proper ones and play with the SetPoint stuff and you're done.

Last edited by Rostok : 05-08-10 at 11:47 AM.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » How to add ouf Frame status icons?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off