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