UltimateUI guide
How to Add an Animated Image
The latest update introduced support for animated images. To add one, follow the steps below.
Adding Animation Frames
First, you need to add a sequence of images that will be played one after another.
Place all animation frames inside:
plugins/UltimateUI/contents/images/animations/example/It is recommended to name the frames sequentially for ex.
1.png,2.png,3.png...Adding the Animation to a File
Next, add the animation to your .yml file. The syntax is very similar to a regular image element, but you need to add a few additional properties.
frames: animations/exampleThis specifies the folder from which the animation frames will be loaded.
interval-ms: 50This determines how often the animation switches to the next frame.
animation-loop: falseThis determines whether the animation should start again after reaching the final frame.
Full example#
Below is a complete example of an animated image element:
blocks:
- type: image
id: animated_img
name: Example Animation
layer: 1
image: animations_example_1
frames: animations/example
interval-ms: 50
animation-loop: false
position:
x: 0
y: 0
size:
width: 1000
height: 1000