mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
nameplate: use same nil function for all plates
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
local function nilfunc() return nil end
|
||||
local font = C.nameplates.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default
|
||||
local font_size = C.nameplates.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
|
||||
local inactive_alpha = tonumber(C.nameplates.notargalpha)
|
||||
@@ -53,7 +54,8 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
this.nameplate = CreateFrame("Button", nil, this)
|
||||
this.nameplate.parent = this
|
||||
this.healthbar, this.castbar = this:GetChildren()
|
||||
this.healthbar:SetScript("OnEnter", function() return nil end)
|
||||
this.healthbar:SetScript("OnEnter", nilfunc)
|
||||
|
||||
for i, frame in pairs({this:GetRegions()}) do
|
||||
if NAMEPLATE_OBJECTORDER[i] == "_" then
|
||||
frame.Show = function() return end
|
||||
|
||||
Reference in New Issue
Block a user