372710c31a
* 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>
56 lines
1.3 KiB
C
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);
|