jf-roku/components/Buttons/JFButtons.xml

28 lines
1.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2020-08-08 20:43:37 +00:00
<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
<LayoutGroup id="buttonGroup" layoutDirection="horiz" itemSpacings="[75]" translation="[50,20]">
2020-08-17 15:48:23 +00:00
</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">
<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" />
<Vector2DFieldInterpolator id="focusLocation" key="[0.0, 1.0]" keyValue="[]" fieldToInterp="focus.translation" />
2020-08-17 15:48:23 +00:00
</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" onChange="selectedIndexChanged" />
2020-08-08 20:43:37 +00:00
</interface>
</component>