View Single Post
10-28-22, 03:20 PM   #6
Vranx
A Flamescale Wyrmkin
 
Vranx's Avatar
Join Date: May 2008
Posts: 101
Thanks! I came up with the following which did what I wanted.

Code:
function PlayerFrame_UpdateStatus()
	local statusTexture = PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.StatusTexture;
	if (IsResting()) then
		statusTexture:Hide();
		PlayerFrame_UpdatePlayerRestLoop(true);
	end
end

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