WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   level hiding & showing (https://www.wowinterface.com/forums/showthread.php?t=36157)

Quokka 10-23-10 06:24 AM

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



All times are GMT -6. The time now is 08:14 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI