Add animations: box, cry, read, hack (#990)

* Add animations: box, cry, read, hack
* Desktop: unload animation if application is already started

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Albert Kharisov 2022-02-10 23:06:45 +04:00 committed by GitHub
parent 21ac37a6f6
commit 2c616983cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
69 changed files with 318 additions and 7 deletions

View File

@ -87,6 +87,12 @@ void desktop_scene_main_on_enter(void* context) {
Loader* loader = furi_record_open("loader");
desktop->app_start_stop_subscription = furi_pubsub_subscribe(
loader_get_pubsub(loader), desktop_scene_main_app_started_callback, desktop);
// Special case: application is already running (autostart application)
if(loader_is_locked(loader)) {
animation_manager_unload_and_stall_animation(desktop->animation_manager);
}
furi_record_close("loader");
desktop_main_set_callback(main_view, desktop_scene_main_callback, desktop);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,32 @@
Filetype: Flipper Animation
Version: 1
Width: 128
Height: 64
Passive frames: 9
Active frames: 7
Frames order: 0 1 2 1 3 1 2 3 1 4 5 6 5 6 5 4
Active cycles: 1
Frame rate: 2
Duration: 3600
Active cooldown: 7
Bubble slots: 2
Slot: 0
X: 78
Y: 16
Text: F*&K!!!
AlignH: Left
AlignV: Bottom
StartFrame: 2
EndFrame: 4
Slot: 1
X: 78
Y: 16
Text: What ya\nlookin at?!
AlignH: Left
AlignV: Center
StartFrame: 10
EndFrame: 15

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1,41 @@
Filetype: Flipper Animation
Version: 1
Width: 128
Height: 64
Passive frames: 8
Active frames: 4
Frames order: 0 1 2 3 4 2 3 4 5 6 7 6
Active cycles: 2
Frame rate: 2
Duration: 3600
Active cooldown: 7
Bubble slots: 2
Slot: 0
X: 22
Y: 40
Text: I miss you
AlignH: Right
AlignV: Bottom
StartFrame: 9
EndFrame: 11
Slot: 0
X: 17
Y: 40
Text: my friend...
AlignH: Right
AlignV: Bottom
StartFrame: 12
EndFrame: 15
Slot: 1
X: 2
Y: 29
Text: Why are you\nalways away?
AlignH: Right
AlignV: Bottom
StartFrame: 9
EndFrame: 15

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,23 @@
Filetype: Flipper Animation
Version: 1
Width: 128
Height: 64
Passive frames: 13
Active frames: 2
Frames order: 0 1 0 2 3 3 4 0 1 5 6 1 1 7 8
Active cycles: 2
Frame rate: 2
Duration: 3600
Active cooldown: 5
Bubble slots: 1
Slot: 0
X: 5
Y: 28
Text: Predictable twist
AlignH: Right
AlignV: Bottom
StartFrame: 14
EndFrame: 16

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1,32 @@
Filetype: Flipper Animation
Version: 1
Width: 128
Height: 64
Passive frames: 3
Active frames: 2
Frames order: 0 1 2 3 4
Active cycles: 4
Frame rate: 2
Duration: 3600
Active cooldown: 7
Bubble slots: 1
Slot: 0
X: 22
Y: 25
Text: Mess with\nthe best,
AlignH: Right
AlignV: Center
StartFrame: 4
EndFrame: 7
Slot: 0
X: 31
Y: 25
Text: die like\nthe rest.
AlignH: Right
AlignV: Center
StartFrame: 8
EndFrame: 10

View File

@ -1,7 +1,6 @@
Filetype: Flipper Animation Manifest
Version: 1
# Animation 1
Name: L1_Waves_128x50
Min butthurt: 0
Max butthurt: 5
@ -9,7 +8,6 @@ Min level: 1
Max level: 3
Weight: 3
# Animation 2
Name: L1_Laptop_128x51
Min butthurt: 0
Max butthurt: 9
@ -17,7 +15,6 @@ Min level: 1
Max level: 3
Weight: 3
# Animation 3
Name: L1_Sleep_128x64
Min butthurt: 0
Max butthurt: 10
@ -25,7 +22,6 @@ Min level: 1
Max level: 3
Weight: 3
# Animation 4
Name: L1_Recording_128x51
Min butthurt: 0
Max butthurt: 8
@ -33,7 +29,6 @@ Min level: 1
Max level: 1
Weight: 3
# Animation 5
Name: L1_Furippa1_128x64
Min butthurt: 0
Max butthurt: 6
@ -41,7 +36,6 @@ Min level: 1
Max level: 1
Weight: 3
# Animation 6
Name: L2_Furippa2_128x64
Min butthurt: 0
Max butthurt: 6
@ -49,10 +43,37 @@ Min level: 2
Max level: 2
Weight: 3
# Animation 7
Name: L3_Furippa3_128x64
Min butthurt: 0
Max butthurt: 6
Min level: 3
Max level: 3
Weight: 3
Name: L1_Read_books_128x64
Min butthurt: 0
Max butthurt: 8
Min level: 1
Max level: 1
Weight: 3
Name: L2_Hacking_pc_128x64
Min butthurt: 0
Max butthurt: 8
Min level: 2
Max level: 2
Weight: 3
Name: L1_Cry_128x64
Min butthurt: 8
Max butthurt: 13
Min level: 1
Max level: 3
Weight: 3
Name: L1_Boxing_128x64
Min butthurt: 10
Max butthurt: 13
Min level: 1
Max level: 3
Weight: 3

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,32 @@
Filetype: Flipper Animation
Version: 1
Width: 128
Height: 64
Passive frames: 9
Active frames: 7
Frames order: 0 1 2 1 3 1 2 3 1 4 5 6 5 6 5 4
Active cycles: 1
Frame rate: 2
Duration: 3600
Active cooldown: 7
Bubble slots: 2
Slot: 0
X: 78
Y: 16
Text: F*&K!!!
AlignH: Left
AlignV: Bottom
StartFrame: 2
EndFrame: 4
Slot: 1
X: 78
Y: 16
Text: What ya\nlookin at?!
AlignH: Left
AlignV: Center
StartFrame: 10
EndFrame: 15

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,41 @@
Filetype: Flipper Animation
Version: 1
Width: 128
Height: 64
Passive frames: 8
Active frames: 4
Frames order: 0 1 2 3 4 2 3 4 5 6 7 6
Active cycles: 2
Frame rate: 2
Duration: 3600
Active cooldown: 7
Bubble slots: 2
Slot: 0
X: 22
Y: 40
Text: I miss you
AlignH: Right
AlignV: Bottom
StartFrame: 9
EndFrame: 11
Slot: 0
X: 17
Y: 40
Text: my friend...
AlignH: Right
AlignV: Bottom
StartFrame: 12
EndFrame: 15
Slot: 1
X: 2
Y: 29
Text: Why are you\nalways away?
AlignH: Right
AlignV: Bottom
StartFrame: 9
EndFrame: 15

View File

@ -0,0 +1,23 @@
Filetype: Flipper Animation
Version: 1
Width: 128
Height: 64
Passive frames: 13
Active frames: 2
Frames order: 0 1 0 2 3 3 4 0 1 5 6 1 1 7 8
Active cycles: 2
Frame rate: 2
Duration: 3600
Active cooldown: 5
Bubble slots: 1
Slot: 0
X: 5
Y: 28
Text: Predictable twist
AlignH: Right
AlignV: Bottom
StartFrame: 14
EndFrame: 16

View File

@ -0,0 +1,32 @@
Filetype: Flipper Animation
Version: 1
Width: 128
Height: 64
Passive frames: 3
Active frames: 2
Frames order: 0 1 2 3 4
Active cycles: 4
Frame rate: 2
Duration: 3600
Active cooldown: 7
Bubble slots: 1
Slot: 0
X: 22
Y: 25
Text: Mess with\nthe best,
AlignH: Right
AlignV: Center
StartFrame: 4
EndFrame: 7
Slot: 0
X: 31
Y: 25
Text: die like\nthe rest.
AlignH: Right
AlignV: Center
StartFrame: 8
EndFrame: 10

View File

@ -49,3 +49,31 @@ Max butthurt: 6
Min level: 3
Max level: 3
Weight: 3
Name: L1_Read_books_128x64
Min butthurt: 0
Max butthurt: 8
Min level: 1
Max level: 1
Weight: 3
Name: L2_Hacking_pc_128x64
Min butthurt: 0
Max butthurt: 8
Min level: 2
Max level: 2
Weight: 3
Name: L1_Cry_128x64
Min butthurt: 8
Max butthurt: 13
Min level: 1
Max level: 3
Weight: 3
Name: L1_Boxing_128x64
Min butthurt: 10
Max butthurt: 13
Min level: 1
Max level: 3
Weight: 3