added permashift support in displaychannel

This commit is contained in:
louis
2015-05-15 10:03:34 +02:00
parent 5a0155d1e9
commit 727f20617c
6 changed files with 34 additions and 1 deletions

View File

@@ -70,12 +70,19 @@
{duration} Total Duration of current Schedule in seconds
{elapsed} Elapsed time of current Schedule in seconds
{remaining} Remaining time of current Schedule in seconds
{permashift} true if permashift plugin is in use
{livebuffer} current buffered data in seconds
-->
<progressbar>
<area x="22%" y="87%" width="76%" height="3" layer="2">
<area condition="not{permashift}" x="22%" y="87%" width="76%" height="3" layer="2">
<drawrectangle x="0" y="1" width="100%" height="1" color="{clrWhite}" />
<drawrectangle x="0" y="0" width="{elapsed}/{duration}*{areawidth}" height="3" color="{clrTransBlueLight}" />
</area>
<area condition="{permashift}" x="22%" y="87%" width="76%" height="5" layer="2">
<drawrectangle x="0" y="2" width="100%" height="1" color="{clrWhite}" />
<drawrectangle x="{elapsed}/{duration}*{areawidth} - {livebuffer}/{duration}*{areawidth}" y="0" width="{livebuffer}/{duration}*{areawidth}" height="5" color="{clrRed}" />
<drawrectangle x="0" y="1" width="{elapsed}/{duration}*{areawidth}" height="3" color="{clrTransBlueLight}" />
</area>
</progressbar>
<!-- Available Variables statusinfo: