View Single Post
10-29-22, 07:22 PM   #8
Vranx
A Flamescale Wyrmkin
 
Vranx's Avatar
Join Date: May 2008
Posts: 101
Like this?
Code:
hooksecurefunc("PlayerFrame_UpdateStatus", function(self)
	local statusTexture = PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.StatusTexture;
	if (IsResting()) then
		statusTexture:Hide();
		PlayerFrame_UpdatePlayerRestLoop(true);
	end
end)

hooksecurefunc("PlayerFrame_UpdatePlayerRestLoop", function(state)
	local playerRestLoop = PlayerFrame.PlayerFrameContent.PlayerFrameContentContextual.PlayerRestLoop;
	if(state) then
		playerRestLoop:Hide();
		playerRestLoop.PlayerRestLoopAnim:Stop();
	end
end)
  Reply With Quote