Thread Tools Display Modes
06-21-13, 03:55 PM   #1
Nastacia
A Kobold Labourer
 
Nastacia's Avatar
Join Date: Sep 2010
Posts: 1
oUF_Phanx, mouseovers

I have a question about mouseover, is here a right place for asking?
I am trying to make the health and power value texts stick on the unitframes, not only when mouseovers. Which part should I edit? I tried to delete all lines about mouseovers but messed it up...

Last edited by Nastacia : 06-21-13 at 03:58 PM.
  Reply With Quote
07-11-13, 08:45 AM   #2
Mamantz
A Defias Bandit
Join Date: Jul 2013
Posts: 2
Same here. I absolutely love the layout, would be great to see all the stats permanently and not just on mouseover.
  Reply With Quote
11-11-13, 05:45 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Open the Functions.lua file in Notepad. Find every section that looks like this:

Code:
if self.parent.isMouseOver then
     X
else
     Y
end
and change it to just say:

Code:
X
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-09-13, 03:12 PM   #4
RooR
A Deviate Faerie Dragon
Join Date: May 2013
Posts: 19
Maybe u can help me again . I need to remove the mouseover on my power and show values instead of percent only on power but leave the hp like it is default. And remove mouseover on target like when i target someone in pvp outside a fight wiht full hp i wanna see his max hp without mouseover.

Last edited by RooR : 12-09-13 at 05:49 PM.
  Reply With Quote
12-09-13, 08:44 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If you only want to remove the mouseover change from the power text, then only make the above change in the section of the code that is related to the power text. It should be pretty obvious -- that section of the code is inside a function with "Power" in the name, beneath a comment block that says "Power", and calls lots of functions with "Power" in their name.

Even if you're unfamiliar with programming, instead of just going "omg code I don't get it, halp!" slow down and try to read it. Lua is a very easy language. It's basically giving instructions to the computer in plain English. And, if you break something, just undo your last change and try again. You're not going to make your computer explode or cause the sun to collapse into a black hole by raising a Lua error in WoW. It's okay to make mistakes -- that's how you learn.

As for the health text, find the PostUpdateHealth function (in Functions.lua, as the name might imply), go to the end of the function, and make the following change:

Code:
	elseif bar.__owner.isMouseOver or unit == "target" then
		bar.value:SetFormattedText("|cff%02x%02x%02x%s|r", color[1] * 255, color[2] * 255, color[3] * 255, si(UnitHealthMax(unit)))
	else
		bar.value:SetText(nil)
	end
end
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-10-13, 08:46 AM   #6
RooR
A Deviate Faerie Dragon
Join Date: May 2013
Posts: 19
Health worked but im still trying to figure out the thing wiht the power. I basically wanna see mana/power values and not percent when im playing my priest.

Last edited by RooR : 12-10-13 at 09:57 AM.
  Reply With Quote
12-10-13, 05:50 PM   #7
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Why? How is that remotely useful? Mana pools are fixed now. There is no reason to ever see anything other than a percent for mana values anywhere. :/
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-11-13, 11:37 AM   #8
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Originally Posted by RooR View Post
Health worked but im still trying to figure out the thing wiht the power. I basically wanna see mana/power values and not percent when im playing my priest.
That made me look at the power section.

Sounds to me like you're trying to change quite a bit.

But if you're trying to change Health, look at the section Health
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF_Phanx, mouseovers


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