Thread Tools Display Modes
01-31-12, 07:16 AM   #1
Syliha
A Flamescale Wyrmkin
 
Syliha's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 104
ouf_freeb adjustment

Hey I have three questions:

1) How do I remove the total health + the "|" from all frames but the targetframe?

2) How do I remove the class-role-icons from all frames? (or even better, hide them in raid/group)?

3) How do i change the size of the focus frame and have only the name displayed there?

Thanks so much I've read over all 22 pages of comments and did not found anything.

Help is much appreciated, thanks!
__________________
Balance is, when everyone is unhappy.
  Reply With Quote
02-01-12, 06:11 PM   #2
Syliha
A Flamescale Wyrmkin
 
Syliha's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 104
/up and thanks for your help (:
__________________
Balance is, when everyone is unhappy.
  Reply With Quote
02-01-12, 08:34 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
You were still at the top of this forum.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
02-01-12, 09:04 PM   #4
Syliha
A Flamescale Wyrmkin
 
Syliha's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 104
oh i am sorry not happening again
__________________
Balance is, when everyone is unhappy.
  Reply With Quote
02-02-12, 08:50 PM   #5
Syliha
A Flamescale Wyrmkin
 
Syliha's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 104
So with my very little lua knowledge i finally found where to do what.

So i went to ftags.lua
got here

Code:
oUF.Tags['freeb:hp']  = function(u) 
    local min, max = UnitHealth(u), UnitHealthMax(u)
    return siValue(min).." | "..math.floor(min/max*100+.5).."%" 
end
oUF.TagEvents['freeb:hp'] = 'UNIT_HEALTH'
And if i delete
Code:
 siValue(min).." | "..
the absolute health is gone for all frames. (vica versa with the percantage part)

So what do i need now to give only the target frame this absolute number?

also how do i hide the mana text in all bars? simply deleting freebp things in the flag file did not work .. =(

Thanks again, i will try again tomorrow to figure this out (:
__________________
Balance is, when everyone is unhappy.
  Reply With Quote
02-03-12, 04:40 AM   #6
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Instead of altering the 'freeb:hp' tag function (which is used by many frames), you should create a copy with a different tag name.

e.g.
Code:
oUF.Tags['syliha:hp']  = function(u) 
    local min, max = UnitHealth(u), UnitHealthMax(u)
    return math.floor(min/max*100+.5).."%" 
end
oUF.TagEvents['syliha:hp'] = 'UNIT_HEALTH'
You then need search for where the 'freeb:hp' tag is used, and when the unit is 'TARGET' use your new tag instead.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » ouf_freeb adjustment


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