mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 15:08:36 -07:00
feat: chess update to demo new font usage
This commit is contained in:
2
applications/external/chess/application.fam
vendored
2
applications/external/chess/application.fam
vendored
@@ -14,6 +14,6 @@ App(
|
|||||||
fap_category="Games",
|
fap_category="Games",
|
||||||
fap_author="Struan Clark (xtruan)",
|
fap_author="Struan Clark (xtruan)",
|
||||||
fap_weburl="https://github.com/xtruan/flipper-chess",
|
fap_weburl="https://github.com/xtruan/flipper-chess",
|
||||||
fap_version=(1, 8),
|
fap_version=(1, 9),
|
||||||
fap_description="Chess for Flipper",
|
fap_description="Chess for Flipper",
|
||||||
)
|
)
|
||||||
|
|||||||
2
applications/external/chess/flipchess.h
vendored
2
applications/external/chess/flipchess.h
vendored
@@ -16,7 +16,7 @@
|
|||||||
#include "views/flipchess_startscreen.h"
|
#include "views/flipchess_startscreen.h"
|
||||||
#include "views/flipchess_scene_1.h"
|
#include "views/flipchess_scene_1.h"
|
||||||
|
|
||||||
#define FLIPCHESS_VERSION "v1.8.0"
|
#define FLIPCHESS_VERSION "v1.9.0"
|
||||||
|
|
||||||
#define TEXT_BUFFER_SIZE 96
|
#define TEXT_BUFFER_SIZE 96
|
||||||
#define TEXT_SIZE (TEXT_BUFFER_SIZE - 1)
|
#define TEXT_SIZE (TEXT_BUFFER_SIZE - 1)
|
||||||
|
|||||||
@@ -32,10 +32,18 @@ void flipchess_startscreen_draw(Canvas* canvas, FlipChessStartscreenModel* model
|
|||||||
|
|
||||||
canvas_draw_icon(canvas, 0, 0, &I_FLIPR_128x64);
|
canvas_draw_icon(canvas, 0, 0, &I_FLIPR_128x64);
|
||||||
|
|
||||||
|
#ifdef CANVAS_HAS_FONT_SCUMM_ROMAN_OUTLINE
|
||||||
|
const uint8_t text_x_pos = 2;
|
||||||
|
const uint8_t text_y_pos = 12;
|
||||||
|
canvas_set_font(canvas, FontScummRomanOutline);
|
||||||
|
#else
|
||||||
|
const uint8_t text_x_pos = 4;
|
||||||
|
const uint8_t text_y_pos = 11;
|
||||||
canvas_set_font(canvas, FontPrimary);
|
canvas_set_font(canvas, FontPrimary);
|
||||||
canvas_draw_str(canvas, 4, 11, "Chess");
|
#endif
|
||||||
|
canvas_draw_str(canvas, text_x_pos, text_y_pos, "Chess");
|
||||||
canvas_set_font(canvas, FontSecondary);
|
canvas_set_font(canvas, FontSecondary);
|
||||||
canvas_draw_str(canvas, 62, 11, FLIPCHESS_VERSION);
|
canvas_draw_str(canvas, 62, text_y_pos, FLIPCHESS_VERSION);
|
||||||
|
|
||||||
//canvas_set_font(canvas, FontSecondary);
|
//canvas_set_font(canvas, FontSecondary);
|
||||||
//canvas_draw_str(canvas, 10, 11, "How about a nice game of...");
|
//canvas_draw_str(canvas, 10, 11, "How about a nice game of...");
|
||||||
|
|||||||
Reference in New Issue
Block a user