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... |
Same here. I absolutely love the layout, would be great to see all the stats permanently and not just on mouseover.
|
Open the Functions.lua file in Notepad. Find every section that looks like this:
Code:
if self.parent.isMouseOver then Code:
X |
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.
|
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 |
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.
|
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. :/
|
Ok i figured it out but why cant i change those values. Like i just wanna reverse the health mouseover function on a target (current, and percent on mouseover)
Code:
-- HEALER: deficit, percent on mouseover |
Quote:
I've copied the correct part in here and gave you comments on what part does what. Give it a try swapping out, it'll be fine :) Lua Code:
|
Quote:
|
That helped a lot, thanks.
But the power section has nothing to do wiht the reversed (current, percent on mouseover) mouseover function for the health. |
Quote:
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 :) |
Well i cant read out a function for that.
|
Quote:
Lua Code:
Lua Code:
So what do you want to change to what for which bar? |
Quote:
For example, if you set aside your mental block and actually think about what this line could mean: if cur < max then ... you should be able to figure out that it's checking "if" the current health (since "cur" is short for "current" and you're in a section about health) is less than (that's what "<" means in math) the maximum health (since "max" is short for "maximum") and if it is, "then" do what's written afterward. Similarly, I think there's really only one possible interpretation of a line that says: elseif bar.__owner.isMouseOver then I'm willing to help, but there's a difference between helping you do something, and just doing it for you because you're unwilling to make any effort to help yourself. :rolleyes: |
Yea sry i found that and i clearly tried to change code there but i never got to the correct part but im getting it dont worry. Got it, thanks. Im new to this so yea im having lots of questions at the beginning to fit your awesome unitframes to my daily use :D
|
All times are GMT -6. The time now is 01:10 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI