Files
playlet-piped/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.xml
T

114 lines
4.8 KiB
XML

<component name="ProfileRowListCell" extends="Group">
<interface>
<field id="itemContent" type="node" onChange="OnContentSet" />
<field id="letter" type="string" alias="LetterLabel.text" />
<field id="username" type="string" alias="UsernameLabel.text" />
<field id="serverUrl" type="string" alias="ServerLabel.text" />
<field id="circlePosterInnerUri" type="uri" alias="circlePosterInner.uri" />
<field id="circlePosterInnerBlendColor" type="uri" alias="circlePosterInner.blendColor" />
<field id="backendTypePosterUri" type="uri" alias="backendTypePoster.uri" />
<field id="UsernameLabelFont" type="boolean" alias="UsernameLabel.font" />
<field id="rowListHasFocus" type="boolean" onChange="OnRowListHasFocus" />
<field id="itemHasFocus" type="boolean" onChange="OnItemHasFocus" />
<field id="focusPercent" type="float" onChange="OnFocusPercent" />
<field id="circlePosterTranslation" type="vector2d" alias="circlePoster.translation" />
<field id="animate" type="boolean" onChange="OnAnimate" />
<field id="animationControl" type="string" alias="floatAnimation.control" />
<field id="shadowVisible" type="boolean" alias="shadowPoster.visible" />
<field id="crownVisible" type="boolean" alias="CrownPoster.visible" />
<field id="serverLabelVisible" type="boolean" alias="ServerLabel.visible" />
</interface>
<children>
<Font id="normalFont" uri="font:SystemFontFile" size="24" />
<Font id="boldFont" uri="font:MediumSystemFontFile" size="24" />
<Group translation="[20,50]">
<Group
id="shadowScaler"
translation="[100,20]">
<Group translation="[-100,-20]">
<Poster
id="shadowPoster"
uri="pkg:/images/white-circle.png"
blendColor="#000000"
width="200"
height="40"
translation="[0,200]"
visible="false">
</Poster>
</Group>
</Group>
<Poster
id="circlePoster"
width="160"
height="160"
translation="[20,20]"
blendColor="#DDDDDDFF"
uri="pkg:/images/white-circle.png">
<CirclePoster
id="circlePosterInner"
width="152"
height="152"
blendColor="#9696C8"
uri="pkg:/images/white-circle.png"
translation="[4,4]">
<Label
id="LetterLabel"
width="152"
height="152"
vertAlign="center"
horizAlign="center">
<Font role="font" uri="font:SystemFontFile" size="120" />
</Label>
<Poster
id="backendTypePoster"
width="60"
height="60"
translation="[110,110]"
/>
</CirclePoster>
<Poster
id="CrownPoster"
width="60"
height="60"
translation="[50,-60]"
uri="pkg:/images/icons/crown.png"
visible="false">
</Poster>
</Poster>
<Label
id="UsernameLabel"
width="200"
horizAlign="center"
translation="[0,250]">
</Label>
<Label
id="ServerLabel"
width="400"
horizAlign="center"
translation="[-100,310]"
visible="false">
<Font role="font" uri="font:SystemFontFile" size="18" />
</Label>
</Group>
<Animation
id="floatAnimation"
repeat="true"
duration="4"
easeFunction="inOutQuad">
<Vector2DFieldInterpolator
key="[ 0.0, 0.5, 0.55, 1.0 ]"
keyValue="[ [20,40], [20,10], [20,10], [20,40]]"
fieldToInterp="circlePoster.translation" />
<Vector2DFieldInterpolator
key="[ 0.0, 0.5, 0.55, 1.0 ]"
keyValue="[ [0.7,1], [1.05,1],[1.05,1] , [0.7,1] ]"
fieldToInterp="shadowScaler.scale" />
<FloatFieldInterpolator
key="[ 0.0, 0.5, 0.55, 1.0 ]"
keyValue="[0.3, 0.05 ,0.05, 0.3 ]"
fieldToInterp="shadowPoster.opacity" />
</Animation>
</children>
</component>