flipperzero-firmware/applications/dolphin/dolphin_views.h
its your bedtime 372710c31a
[FL-1019] New main screen and graphics (#389)
* new status bar, lock menu and dolphin activities screen

* lock icon indication 

* main screen animation, basic scene switching

* level progression calculations based on icounter value 

Co-authored-by: rusdacent <rusdacentx0x08@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
2021-03-25 20:48:58 +03:00

56 lines
1.3 KiB
C

#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <gui/canvas.h>
#include <input/input.h>
#include <furi.h>
// Idle scree
typedef enum {
DolphinViewFirstStart,
DolphinViewIdleMain,
DolphinViewIdleUp,
DolphinViewIdleDown,
DolphinViewHwMismatch,
DolphinViewLockMenu,
DolphinViewIdleMeta,
} DolphinViewIdle;
typedef struct {
uint32_t page;
} DolphinViewFirstStartModel;
void dolphin_view_first_start_draw(Canvas* canvas, void* model);
bool dolphin_view_first_start_input(InputEvent* event, void* context);
typedef struct {
uint32_t icounter;
uint32_t butthurt;
} DolphinViewIdleUpModel;
typedef struct {
uint8_t idx;
} DolphinViewMenuModel;
typedef struct {
Icon* animation;
uint8_t scene_num;
} DolphinViewMainModel;
void dolphin_view_idle_main_draw(Canvas* canvas, void* model);
bool dolphin_view_idle_main_input(InputEvent* event, void* context);
void dolphin_view_idle_up_draw(Canvas* canvas, void* model);
void dolphin_view_lockmenu_draw(Canvas* canvas, void* model);
void dolphin_view_idle_down_draw(Canvas* canvas, void* model);
void dolphin_view_idle_meta_draw(Canvas* canvas, void* model);
void dolphin_view_hw_mismatch_draw(Canvas* canvas, void* model);
uint32_t dolphin_view_idle_back(void* context);