- Moderator
- #1
Problem:
You cannot animate the control (ID 4) in TVOverlay.xml, because this window never reads animations or acts upon conditional visibility.
Solution:
Expose recording status to skin globally. This way you can animate controls based on recording status.
This small patch will set #TV.View.isrecording to "yes" or "no", depending on the recording status, set directly from the TVOverlay.cs file.
This patch does not change default behaviour. It is compied against TV-Server (TVPlugin) SVN 26774 but nothing here has changed in decades
You cannot animate the control (ID 4) in TVOverlay.xml, because this window never reads animations or acts upon conditional visibility.
Solution:
Expose recording status to skin globally. This way you can animate controls based on recording status.
This small patch will set #TV.View.isrecording to "yes" or "no", depending on the recording status, set directly from the TVOverlay.cs file.
This patch does not change default behaviour. It is compied against TV-Server (TVPlugin) SVN 26774 but nothing here has changed in decades
Code:
Index: TVOverlay.cs
===================================================================
--- TVOverlay.cs (revision 26810)
+++ TVOverlay.cs (working copy)
@@ -67,10 +67,12 @@
if (render)
{
QueueAnimation(AnimationType.WindowOpen);
+ GUIPropertyManager.SetProperty("#TV.View.isrecording", "yes");
}
else
{
QueueAnimation(AnimationType.WindowClose);
+ GUIPropertyManager.SetProperty("#TV.View.isrecording", "no");
}
}
}