add setAnimationFrame
This commit is contained in:
@@ -70,6 +70,8 @@ abstract class FilamentController {
|
||||
Future<List<String>> getAnimationNames(FilamentAsset asset);
|
||||
Future removeAsset(FilamentAsset asset);
|
||||
Future clearAssets();
|
||||
Future setAnimationFrame(
|
||||
FilamentAsset asset, int animationIndex, int animationFrame);
|
||||
Future playAnimation(FilamentAsset asset, int index,
|
||||
{bool loop = false, bool reverse = false});
|
||||
Future playAnimations(FilamentAsset asset, List<int> indices,
|
||||
@@ -332,6 +334,12 @@ class PolyvoxFilamentController extends FilamentController {
|
||||
await _channel.invokeMethod("playAnimation", [asset, index, loop, reverse]);
|
||||
}
|
||||
|
||||
Future setAnimationFrame(
|
||||
FilamentAsset asset, int index, int animationFrame) async {
|
||||
await _channel
|
||||
.invokeMethod("setAnimationFrame", [asset, index, animationFrame]);
|
||||
}
|
||||
|
||||
Future playAnimations(FilamentAsset asset, List<int> indices,
|
||||
{bool loop = false, bool reverse = false}) async {
|
||||
return Future.wait(indices.map((index) {
|
||||
|
||||
Reference in New Issue
Block a user