Target Frame (with guild/no guild/cast bar and raid icon)
Satrina Unit Frames 3
Version 3.0.5 - 5 January 2008
New in 3.0.5:
- Vehicles with combo points will now cause the combo point frame to appear. However, The combo point frame will not appear until you have at least one built up.
- Vehicle power should report correctly now
These unit frames remove (almost) all status bars, replacing them with compact unit frames with no portrait. All of the individual frames are moveable. All frames are Clique enabled.
In general, I don't take feature requests for this addon. I made these frames to show exactly what I want in unit frames with no fuss. I made them publicly available because people saw it in screenshots and asked if it was available. Since then, whenever I have made a change I have added an option for the way it used to be, making my new preference the default. The best way to get a feature you want added is to code the change yourself and send it to me. Failing that, ask anyway, and I'll think about it =)
Player Frame
- Health, mana/rage/energy shown in actual numbers.
- Health shades from green at full, to yellow at half, to red at death.
- PvP status is denoted by the colour of name - blue for non-PvP, green for PvP, red for free-for-all PvP.
Party Member and Player Pet Frames
- Up to 16 buffs are shown
- Up to 8 debuffs are shown
- Health is shown in actual numbers, and mana/rage/energy as a percentage.
- Health shades from green at full, to yellow at half, to red at death.
- PvP status is denoted by the colour of name - blue for non-PvP, green for PvP, red for free-for-all PvP.
Party Member Pet Frames
- Not yet supported
Target Frame
- Raid target icon displayed beside target's name
- Shows up to 40 debuffs, up to 16 buffs
- Target health and mana/rage/energy are given as percentage
- Turning on the target cast bar (portrait) in the WOW interface options enables a casting bar across the top of the target frame
Focus Frame and Target of Target Frame
- Up to 16 buffs are shown
- Up to 8 debuffs are shown
- Health and mana/rage/energy shown as a percentage.
- Health shades from green at full, to yellow at half, to red at death.
- PvP status is denoted by the colour of name - blue for non-PvP, green for PvP, red for free-for-all PvP.
Target of Target is turned on as usual in the WOW interface options
Raid Frames
- Not supported
Configuration:
To open the Satrina Unit Frames configuration frame: /suf (which just opens the interface panel to the SatrinaUnitFrames tab)
* All frames and their buffs/debuffs are shown as placeholders when the configuration frame is open
* Any frame can be dragged while holding down the Alt key (whether the configuration frame is open or not)
* The opacity of the unit frames may be set independently
* Unchecking the UI Scale checkbox will allow you to unit frames independently of the global UI scaling.
* Checking the Use Same Scale checkbox will allow you scale all of the unit frames at the same time with one slider.
* The home button will return all unit frames to their default positions
* Selecting Target Guild will add the target's guild to the target frame
* Selecting Target PVP icon will cause the PVP graphic to show with the target frame
* Selecting Target class icon will cause a class graphic to show with the target frame (it's pretty small right now, may scale it up some later)
Change Log - Satrina Unit Frames 3
New in 3.0.5:
- Vehicle combo points will appear in combat. You will not see vehicle combo points unless you have at least one built up.
- Vehicle power should report correctly now
New in 3.0.4:
- Deathknight rune frame now moves with player frame
- Deathknight runic power now updates on player frame
New in 3.0.3:
- Fix player health font size to not cut off
- Fix an error when piloting vehicles
Optional Files - Satrina Unit Frames 3
Sorry, there are currently no optional files available.
i just wonder how i could make the target's buff/debuff bigger , and i prefer the shadow of the cooldown like the BLZ's .
about the target's castbar,how could i set it on the bottom of the targetframe?
plz , i look forward it .....
thx
Originally posted by paflechien i wrote support for mobhealth 1 and 2. but while tonights raid (25 men), with both of them i had regular lags.
actually, the mod seems to be guilty :/ i commented everything i added about mobhealth support, leaving only the %age display, and i still had lags. i think this is the update of the target frame, i saw that it was not only made on events, but also on timer (every 0.75 sec), and that was about the frequency of the lags. as i wrote it up before, no lag if i have no targets. as soon as i was targetting gruul, i was running at about 2 to 3-4 fps. can't say anymore about the issue, maybe the buff update ?
I was noticing the exact same thing last night in Gruul's lair. It has only become an issue since 2.1 patch; it was 100% fine beforehand =( I'm looking into it right now as a priority and will get a fix up this weekend.
(Edit: If you happen to be in a raid this weekend, could you try commenting out line 368 (the call to HighlightDispellable) in the OnUpdate method in SUFCommon.lua? I'm not certain that's the ultimate culprit, but it could be.)
i wrote support for mobhealth 1 and 2. but while tonights raid (25 men), with both of them i had regular lags.
actually, the mod seems to be guilty :/ i commented everything i added about mobhealth support, leaving only the %age display, and i still had lags. i think this is the update of the target frame, i saw that it was not only made on events, but also on timer (every 0.75 sec), and that was about the frequency of the lags. as i wrote it up before, no lag if i have no targets. as soon as i was targetting gruul, i was running at about 2 to 3-4 fps. can't say anymore about the issue, maybe the buff update ?
Last edited by paflechien : 05-31-2007 at 06:40 PM.
i've been experiencing big lag issue in a 25-man raid and targetting a mob. i think this is due to the log parsing of that version (standalone r36591). however, i desactivated it, and recovered a much playable fps. i'll try to use the version included with mobinfo2, i never had a problem with that one.
i'm the kind of guy who can't wait to have a new feature, so i add it myself
i've locally added mobhealth3 support to display the health of mobs in the target frame. here's what the updatehealth function looks like :
Code:
UpdateHealth = function(frame)
if UnitExists(frame.unit) then
local currHealth, maxHealth, pctHealth, found
local healthStr
if(frame.health) then
if UnitIsDead(frame.unit) or UnitIsGhost(frame.unit) then
frame.health:SetTextColor(0.5, 0.5, 0.5)
frame.health:SetText("")
elseif not UnitIsConnected(frame.unit) then
frame.health:SetTextColor(0.5, 0.5, 0.5)
frame.health:SetText(SPF_OFFLINE)
else
currHealth = UnitHealth(frame.unit)
maxHealth = UnitHealthMax(frame.unit)
if(MobHealth3) then
currHealth, maxHealth, found = MobHealth3:GetUnitHealth(frame.unit, currHealth, maxHealth)
end
pctHealth = currHealth/maxHealth
if frame.healthNumbers then
if frame.deficit then
if( currHealth == maxHealth ) then
frame.health:SetText(string.format("%d", maxHealth))
else
frame.health:SetText(string.format("%d/%d", currHealth, currHealth - maxHealth))
end
else
if(UnitIsFriend("player", frame.unit)) then
frame.health:SetText(string.format("%d/%d", currHealth, maxHealth))
else
frame.health:SetText(string.format("%d (%d%%)", currHealth, floor(pctHealth*100)))
end
end
else
frame.health:SetText(string.format("%d%%", floor(100*pctHealth)))
end
if(pctHealth > 0.5) then
frame.health:SetTextColor(((-2*pctHealth)+2), 1, 0)
else
frame.health:SetTextColor(1, (2*pctHealth), 0)
end
end
end
end
in that code, i've modified the display of remaining HP in the target frame for an hostile mob, so i can see left HP and what percentage it represents. made that cause some mobs have something like 3000k HP (gruul for example), and i didn't want (and didn't find usefull ^^) to have the total HP displayed.
BTW, i've also added a deficit display for player, pet, and party members, which i find more efficient. just put
Code:
this.deficit = 1
in the OnLoad function of those frames
Last edited by paflechien : 05-27-2007 at 07:46 PM.
really great add-on, nothing is better than having a simple display of all needed infos.
however, the party frames are still there when i'm in a raid. i took a look at the code, but can't figure out where the problem can be... i've even removed the (HIDE_PARTY_INTERFACE == "1") but it didn't help.
edit : ok, i've seen that there was 2 functions with content commented (in SatrinaPartyFrame.lua), used to overload wow functions to hide/show party frames when in a raid. i uncommented everything, and also changed :
getglobal("SatrinaPartyMember"..i):
by
getglobal("SatrinaPartyMember"..i.."Content"):
in the 2 functions.
that's working fine
it seems that the update function in SatrinaPartyFrame.lua is useless. maybe for further content i think
Last edited by paflechien : 05-27-2007 at 07:19 PM.
i use fubar and i looked at your frames and i like what i see, but my question is can i move them from their default location? as it is now they show up under my fubar and its hard to read them, maybe that is becuase i have two bars at the top and one at the bottom, but i just wondered if i was missing something. thanks.