Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-28-18, 02:18 AM   #1
seyan777
An Aku'mai Servant
Join Date: Feb 2017
Posts: 35
I would like to remove default nameplate's buff frame

Hi,

I would like to remove default nameplate's buff frame and make myself a custom buff frame.

Lua Code:
  1. local function ModifyNamePlate()
  2.     NamePlateDriverFrame:HookScript("OnEvent", function(self, event, ...)
  3.         if (event == "NAME_PLATE_CREATED") then
  4.             local nameplate = ...
  5.             if (nameplate and nameplate.UnitFrame) then
  6.                 local buffFrame = nameplate.UnitFrame.BuffFrame
  7.                 if (buffFrame) then
  8.                     buffFrame:UnregisterAllEvents()
  9.                     buffFrame = nil
  10.                 end
  11.             end
  12.         end
  13.     end)
  14. end

I thought this would remove the frame, but it didn't...

What would have I done wrong ?

Last edited by seyan777 : 10-28-18 at 09:47 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » I would like to remove default nameplate's buff frame


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