update info

This commit is contained in:
Alexander Popov 2023-04-27 23:33:02 +03:00
parent cf414a2b28
commit b1281d9cf3
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6

View File

@ -1,14 +1,41 @@
diff --git a/applications/settings/dolphin_passport/passport.c b/applications/settings/dolphin_passport/passport.c diff --git a/applications/settings/dolphin_passport/passport.c b/applications/settings/dolphin_passport/passport.c
index d43f150c..7fc14b6b 100644 index d43f150c..40d51678 100644
--- a/applications/settings/dolphin_passport/passport.c --- a/applications/settings/dolphin_passport/passport.c
+++ b/applications/settings/dolphin_passport/passport.c +++ b/applications/settings/dolphin_passport/passport.c
@@ -76,7 +76,8 @@ static void render_callback(Canvas* canvas, void* ctx) { @@ -37,21 +37,8 @@ static void input_callback(InputEvent* input, void* ctx) {
static void render_callback(Canvas* canvas, void* ctx) {
DolphinStats* stats = ctx;
- char level_str[20];
- char mood_str[32];
uint8_t mood = 0;
- if(stats->butthurt <= 4) {
- mood = 0;
- snprintf(mood_str, 20, "Mood: Happy");
- } else if(stats->butthurt <= 9) {
- mood = 1;
- snprintf(mood_str, 20, "Mood: Ok");
- } else {
- mood = 2;
- snprintf(mood_str, 20, "Mood: Angry");
- }
-
uint32_t xp_progress = 0;
uint32_t xp_to_levelup = dolphin_state_xp_to_levelup(stats->icounter);
uint32_t xp_for_current_level =
@@ -76,11 +63,9 @@ static void render_callback(Canvas* canvas, void* ctx) {
canvas_draw_line(canvas, 58, 30, 123, 30); canvas_draw_line(canvas, 58, 30, 123, 30);
canvas_draw_line(canvas, 58, 44, 123, 44); canvas_draw_line(canvas, 58, 44, 123, 44);
- const char* my_name = furi_hal_version_get_name_ptr(); - const char* my_name = furi_hal_version_get_name_ptr();
+ // const char* my_name = furi_hal_version_get_name_ptr(); - snprintf(level_str, 20, "Level: %hu", stats->level);
+ const char* my_name = "AlexanderPopov"; - canvas_draw_str(canvas, 58, 12, my_name ? my_name : "Unknown");
snprintf(level_str, 20, "Level: %hu", stats->level); - canvas_draw_str(canvas, 58, 26, mood_str);
canvas_draw_str(canvas, 58, 12, my_name ? my_name : "Unknown"); - canvas_draw_str(canvas, 58, 40, level_str);
canvas_draw_str(canvas, 58, 26, mood_str); + canvas_draw_str(canvas, 58, 12, "AlexanderPopov");
+ canvas_draw_str(canvas, 58, 26, "8 911 313-90-95");
+ canvas_draw_str(canvas, 58, 40, "iiiypuk.me");
canvas_set_color(canvas, ColorWhite);
canvas_draw_box(canvas, 123 - xp_progress, 47, xp_progress + 1, 6);