Simple custom nameplates - WoWInterface
Thread Tools Display Modes
01-25-19, 01:43 PM   #1
A Fallenroot Satyr
Join Date: Mar 2018
Posts: 23
Simple custom nameplates

I'm trying to figure out how to replace Blizzard's enemy nameplates with my own ones. I know how to create frames, but I can't understand how to hook my frames, so they will replace Blizzard nameplates. Is there some article or simple addon I can look into? I tried to read Blizzard_NamePlates.lua but it seems that there's too much going on there. I need some simple code to start, just simple colored rectangle would be more than enough, then I can tinker from there.
  Reply With Quote
01-26-19, 04:06 AM   #2
A Cyclonian
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 48
1) kill everything : NamePlateDriverFrame:UnregisterAllEvents()
InterfaceOptionsNamesPanelUnitNameplatesMakeLarger.setFunc = nil

2) "NAME_PLATE_CREATED" function(self, event, frame )

3) "NAME_PLATE_UNIT_ADDED" function(self, event, unit)

local frame = C_NamePlate.GetNamePlateForUnit(unit)

4) "NAME_PLATE_UNIT_REMOVED" function(self, event, unit)

and look at blizzard source code

other important functions are :


to set the clickable size of the nameplates

Last edited by Taudier : 01-26-19 at 04:26 AM.
  Reply With Quote
01-26-19, 06:38 AM   #3
A Fallenroot Satyr
Join Date: Mar 2018
Posts: 23
Thanks a lot, I'll look into it!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Simple custom nameplates

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