WoWInterface

WoWInterface (http://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (http://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Mouseover text elements. (http://www.wowinterface.com/forums/showthread.php?t=30016)

st0nedpenguin 01-14-10 03:36 PM

Mouseover text elements.
 
Howdy,

I'm wondering if it's possible to have a text element on my player/target frames that will display health status (current, missing, whatever) that when moused over will switch to showing mana status (current, max, whatever)?

Code:

        local health = self.Health:CreateFontString(nil, 'OVERLAY', 'sfontright')
        health:SetPoint('RIGHT', self.Health, -2, 0)
        health.frequentUpdates = 0.25
        self:Tag(health, '[shealth]')

Code:

        if(unit == 'player' or unit == 'target') then
                local power = self.Health:CreateFontString(nil, 'OVERLAY', 'sfontright')
                power:SetPoint('RIGHT', self.Health, -2, -8)
                power.frequentUpdates = 0.1
                self:Tag(power, '[spower][( )druidpower]')
        end

Is my current health/mana setup, modified version of P3lim's.

p3lim 01-14-10 03:58 PM

make a frame, register OnEnter/OnLeave and use that to swap with alpha or show/hide

st0nedpenguin 01-14-10 05:54 PM

Unfortunately figuring out exactly how to do that is probably beyond me, I'm much more of an "edit" than "create" lua user. :|

Bruners 01-14-10 11:15 PM

Quote:

Originally Posted by st0nedpenguin (Post 174694)
Unfortunately figuring out exactly how to do that is probably beyond me, I'm much more of an "edit" than "create" lua user. :|

You can look at oUF Caellian, he got some mouse over stuff

st0nedpenguin 01-15-10 02:18 AM

Managed to hack together something with the help of oUF_Caellian, thanks for the tip!


All times are GMT -6. The time now is 10:25 AM.

vBulletin © 2014, Jelsoft Enterprises Ltd
©2012 ZAM Network LLC