Files
playlet-piped/playlet-lib/src/components/SponsorBlockNotification/SponsorBlockNotification.xml
T
Brahim Hadriche 9a631aab51 SponsorBlock categories (#70)
* SponsorBlock categories

* Remove faulty animation check

* Changelog
2023-05-19 18:19:26 -04:00

48 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<component name="SponsorBlockNotification" extends="Group">
<interface>
<field id="segment" type="assocarray" onChange="OnSegmentSet" />
<field id="action" type="string" onChange="OnActionSet" alwaysNotify="true"/>
</interface>
<children>
<Rectangle
width="250"
height="70"
color="#414141"
opacity="0.8">
<Poster
uri="libpkg:/images/LogoSponsorBlockSimple256px.png"
width="50"
height="50"
translation="[10,10]">
</Poster>
<Label
id="categoryLabel"
text="..."
font="font:SmallestBoldSystemFont"
lineSpacing="5"
horizAlign="center"
vertAlign="center"
wrap="true"
width="170"
height="70"
translation="[70,0]">
</Label>
</Rectangle>
<Animation
id="translationAnimation"
duration="0.3"
optional="true">
<Vector2DFieldInterpolator
id="translationAnimationInterpolator"
key="[0.0, 0.5, 1.0]"
keyValue="[ [1280.0, 20.0], [1140.0, 20.0], [1000.0, 20.0] ]"
fieldToInterp="SponsorBlockNotification.translation" />
</Animation>
<Timer
id="animationTimer"
duration="3"
/>
</children>
</component>