Update yaml parse test/testAnimationYaml.yaml

This commit is contained in:
cisco 2024-02-19 18:59:34 +01:00
parent a943d59b86
commit 7f982b0894

View file

@ -31,6 +31,83 @@ animations:
# Additional comments or configuration options for Animation1 can go here.
# For example, you can specify the duration, sound effects, or other details.
- name: set closed
description: Animation to close eyes
loop_count: 1
trigger: Butn_0001_0001
overrideable: true
graphics:
- type: transition
to_file: eyesClosed_neutral.png
duration: 10
- name: set confusion
description: Animation to be confused
loop_count: 1
trigger: Butn_0002_0001
overrideable: true
graphics:
- type: transition
to_file: dizzyFace.png
duration: 10
- name: set angry
description: Animation to be confused
loop_count: 1
trigger: Butn_0003_0001
overrideable: true
graphics:
- type: transition
to_file: angryFace.png
duration: 10
- name: set love
description: Animation for love eyes
loop_count: 1
trigger: Butn_0004_0001
overrideable: true
graphics:
- type: transition
to_file: loveFace.png
duration: 10
- name: reset to blink
description: Animation for blinking
loop_count: 1
trigger: Butn_0004_0001
overrideable: true
graphics:
- type: transition # close the eye from whatever the current state
to_file: eyesClosed_neutral.png
duration: 6
- type: image # hold eye closed
source_file: eyesClosed_neutral.png
duration: 10
- type: transition # open the eye again from being closed
to_file: neutral.png
duration: 6
- type: image # hold eye closed
source_file: neutral.png
duration: 400
- name: blink
description: Animation for blinking
loop_count: 1
@ -52,8 +129,8 @@ animations:
to_file: neutral.png
duration: 6
- name: openEye
description: Animation for blinking
- name: boot
description: boot with blinking
loop_count: 1
trigger: boot
@ -61,35 +138,18 @@ animations:
overrideable: true # blink can be interupted at any time
graphics:
- type: transition # close the eye from whatever the current state
to_file: eyesClosed_neutral.png
duration: 6
- type: image # hold eye closed
source_file: eyesClosed_neutral.png
duration: 1
duration: 10
- type: transition
to_file: dizzyFace.png
duration: 10
- type: transition
to_file: angryFace.png
duration: 10
- type: transition
to_file: loveFace.png
duration: 10
- type: transition
to_file: neutral.png
duration: 10
- name: make dizzy
description: Animation for making dizzy
loop_count: 1
trigger: Butn_0002_0001
overrideable: true # blink can be interupted at any time
graphics:
- type: transition # open the eye again from being closed
to_file: dizzyFace.png
duration: 5
to_file: neutral.png
duration: 6
- type: image # hold eye closed
source_file: neutral.png
duration: 400