View Single Post
05-07-19, 07:02 AM   #10
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by jeruku View Post
Think it falls under floating combat text. You can find the setting under Combat in the Interface settings.
The XP text is actually an object in the game world. If you move around while it's up, it moves with your perspective of the same spot on the ground.

While nameplates do something similar, they don't respond to depth. They use a position translated to 2D screen coordinates.



PS: Thinking about nameplates, here's an idea. Turn them on and use addon code to hide them. The idea is nameplates replace the name text above units. If the game thinks you're using them, then hide them manually, it should work with some limitations still.

Update: This idea seems to work so far using the following code. (I have nameplates manually turned on)
Lua Code:
  1. NamePlateDriverFrame:UnregisterAllEvents();--   Unregister all nameplate events
  2. NamePlateDriverFrame:SetScript("OnEvent",nil);--    Nuke OnEvent script
  3.  
  4. for _,frame in ipairs(C_NamePlate.GetNamePlates()) do-- Scan for existing nameplates
  5.     if frame.UnitFrame then frame.UnitFrame:Hide(); end--   Hide any attached unitframes
  6. end
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 05-07-19 at 07:35 AM.
  Reply With Quote