Skip to content

Commit

Permalink
Added version number
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lee committed May 15, 2024
1 parent 5338c2b commit 504a94f
Show file tree
Hide file tree
Showing 6 changed files with 689 additions and 2 deletions.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ Then run the command:
The application will be compiled and copied onto your device.

## Licensing
This code is open-source and may be used for whatever you want to do with it.
This code is open-source under the conditions of GNU GENERAL PUBLIC LICENSE.

## Credits
Thanks to [Willy-JL](https://github.com/Willy-JL) for assisting in the fine-tuning of the app
2 changes: 1 addition & 1 deletion application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ App(
order=10,
fap_icon="icons/color_guess_10px.png",
fap_icon_assets="icons",
fap_version="1.4",
fap_version="1.5",
fap_category="Games",
fap_author="Leedave",
fap_description="Color Guessing Game",
Expand Down
1 change: 1 addition & 0 deletions color_guess.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "views/color_guess_startscreen.h"
#include "helpers/color_guess_storage.h"

#define COLOR_GUESS_VERSION "1.5"
#define TAG "Color_Guess"

typedef struct {
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.5
- Additional Memory Management fixes by Willy-JL
- Redraw Issue fixed by Willy-JL
- Added GNU License
- Added version number

## 1.4
- Prevent value changing on win view
- Fix issues with FW build 0.99.x
Expand Down
3 changes: 3 additions & 0 deletions views/color_guess_startscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ void color_guess_startscreen_set_callback(

void color_guess_startscreen_draw(Canvas* canvas, ColorGuessStartscreenModel* model) {
UNUSED(model);
char buffer[64];
canvas_clear(canvas);
canvas_set_color(canvas, ColorBlack);
canvas_set_font(canvas, FontPrimary);
Expand All @@ -36,6 +37,8 @@ void color_guess_startscreen_draw(Canvas* canvas, ColorGuessStartscreenModel* mo
canvas_set_font(canvas, FontSecondary);
canvas_draw_str_aligned(canvas, 54, 22, AlignLeft, AlignTop, "Guess the color");
canvas_draw_str_aligned(canvas, 54, 32, AlignLeft, AlignTop, "on Flipper's LED");
snprintf(buffer, sizeof(buffer), "Ver. %s", COLOR_GUESS_VERSION);
canvas_draw_str_aligned(canvas, 92, 56, AlignLeft, AlignTop, buffer);
elements_button_center(canvas, "Start");
}

Expand Down

0 comments on commit 504a94f

Please sign in to comment.