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.
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
Thanks a lot, I'll look into it!
|All times are GMT -6. The time now is 11:11 PM.|
vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI