Modern TargetFrame adds features present in Modern WoW.
- StatusBar text for health and mana bars. Formatting is still controlled by Status Text under Interface Options > Display.
- Rare-Elites now show the Rare-Elite TargetFrame border. (Silver dragon with wings, normal rares are without wings)
- Threat indicator with numerical value.
Notes:
- The game identifies many normal elites as rares. I don't plan on modifying this behavior in any way.
- The threat indicator appears to spike whenever the target changes its target, usually by taunts or threat-related mechanics. This is a well-known bug in Blizzard's ThreatAPI.
Localization:
- enUS - Native locale by SDPhantom
- deDE - Translation by xF10w21
- frFR - Translation by Arektor
- ruRU - Translation by AmetistoFF
- zhCN - Translation by Junlin Zhou
If you wish to help localize Modern TargetFrame, send me a link to a modified Localization.lua.
Contact:
I'm open to questions and suggestions. Feel free to message me here or post in the comments.
I'm also available for support on the WoWUIDev Discord, @mention me (SDPhantom) or send a DM.
Still waiting for switcher to the bottom while buffs on top. Badly.
I don't plan on implementing features contrary to how the ThreatIndicators work on modern WoW. However, I'll point out the lines to change in ThreatIndicators.lua to move it down.
33: ThreatFrame:SetPoint("TOP",TargetFrame,"BOTTOM",-50,35);
39: ThreatFrame.Background:SetPoint("BOTTOM",0,3);
44: ThreatFrame.Text:SetPoint("BOTTOM",0,4);
49: border:SetTexCoord(0,0.765625,0.5625,0);
You can also delete the entire block of code starting at line 95 and ending on line 107. This shifts the buff display up to make room for the ThreatIndicator (exactly what happens on modern WoW).
Great addon, thanks. I see that you don't want to go full into unitframe mode with that project but...could you consider making those player and target frames movable ?
The Default UI already does this. Right-Click the UnitFrame and there's a "Move Frame" submenu near the bottom.
-
Yo great addon, anyway to make it work with ImprovedUnitframes? Togheter with IUF the health went from "3500" to "3500/3500" and i want the single back. Can i fix it anyhow?
The only thing I can find for "ImprovedUnitframes" is UnitFramesImproved, which appears to have been abandoned despite having many bugs reported, some of them serious. Long story short, Modern TargetFrame doesn't do anything with formatting, it just adds the text objects back where the Default UI is still looking for them.
/
Unfortunately not. Ignoring the fact that the artwork that serves a function itself isn't made to be detached from the frame, moving it up will collide with the "buffs on top" option of the TargetFrame and attaching it under will collide with other addons like ClassicCastBars. Attaching to the left doesn't work either as there's no way to reliably rotate text.
In reply to SDPhantomGamer:
I suppouse it accepteble if it will collide with ClassicCastBars. Autoswitch to the bottom when buffs on top option will be awesome.
Post-update threat figures do not match details and do not match actual threat figures.
The API provides two percentages, Details uses the normalized percentage to pull while the TargetFrame uses raw threat percentage. This is how the TargetFrame on modern WoW has always worked.
In reply to SDPhantomGamer:
it was using details threat before though.. and its only useful when using that api as the raw/blizzard threat meter is junk. i dont know if its junk on retail but its next to useless in classic. please change it back this is a great addon with it
They used the same threat library (libThreatClassic2), but still used the different outputs mentioned previously. Following Blizzard's reintroduction of the threat API, libThreatClassic2 was discontinued by its author. Speculation is Blizzard's trying to alleviate addon communications and their first target was RealMobHealth. RealMobHealth has since been added to the game's blacklist, which prevents the game from loading it. Following this chain of events, one might come to the conclusion that continued usage of external threat libraries might cause Blizzard to ban the addon using it. This is why libThreatClassic2 was discontinued.
Updated to the latest version, but no longer seeing the threat numeric display.
Or is it only shown when grouped, can't remember?
Generally, it only works when grouped. There needs to be at least two people on the threat list for the indicator to show, pets included.
Will you update this to use the new threat API?
Working on it.
Sorry but could u please help me with ModernTargetFrame Classic? It doesn't show me the numeric threat anymore...
Idk what changed but suddenly it's gone. I tried it all: delete cache/wtf + reinstall MTF but nothing. the red threat highlight is still there but not the numeric one
Interface Options > Display > Status Text is set to both
I use it together with Improved Blizzard UI but as said...it worked before. doesn't matter if I am solo or in a group. in world or in instances... it doesn't work
Thank you very much for ur help!
does threatclassic2 has to be activated? even if it is, it doesn't work...
ThreatClassic2 itself is working
I'll keep an eye out and see if I can catch this happening.
LibThreatClassic2 is included in Modern TargetFrame. This is the threat library shared with ThreatClassic2. Because it's a shared library, ThreatClassic2 does not need to be installed for the threat indicators to work, but it's useful in debugging the library itself.