Thread Tools Display Modes
01-05-23, 08:14 AM   #1
Mandraxon
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2009
Posts: 21
BLizzard nameplate castbar font

Hello fellow wow ui moders.
i have a small code request.
i am looking for a code that alows me to chnage the font size of the blizzard nameplate castbars.

any know how this is done?
  Reply With Quote
01-05-23, 10:53 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
Haven't tested it, but I believe this should do the trick. I don't know if forbidden frames would block access to fontstrings, let me know if it does and I can tweak it to avoid them.
Lua Code:
  1. hooksecurefunc(NamePlateDriverFrame,"ApplyFrameOptions",function(_,nameplatebase)
  2.     local castbartext=nameplatebase.UnitFrame.castBar.Text;
  3.     castbartext:SetHeight(0);-- Remove height limit so vertical truncation doesn't happen
  4.     castbartext:SetTextHeight(8);-- Set to whatever size you want
  5. end);

(Answer to same request via PM)
__________________
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 : 01-05-23 at 12:32 PM. Reason: Updated to hook NamePlateDriverFrame:ApplyFrameOptions()
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » BLizzard nameplate castbar font

Thread Tools
Display Modes

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