SpriteSequence QML Type

Draws a sprite animation. 更多...

import 语句: import QtQuick
继承:

Item

特性

方法

详细描述

SpriteSequence renders and controls a list of animations defined by Sprite 类型。

For full details, see the 子画面动画 概述。

另请参阅 Sprite animations with SpriteSequence .

特性文档编制

currentSprite : string [read-only]

The name of the Sprite that is currently animating.

goalSprite : string

The name of the Sprite that the animation should move to.

Sprite states have defined durations and transitions between them; setting goalSprite will cause it to disregard any path weightings (including 0 ) and head down the path that will reach the goalSprite quickest (fewest animations). It will pass through intermediate states on that path, and animate them for their duration.

If it is possible to return to the goalSprite from the starting point of the goalSprite , it will continue to do so until goalSprite 被设为 "" or an unreachable state.

interpolate : bool

true , interpolation will occur between sprite frames to make the animation appear smoother.

默认为 true .

running : bool

Whether the sprite is animating or not.

默认为 true .

sprites : list < Sprite > [read-only]

The sprite or sprites to draw. Sprites will be scaled to the size of this item.

方法文档编制

jumpTo ( string sprite )

此函数导致 SpriteSequence to jump to the specified sprite immediately; intermediate sprites are not played.