From 2189f75b685d706cb6ccf18a869b3a0083dfe24a Mon Sep 17 00:00:00 2001 From: RogueMaster Date: Sun, 16 Oct 2022 00:52:58 -0400 Subject: [PATCH] Update dice.c --- applications/plugins/dice/dice.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/applications/plugins/dice/dice.c b/applications/plugins/dice/dice.c index c84d2c5bd..d2d1c3b96 100644 --- a/applications/plugins/dice/dice.c +++ b/applications/plugins/dice/dice.c @@ -127,22 +127,22 @@ static void dice_render_callback(Canvas* const canvas, void* ctx) { "I'd do it.", "Hell, yeah!", "You bet your life!", - "What are you\nwaiting for?", - "You could do\nworse things.", + "What are you waiting for?", + "You could do worse things.", "Sure, I won't tell.", - "Yeah, you got this.\nWould I lie to you?", + "Yeah, you got this. Would I lie to you?", "Looks like fun to me. ", "Yeah, sure, why not?", "DO IT!!!", "Who's it gonna hurt?", - "Can you blame\nsomeone else?", + "Can you blame someone else?", "Ask me again later.", - "Maybe, maybe not,\nI can't tell right now. ", - "Are you the\nbetting type? ", - "Don't blame me if\nyou get caught.", - "What have you got\nto lose?", + "Maybe, maybe not, I can't tell right now. ", + "Are you the betting type? ", + "Don't blame me if you get caught.", + "What have you got to lose?", "I wouldn't if I were you.", - "My money's on\nthe snowball.", + "My money's on the snowball.", "Oh Hell no!"}; state->diceRoll = ((rand() % state->diceSelect) + 1); // JUST TO GET IT GOING? AND FIX BUG @@ -361,6 +361,11 @@ static void dice_render_callback(Canvas* const canvas, void* ctx) { canvas_draw_str_aligned(canvas, 64, 26, AlignCenter, AlignCenter, state->strings[2]); canvas_draw_str_aligned(canvas, 64, 34, AlignCenter, AlignCenter, state->strings[3]); canvas_draw_str_aligned(canvas, 64, 42, AlignCenter, AlignCenter, state->strings[4]); + } else if(state->diceSelect == 228) { + canvas_set_font(canvas, FontBigNumbers); + canvas_draw_str_aligned(canvas, 64, 20, AlignCenter, AlignCenter, state->strings[1]); + canvas_set_font(canvas, FontSecondary); + canvas_draw_str_aligned(canvas, 64, 8, AlignCenter, AlignCenter, state->strings[0]); } else { canvas_set_font(canvas, FontPrimary); canvas_draw_str_aligned(canvas, 64, 20, AlignCenter, AlignCenter, state->strings[1]);