- i am hoping you all know of a way around the issue here but basically i keep getting an error
tried to call the protected function 'TargetFrame:SetPoint()'.
you will see a line in the core.lua script that mentions 'filthy hack'
- this was added to stop the error from happening after a lot of failed tests which prevented securely updating the position, such as the following; which was ultimately removed since it doesn't solve anything
local f = _G['TargetFrame']
hooksecurefunc( f, 'SetPoint', function( self )
--TargetFrameHealthBar:SetStatusBarColor( 1,0,1 )
--hooksecurefunc( f, 'PlayerFrame_ResetPosition', function( self )
local _ap, _, _relp, _x = self:GetPoint( )
if _ap ~= frame_settings.target.anchor_point or _relp ~= frame_settings.target.relative_point or jlelz:round( tonumber( _x ) ) ~= frame_settings.target.x then
self:SetPoint( frame_settings.target.anchor_point, UIParent, frame_settings.target.relative_point, frame_settings.target.x, frame_settings.target.y )
i attempted to update the code.. a few times, in hopes i'd eventually understand the nuances of something like hooksecurefunc to get past this issue to no avail. if you all have any tips, i'd be grateful <3
Last edited by jadiilelz : 10-05-19 at 02:11 PM.