updated metrixhd thx@saman

This commit is contained in:
louis
2016-06-25 06:35:48 +02:00
parent 3391710b8d
commit c4c4a10909
8 changed files with 268 additions and 134 deletions

View File

@@ -43,7 +43,7 @@
</area>
</sortmode>
<menuitems x="0" y="10%" orientation="vertical" width="100%" height="82%" align="center" numlistelements="14">
<menuitems x="0" y="10%" orientation="vertical" width="100%" height="82%" align="center" numlistelements="{listitemsmax}">
<listelement>
<!-- Background -->
<area x="1%" width="58%" layer="2">
@@ -61,8 +61,8 @@
<!-- recording item -->
<areacontainer condition="not{folder}++not{current}">
<area x="1%" width="51%" layer="3">
<drawtext x="10" valign="center" font="{light}" fontsize="85%" color="{fontdefault}" text="{printf('%02d.%02d.%d', daynumeric, month, year)} {time}" />
<drawtext x="35%" valign="center" font="{light}" fontsize="85%" color="{fontdefault}" text="{name}" />
<drawtext name="recdate" x="10" valign="center" font="{light}" fontsize="85%" color="{fontdefault}" text="{printf('%02d.%02d.%d', daynumeric, month, year)} {time}" />
<drawtext x="{posx(recdate)} + {width(recdate)} + 30" valign="center" font="{light}" fontsize="85%" color="{fontdefault}" text="{name}" />
</area>
<area x="1%" width="58%" layer="4">
<drawimage condition="{new}" name="new" imagetype="icon" path="ico_new" x="{areawidth} - {areaheight}" width="0.9*{areaheight}" height="0.9*{areaheight}" valign="center" />
@@ -73,8 +73,8 @@
<areacontainer condition="not{folder}++{current}">
<areascroll scrollelement="menutext" x="1%" width="51%" mode="forthandback" orientation="horizontal" delay="2000" scrollspeed="medium" layer="3">
<drawtext x="10" valign="center" font="{light}" fontsize="85%" color="{fontactive}" text="{printf('%02d.%02d.%d', daynumeric, month, year)} {time}" />
<drawtext name="menutext" x="35%" valign="center" font="{light}" fontsize="85%" color="{fontactive}" text="{name}" />
<drawtext name="recdate" x="10" valign="center" font="{light}" fontsize="85%" color="{fontactive}" text="{printf('%02d.%02d.%d', daynumeric, month, year)} {time}" />
<drawtext name="menutext" x="{posx(recdate)} + {width(recdate)} + 30" valign="center" font="{light}" fontsize="85%" color="{fontactive}" text="{name}" />
</areascroll>
<area x="1%" width="58%" layer="4">
<drawimage condition="{new}" name="new" imagetype="icon" path="ico_new_active" x="{areawidth} - {areaheight}" width="0.9*{areaheight}" height="0.9*{areaheight}" valign="center" />
@@ -134,21 +134,28 @@
</areacontainer>
</listelement>
<currentelement delay="0" fadetime="{fadetimecurrent}">
<area x="5%" y="0" width="90%" height="61%" layer="2">
<!-- scraper poster -->
<drawimage condition="{hasposter}" name="poster" imagetype="image" path="{posterpath}" x="1%" y="2%" width="{areaheight}*0.96 * {posterwidth} / {posterheight}" height="96%"/>
<!-- header -->
<drawtext condition="{hasposter}" name="title" x="{width(poster)} + 0.04*{areawidth}" y="0" font="{semibold}" fontsize="10%" color="{fontactive}" text="{epgname}" />
<drawtext condition="{hasposter}" name="shorttext" x="{width(poster)} + 0.04*{areawidth}" y="{height(title)}" width="0.96*{areawidth} - {width(poster)}" font="{semibold}" fontsize="8%" color="{fontactive}" text="{shorttext}" />
<drawtext condition="{hasposter}" name="datetime" x="{width(poster)} + 0.04*{areawidth}" y="{posy(shorttext)} + {height(shorttext)}" font="{light}" fontsize="7%" color="{fontactive}" text="{date} {time}, {duration} min" />
<drawtext condition="not{hasposter}" name="title" x="2%" y="0" font="{semibold}" fontsize="10%" color="{fontactive}" text="{epgname}" />
<drawtext condition="not{hasposter}" name="shorttext" x="2%" y="{height(title)}" width="98%" font="{semibold}" fontsize="8%" color="{fontactive}" text="{shorttext}" />
<drawtext condition="not{hasposter}" name="datetime" x="2%" y="{posy(shorttext)} + {height(shorttext)}" font="{light}" fontsize="7%" color="{fontactive}" text="{date} {time}, {duration} min" />
<!-- description -->
<drawtextbox condition="{hasposter}" x="{width(poster)} + 0.04*{areawidth}" y="{posy(datetime)} + {height(datetime)} + 10" width="{areawidth}*0.94 - {width(poster)}" height="{areaheight}*0.92 - {posy(datetime)}" font="{light}" fontsize="7%" color="{fontactive}" text="{description}" />
<drawtextbox condition="not{hasposter}" x="2%" y="{posy(datetime)} + {height(datetime)} + 10" width="{areawidth}*0.98" height="{areaheight}*0.92 - {posy(datetime)}" font="{light}" fontsize="7%" color="{fontactive}" text="{description}" />
</area>
<areacontainer condition="not{hasposter}">
<area x="5%" y="0" width="90%" height="61%" layer="2">
<!-- header -->
<drawtext name="title" x="2%" y="0" font="{semibold}" fontsize="12%" color="{fontactive}" text="{epgname}" />
<drawtext name="shorttext" x="2%" y="{height(title)}" width="98%" font="{semibold}" fontsize="10%" color="{fontactive}" text="{shorttext}" />
<drawtext name="datetime" x="2%" y="{posy(shorttext)} + {height(shorttext)}" font="{light}" fontsize="9%" color="{fontactive}" text="{date} {time}, {duration} min" />
<!-- description -->
<drawtextbox name="desc" x="2%" y="{posy(datetime)} + {height(datetime)} + 10" width="{areawidth}*0.98" height="{areaheight}*0.92 - {posy(datetime)}" font="{light}" fontsize="9%" color="{fontactive}" text="{description}" />
</area>
</areacontainer>
<areacontainer condition="{hasposter}">
<area x="5%" y="0" width="90%" height="61%" layer="2">
<!-- scraper poster -->
<drawimage name="poster" imagetype="image" path="{posterpath}" x="1%" y="2%" width="{areaheight}*0.96 * {posterwidth} / {posterheight}" height="96%"/>
<!-- header -->
<drawtext name="title" x="{width(poster)} + 0.04*{areawidth}" y="0" font="{semibold}" fontsize="12%" color="{fontactive}" text="{epgname}" />
<drawtext name="shorttext" x="{width(poster)} + 0.04*{areawidth}" y="{height(title)}" width="0.96*{areawidth} - {width(poster)}" font="{semibold}" fontsize="10%" color="{fontactive}" text="{shorttext}" />
<drawtext name="datetime" x="{width(poster)} + 0.04*{areawidth}" y="{posy(shorttext)} + {height(shorttext)}" font="{light}" fontsize="9%" color="{fontactive}" text="{date} {time}, {duration} min" />
<!-- description -->
<drawtextbox name="desc" x="{width(poster)} + 0.04*{areawidth}" y="{posy(datetime)} + {height(datetime)} + 10" width="{areawidth}*0.94 - {width(poster)}" height="{areaheight}*0.92 - {posy(datetime)}" font="{light}" fontsize="9%" color="{fontactive}" text="{description}" />
</area>
</areacontainer>
</currentelement>
</menuitems>