jf-roku/components/liveTv/ProgramDetails.xml

87 lines
5.0 KiB
XML
Raw Normal View History

2020-11-23 17:13:57 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<component name="ProgramDetails" extends="JFGroup">
<children>
<!-- Selected Item Details -->
<maskGroup id="backgroundMask" maskUri="pkg:/images/backgroundmask.png" translation="[1320, 150]" maskSize="[500,375]">
<Poster id="image" height="375" width="500" loadDisplayMode="scaleToFit" />
</maskGroup>
<Group id="detailsView" visible="false">
2020-11-23 17:13:57 +00:00
<Group translation = "[ 96, 160 ]">
<LayoutGroup itemSpacings="[4,20, 20, 20, 40]">
<Label id="programName" font="font:LargeBoldSystemFont" />
<LayoutGroup id="episodeDetailsGroup" layoutDirection="horiz" itemSpacings="[10]">
<Group id="isLive">
<Poster id="isLiveBackground" uri="pkg:/images/white.9.png" blendColor="#FF0000" />
<Label id="isLiveText" text="Live" font="font:SmallestBoldSystemFont" translation="[8,4]" />
</Group>
<Group id="isRepeat">
<Poster id="isRepeatBackground" uri="pkg:/images/white.9.png" blendColor="#009688" />
<Label id="isRepeatText" text="Repeat" font="font:SmallestBoldSystemFont" translation="[8,4]" />
</Group>
<Label id="episodeNumber" font="font:SmallSystemFont" />
<Label id="episodeTitle" font="font:SmallSystemFont" />
</LayoutGroup>
<LayoutGroup layoutDirection="horiz" itemSpacings="[30]">
<Label id="duration" />
<Label id="broadcastDetails" />
<Label id="channelName" />
</LayoutGroup>
<label id="overview" wrap="true" width="1210" font="font:SmallestSystemFont" />
2022-01-05 03:36:21 +00:00
<LayoutGroup layoutDirection="horiz" itemSpacings="[30]">
<!-- View Channel button -->
<Group id="viewChannelButton" opacity="0">
<Poster id="viewChannelButtonBackground" uri="pkg:/images/white.9.png" blendColor="#006fab" />
<Poster id="viewChannelOutline" visible="false" uri="pkg:/images/hd_focus.9.png" />
<Label id="viewChannelButtonLabel" text="View Channel" translation="[20,20]" />
2022-01-05 03:36:21 +00:00
</Group>
<!-- Record button -->
<Group id="recordButton" opacity="0">
<Poster id="recordButtonBackground" uri="pkg:/images/white.9.png" blendColor="#006fab" />
<Poster id="recordOutline" visible="false" uri="pkg:/images/hd_focus.9.png" />
<Label id="recordButtonLabel" text="Record" translation="[20,20]" />
2022-01-05 03:36:21 +00:00
</Group>
<!-- Record Series button-->
<Group id="recordSeriesButton" opacity="0">
<Poster id="recordSeriesButtonBackground" uri="pkg:/images/white.9.png" blendColor="#006fab" />
<Poster id="recordSeriesOutline" visible="false" uri="pkg:/images/hd_focus.9.png" />
<Label id="recordSeriesButtonLabel" text="Record Series" translation="[20,20]" />
</Group>
2022-01-05 03:36:21 +00:00
</LayoutGroup>
2020-11-23 17:13:57 +00:00
</LayoutGroup>
</Group>
</Group>
<!-- When no schedule information to display -->
<LayoutGroup id="noInformation" translation="[96, 300]">
<Label id="noInfoChannelName" font="font:LargeBoldSystemFont" />
<Label font="font:SmallSystemFont" text="No schedule information" />
</LayoutGroup>
2020-11-23 17:13:57 +00:00
<Animation id="focusAnimation" duration="0.66" repeat="false" easeFunction="linear" >
2022-01-05 03:36:21 +00:00
<FloatFieldInterpolator id="viewChannelFocusAnimationOpacity" key="[0.0, 1]" fieldToInterp="viewChannelButton.opacity" />
<FloatFieldInterpolator id="recordFocusAnimationOpacity" key="[0.0, 1]" fieldToInterp="recordButton.opacity" />
<FloatFieldInterpolator id="recordSeriesFocusAnimationOpacity" key="[0.0, 1]" fieldToInterp="recordSeriesButton.opacity" />
2020-11-23 17:13:57 +00:00
</Animation>
</children>
<interface>
<field id="WatchSelectedChannel" type="boolean" value="false" />
2022-01-05 03:50:45 +00:00
<field id="recordSelectedChannel" type="boolean" value="false" />
<field id="recordSeriesSelectedChannel" type="boolean" value="false" />
<field id="channel" type="node" onchange="channelUpdated" />
2020-11-23 17:13:57 +00:00
<field id="programDetails" type="node" onchange="programUpdated" />
<field id="height" type="integer" />
<field id="hasFocus" type="boolean" onChange="focusChanged" />
</interface>
<script type="text/brightscript" uri="ProgramDetails.brs" />
<script type="text/brightscript" uri="pkg:/source/utils/misc.brs" />
</component>