[FL-2150] Dolphin animation refactoring (#938)
* Dolphin Animation Refactoring, part 1 * Remove animations from desktop * Remove excess, first start * Split animation_manager with callbacks * allocate view inside animation_view * Work on ViewComposed * Draw white rectangles under bubble corners * Fix bubbles sequence * RPC: remove obsolete include "status.pb.h" * Add animations manifest decoding * Flipper file: add strict mode * FFF: Animation structures parsing * Assembling structure of animation * Lot of view fixes: Add multi-line bubbles Add support for passive bubbles (frame_order values starts from passive now) Add hard-coded delay (active_shift) for active state enabling Fix active state handling Fix leaks Fix parsing uncorrect bubble_animation meta file Fix bubble rules of showing * Animation load/unload & view freeze/unfreeze * Blocking & system animations, fixes: View correct activation Refactoring + blocking animation Freeze first passive/active frames Many insert/eject SD tests fixes Add system animations Add Loader events app started/finished Add system no_sd animation * Assets: dolphin packer. Scripts: minor refactoring. * Desktop: update logging tags. Scripts: add metadata to dolphin bundling process, extra sorting for fs traversing. Make: phony assets rules. * Github: rebuild assets on build * Docker: add missing dependencies for assets compilation * Docker: fix run command syntax * ReadMe: update naming rules with link to source * Assets: recompile icons * Loader: add loader event * Desktop, Gui, Furi Core: const shenanigans macros Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "cmsis_os2.h"
|
||||
#include "desktop.h"
|
||||
|
||||
#include "animations/animation_manager.h"
|
||||
#include "gui/view_composed.h"
|
||||
#include <furi.h>
|
||||
#include <furi-hal.h>
|
||||
|
||||
@@ -21,7 +24,6 @@
|
||||
#include "views/desktop_debug.h"
|
||||
|
||||
#include "scenes/desktop_scene.h"
|
||||
#include "helpers/desktop_animation.h"
|
||||
#include "desktop/desktop_settings/desktop_settings.h"
|
||||
#include <gui/icon.h>
|
||||
|
||||
@@ -46,19 +48,29 @@ struct Desktop {
|
||||
ViewDispatcher* view_dispatcher;
|
||||
SceneManager* scene_manager;
|
||||
|
||||
DesktopAnimation* animation;
|
||||
DesktopFirstStartView* first_start_view;
|
||||
Popup* hw_mismatch_popup;
|
||||
DesktopMainView* main_view;
|
||||
DesktopLockMenuView* lock_menu;
|
||||
DesktopLockedView* locked_view;
|
||||
DesktopDebugView* debug_view;
|
||||
CodeInput* code_input;
|
||||
|
||||
View* dolphin_view;
|
||||
DesktopMainView* main_view;
|
||||
DesktopLockedView* locked_view;
|
||||
|
||||
ViewComposed* main_view_composed;
|
||||
ViewComposed* locked_view_composed;
|
||||
|
||||
DesktopSettings settings;
|
||||
PinCode pincode_buffer;
|
||||
|
||||
ViewPort* lock_viewport;
|
||||
|
||||
AnimationManager* animation_manager;
|
||||
osSemaphoreId_t unload_animation_semaphore;
|
||||
FuriPubSubSubscription* app_start_stop_subscription;
|
||||
|
||||
char* text_buffer;
|
||||
};
|
||||
|
||||
Desktop* desktop_alloc();
|
||||
|
Reference in New Issue
Block a user