Move lvlup anim to asset system
@@ -569,9 +569,6 @@ void animation_manager_load_and_continue_animation(AnimationManager* animation_m
|
|||||||
static void animation_manager_switch_to_one_shot_view(AnimationManager* animation_manager) {
|
static void animation_manager_switch_to_one_shot_view(AnimationManager* animation_manager) {
|
||||||
furi_assert(animation_manager);
|
furi_assert(animation_manager);
|
||||||
furi_assert(!animation_manager->one_shot_view);
|
furi_assert(!animation_manager->one_shot_view);
|
||||||
Dolphin* dolphin = furi_record_open(RECORD_DOLPHIN);
|
|
||||||
DolphinStats stats = dolphin_stats(dolphin);
|
|
||||||
furi_record_close(RECORD_DOLPHIN);
|
|
||||||
|
|
||||||
animation_manager->one_shot_view = one_shot_view_alloc();
|
animation_manager->one_shot_view = one_shot_view_alloc();
|
||||||
one_shot_view_set_interact_callback(
|
one_shot_view_set_interact_callback(
|
||||||
@@ -580,19 +577,8 @@ 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* next_view = one_shot_view_get_view(animation_manager->one_shot_view);
|
||||||
view_stack_remove_view(animation_manager->view_stack, prev_view);
|
view_stack_remove_view(animation_manager->view_stack, prev_view);
|
||||||
view_stack_add_view(animation_manager->view_stack, next_view);
|
view_stack_add_view(animation_manager->view_stack, next_view);
|
||||||
if(XTREME_ASSETS()->is_nsfw) {
|
one_shot_view_start_animation(
|
||||||
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup1_128x64);
|
animation_manager->one_shot_view, XTREME_ASSETS()->A_Levelup_128x64);
|
||||||
} 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void animation_manager_switch_to_animation_view(AnimationManager* animation_manager) {
|
static void animation_manager_switch_to_animation_view(AnimationManager* animation_manager) {
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ void XTREME_ASSETS_LOAD() {
|
|||||||
xtreme_assets = malloc(sizeof(XtremeAssets));
|
xtreme_assets = malloc(sizeof(XtremeAssets));
|
||||||
XtremeSettings* xtreme_settings = XTREME_SETTINGS();
|
XtremeSettings* xtreme_settings = XTREME_SETTINGS();
|
||||||
|
|
||||||
|
xtreme_assets->A_Levelup_128x64 = &A_Levelup_128x64;
|
||||||
xtreme_assets->I_BLE_Pairing_128x64 = &I_BLE_Pairing_128x64;
|
xtreme_assets->I_BLE_Pairing_128x64 = &I_BLE_Pairing_128x64;
|
||||||
xtreme_assets->I_DolphinCommon_56x48 = &I_DolphinCommon_56x48;
|
xtreme_assets->I_DolphinCommon_56x48 = &I_DolphinCommon_56x48;
|
||||||
xtreme_assets->I_DolphinMafia_115x62 = &I_DolphinMafia_115x62;
|
xtreme_assets->I_DolphinMafia_115x62 = &I_DolphinMafia_115x62;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
bool is_nsfw;
|
bool is_nsfw;
|
||||||
|
const Icon* A_Levelup_128x64;
|
||||||
const Icon* I_BLE_Pairing_128x64;
|
const Icon* I_BLE_Pairing_128x64;
|
||||||
const Icon* I_DolphinCommon_56x48;
|
const Icon* I_DolphinCommon_56x48;
|
||||||
const Icon* I_DolphinMafia_115x62;
|
const Icon* I_DolphinMafia_115x62;
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1008 B |
|
Before Width: | Height: | Size: 984 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 961 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1004 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 984 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 961 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1004 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1008 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1008 B |
|
Before Width: | Height: | Size: 984 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 961 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1004 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 984 B |
|
Before Width: | Height: | Size: 2.0 KiB |
@@ -1 +0,0 @@
|
|||||||
7
|
|
||||||
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1 +0,0 @@
|
|||||||
2
|
|
||||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |