jf-roku/components/Buttons/JFButtons.xml

30 lines
1.2 KiB
XML
Raw Normal View History

2020-08-08 20:43:37 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<component name="JFButtons" extends="Group">
<children>
<Group>
2020-08-17 15:48:23 +00:00
<!-- Background Bar -->
<Poster id="menubg" uri="pkg:/images/option-menu-bg.9.png" width="800" height="100" />
2020-08-08 20:43:37 +00:00
2020-08-17 15:48:23 +00:00
<rectangle id="focus" />
2020-08-08 20:43:37 +00:00
2020-08-17 15:48:23 +00:00
<LayoutGroup id="buttonGroup" layoutDirection="horiz" itemSpacings = "[75]" translation="[50,20]">
</LayoutGroup>
2020-08-08 20:43:37 +00:00
2020-08-17 15:48:23 +00:00
<Animation id="moveFocusAnimation" duration="0.25" repeat="false" easeFunction="outQuad">
2020-08-08 20:43:37 +00:00
<FloatFieldInterpolator id = "focusWidth" key="[0.0, 1.0]" keyValue="[ 0.00, 0.25 ]" fieldToInterp="focus.width" />
<FloatFieldInterpolator id = "focusHeight" key="[0.0, 1.0]" keyValue="[ 0.25, 0.00 ]" fieldToInterp="focus.height" />
2020-08-17 15:48:23 +00:00
<Vector2DFieldInterpolator id = "focusLocation" key="[0.0, 1.0]" keyValue="[]" fieldToInterp="focus.translation" />
</Animation>
2020-08-08 20:43:37 +00:00
</Group>
</children>
<interface>
<field id="buttons" type="array" onChange="updateButtons" />
<field id="focusedChild" type="node" onChange="focusChanged" />
<field id="focusedIndex" type="integer" alwaysNotify="true" />
<field id="selectedIndex" type="integer" />
</interface>
<script type="text/brightscript" uri="JFButtons.brs" />
</component>