WoWInterface - View Single Post - oUF for nameplate creation?
View Single Post
10-26-16, 10:22 AM   #16
A Pyroguard Emberseer
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,739
Of course they can be clicked! One very important thing though. Your nameplate unitframe must not be clickable! Do not register this for units of type nameplate!

Lua Code:
  1. --SetupHeader
  2. local function SetupHeader(self)
  3.   if not self.settings.setupHeader then return end
  4.   self:RegisterForClicks("AnyDown")
  5.   self:SetScript("OnEnter", UnitFrame_OnEnter)
  6.   self:SetScript("OnLeave", UnitFrame_OnLeave)
  7. end
  8. L.F.SetupHeader = SetupHeader


The nameplate base is clickable, that is all we need.
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-26-16 at 10:25 AM.
  Reply With Quote