View Single Post
05-02-11, 02:27 AM   #14
dafft
A Murloc Raider
Join Date: Apr 2011
Posts: 8
Have tried the change & it works to a degree. It sets the nameplates to what they were originally however several errors crop up.

FYI - I set mine to hide elite border & casting & I get the following errors
Code:
Interface\AddOns\Nameplates\Nameplates.lua:63: in function `SetupHiding'
Interface\AddOns\Nameplates\Nameplates.lua:87: in function `OnShow'
Interface\AddOns\Nameplates\Nameplates.lua:166: in function <Interface\AddOns\Nameplates\Nameplates.lua:152>
Interface\AddOns\Nameplates\Nameplates.lua:182: in function <Interface\AddOns\Nameplates\Nameplates.lua:179>
I know I'm asking a lot but.....
line 63
Code:
function Nameplates:SetupHiding(texture, type)
	if( self.db.profile[type] ) then
		texture:Hide()
Line 87
Code:
self:SetupHiding(mobIcon, "hideElite")
Line 152 > 166
Code:
local function hookFrames(...)
	local self = Nameplates
	for i=1, select("#", ...) do
		local frame = select(i, ...)
		local region = frame:GetRegions()
		if( not frames[frame] and region and region:GetObjectType() == "Texture" and region:GetTexture() == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" ) then
			frames[frame] = true

			local health, cast = frame:GetChildren()
			
			self:CreateText(health)
			self:HookScript(health, "OnValueChanged", "HealthOnValueChanged")
			self:HookScript(health, "OnShow", "OnShow")
			self:HealthOnValueChanged(health, health:GetValue())
			self:OnShow(health)
Line 179 > 182
Code:
frame:SetScript("OnUpdate", function(self, elapsed)
	if( WorldFrame:GetNumChildren() ~= numChildren ) then
		numChildren = WorldFrame:GetNumChildren()
		hookFrames(WorldFrame:GetChildren())
On a side note - I'll give a small Thank You donation to the person who gets Nameplate Modifier working.

Last edited by dafft : 05-02-11 at 03:53 AM.
  Reply With Quote