Compare commits
2 Commits
cf414a2b28
...
31105a4437
Author | SHA1 | Date | |
---|---|---|---|
31105a4437 | |||
b1281d9cf3 |
@ -25,6 +25,7 @@ alias ..='cd ..'
|
|||||||
alias cfs='cryfs $HOME/.cryfs/ $HOME/Vault' # CryFS mount
|
alias cfs='cryfs $HOME/.cryfs/ $HOME/Vault' # CryFS mount
|
||||||
alias tardir='tar -cJf "../${PWD##*/}.tar.xz"' # tar.xz current dir
|
alias tardir='tar -cJf "../${PWD##*/}.tar.xz"' # tar.xz current dir
|
||||||
alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux)
|
alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux)
|
||||||
|
alias venv-init='python3 -m venv venv' # make python venv
|
||||||
|
|
||||||
# Crystal build ###########################################
|
# Crystal build ###########################################
|
||||||
if command -v shards &> /dev/null; then
|
if command -v shards &> /dev/null; then
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user