View Single Post
06-17-16, 05:15 AM   #5
liquidbase
A Warpwood Thunder Caller
 
liquidbase's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 97
Tested the function with some changes and a problem occur. The entire nameplate-script is here (@line 286 & @line 317). Changes I had made are:
  • removed the if-statements
  • removed local for nameplate
Positions are printed as should but the repostioning infight seems like is protected for the class-nameplate.

outfight with target:
Code:
NamePlate1 NamePlate1UnitFrame
CENTER table: 0000018DD96EB610 CENTER 0 0
infight with target:
Code:
NamePlate2 NamePlate2UnitFrame
Interface action failed because of an AddOn
Error message:
Code:
1x [ADDON_ACTION_BLOCKED] AddOn 'DuffedUI' tried to call the protected function 'NamePlate2:ClearAllPoints()'.
!BugGrabber\BugGrabber.lua:573: in function <!BugGrabber\BugGrabber.lua:573>
[C]: in function `ClearAllPoints'
...ceDuffedUI\modules\nameplates\nameplates.lua:291: in function <...ceDuffedUI\modules\nameplates\nameplates.lua:286>
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
...
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function `DefaultCompactNamePlateFrameSetupInternal'
FrameXML\CompactUnitFrame.lua:1748: in function `func'
FrameXML\CompactUnitFrame.lua:201: in function `CompactUnitFrame_SetUpFrame'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:68: in function `ApplyFrameOptions'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:57: in function `OnNamePlateAdded'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:24: in function <...eBlizzard_NamePlates\Blizzard_NamePlates.lua:18>

Locals:

Last edited by liquidbase : 06-17-16 at 05:22 AM.