Quantcast Mouseover text elements. - WoWInterface
Thread Tools Display Modes
01-14-10, 03:36 PM   #1
st0nedpenguin
A Deviate Faerie Dragon
 
st0nedpenguin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2005
Posts: 10
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.
  Reply With Quote
01-14-10, 03:58 PM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,434
make a frame, register OnEnter/OnLeave and use that to swap with alpha or show/hide
  Reply With Quote
01-14-10, 05:54 PM   #3
st0nedpenguin
A Deviate Faerie Dragon
 
st0nedpenguin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2005
Posts: 10
Unfortunately figuring out exactly how to do that is probably beyond me, I'm much more of an "edit" than "create" lua user. :|
  Reply With Quote
01-14-10, 11:15 PM   #4
Bruners
A Flamescale Wyrmkin
 
Bruners's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 125
Originally Posted by st0nedpenguin View Post
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
  Reply With Quote
01-15-10, 02:18 AM   #5
st0nedpenguin
A Deviate Faerie Dragon
 
st0nedpenguin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2005
Posts: 10
Managed to hack together something with the help of oUF_Caellian, thanks for the tip!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Mouseover text elements.

Thread Tools
Display Modes

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