Thread Tools Display Modes
10-23-10, 06:24 AM   #1
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 196
level hiding & showing

Is there a way to only show the level if not max on player Controlled units & player pets?

Right now I use to show & hide my level.
but this lacks all no player frames

Code:
		if(unit=='player' and playerClass == 'DRUID' and UnitLevel('player') < MAX_PLAYER_LEVEL) then
			self:Tag(self.Name, '[difficulty][smartlevel] [raidcolor][name] [druidPower]')
		elseif(unit=='player' and playerClass == 'DRUID') then
			self:Tag(self.Name, '[difficulty][smartlevel] [raidcolor][name] [druidPower]')
		elseif(unit=='player' and UnitLevel('player') < MAX_PLAYER_LEVEL) then
			self:Tag(self.Name, '[difficulty][smartlevel] [raidcolor][name]')
		else
			self:Tag(self.Name, '[raidcolor][name]')
		end
__________________
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » level hiding & showing


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