modified levelup animations, added sfw levelups, and changed framerates
@@ -13,6 +13,8 @@
|
||||
#include "animation_storage.h"
|
||||
#include "animation_manager.h"
|
||||
|
||||
#include "../../../settings/desktop_settings/desktop_settings_app.h"
|
||||
|
||||
#define TAG "AnimationManager"
|
||||
|
||||
#define HARDCODED_ANIMATION_NAME "thank_you_128x64"
|
||||
@@ -544,6 +546,8 @@ static void animation_manager_switch_to_one_shot_view(AnimationManager* animatio
|
||||
Dolphin* dolphin = furi_record_open(RECORD_DOLPHIN);
|
||||
DolphinStats stats = dolphin_stats(dolphin);
|
||||
furi_record_close(RECORD_DOLPHIN);
|
||||
DesktopSettings* settings = malloc(sizeof(DesktopSettings));
|
||||
DESKTOP_SETTINGS_LOAD(settings);
|
||||
|
||||
animation_manager->one_shot_view = one_shot_view_alloc();
|
||||
one_shot_view_set_interact_callback(
|
||||
@@ -552,13 +556,20 @@ static void animation_manager_switch_to_one_shot_view(AnimationManager* animatio
|
||||
View* next_view = one_shot_view_get_view(animation_manager->one_shot_view);
|
||||
view_stack_remove_view(animation_manager->view_stack, prev_view);
|
||||
view_stack_add_view(animation_manager->view_stack, next_view);
|
||||
if(stats.level <= 20) {
|
||||
if (settings->sfw_mode) {
|
||||
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup1_128x64);
|
||||
} else if(stats.level >= 21) {
|
||||
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup2_128x64);
|
||||
} else {
|
||||
furi_assert(0);
|
||||
}else {
|
||||
if (stats.level <= 20) {
|
||||
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup1_128x64_sfw);
|
||||
}
|
||||
else if (stats.level >= 21) {
|
||||
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup2_128x64_sfw);
|
||||
}
|
||||
else {
|
||||
furi_assert(0);
|
||||
}
|
||||
}
|
||||
free(settings);
|
||||
}
|
||||
|
||||
static void animation_manager_switch_to_animation_view(AnimationManager* animation_manager) {
|
||||
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 984 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 961 B After Width: | Height: | Size: 961 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1004 B After Width: | Height: | Size: 1004 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1008 B After Width: | Height: | Size: 1008 B |
BIN
assets/icons/Animations/Levelup1_128x64/frame_20.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/icons/Animations/Levelup1_128x64/frame_21.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/icons/Animations/Levelup1_128x64/frame_22.png
Normal file
|
After Width: | Height: | Size: 1008 B |
|
Before Width: | Height: | Size: 984 B After Width: | Height: | Size: 984 B |
BIN
assets/icons/Animations/Levelup1_128x64/frame_24.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/icons/Animations/Levelup1_128x64/frame_25.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/icons/Animations/Levelup1_128x64/frame_26.png
Normal file
|
After Width: | Height: | Size: 961 B |
BIN
assets/icons/Animations/Levelup1_128x64/frame_27.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/icons/Animations/Levelup1_128x64/frame_28.png
Normal file
|
After Width: | Height: | Size: 1004 B |
BIN
assets/icons/Animations/Levelup1_128x64/frame_29.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/icons/Animations/Levelup1_128x64/frame_30.png
Normal file
|
After Width: | Height: | Size: 984 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -1 +1 @@
|
||||
2
|
||||
7
|
||||
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_00.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_01.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_02.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_03.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_04.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_05.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_06.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_07.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_08.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_09.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/icons/Animations/Levelup1_128x64_sfw/frame_10.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_00.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_01.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_02.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_03.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_04.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_05.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_06.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_07.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_08.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_09.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/icons/Animations/Levelup2_128x64_sfw/frame_10.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
1
assets/icons/Animations/Levelup2_128x64_sfw/frame_rate
Normal file
@@ -0,0 +1 @@
|
||||
2
|
||||