awtk/design/default/ui/animator_fscript.xml
2023-08-23 07:36:49 +08:00

34 lines
1.3 KiB
XML

<window>
<image name="move" image="logo" x="0" y="0" w="100%" h="80" animation="move(y_from=0, y_to=128, duration=1000, delay=3000, name=move1)" >
<property name="on:widget_animator_end">
print("widget_animator_end:", animator_name);
</property>
<property name="on:widget_animator_start">
print("widget_animator_start:", animator_name);
</property>
</image>
<progress_bar name="value" x="center" y="middle" w="90%" h="40">
<property name="on:widget_animator_once">
print("widget_animator_once:", animator_name);
</property>
<property name="on:widget_animator_start">
print("widget_animator_start:", animator_name);
</property>
<property name="animation">
value(from=50, to=100, yoyo_times=1000, duration=1000, delay=4000, name=value1)
</property>
</progress_bar>
<image name="fade" image="logo" x="center" y="bottom" w="100%" h="80" opacity="0">
<property name="on:widget_animator_end">
print("widget_animator_end:", animator_name);
</property>
<property name="on:widget_animator_start">
print("widget_animator_start:", animator_name);
</property>
<property name="animation">
opacity(from=50, to=255, duration=1000, delay=1000, name=fade1)
</property>
</image>
<button name="close" x="center" y="bottom:10" w="25%" h="30" text="Close"/>
</window>