Originally Posted by 10leej
Cause I'd have to reapply the changes if Gello was to change it
|
Then simply add the EventRegister into the hookfunc.
Lua Code:
local w = CreateFrame("Frame")
function w:OnEvent(event, ...)
event == "PLAYER_FOCUS_CHANGED" then
FocusFrameToTPortraitModel:CreateBorder(8,1,1,1)
end
w:SetScript("OnEvent", w.OnEvent)
hooksecurefunc(Adapt, 'CreateModel', function(texture)
if texture:GetName() ~= "FocusFrameToTPortrait" then return end
FocusFrameToTPortraitModel:CreateBorder(8,1,1,1)
w:RegisterEvent("PLAYER_FOCUS_CHANGED")
end)