From: Holger Schemel Date: Mon, 1 Oct 2018 20:03:32 +0000 (+0200) Subject: added title and footer text when starting or stopping network mode X-Git-Tag: 4.1.1.0~16 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9859cb105440e41846da9e6d4ffb93c10767b26e;p=rocksndiamonds.git added title and footer text when starting or stopping network mode --- diff --git a/src/screens.c b/src/screens.c index 6dd964f3..4967ebde 100644 --- a/src/screens.c +++ b/src/screens.c @@ -5953,6 +5953,12 @@ static void execGadgetNetworkServer(void) static void ToggleNetworkModeIfNeeded(void) { + int font_title = FONT_TITLE_1; + int font_foot = FC_BLUE; + int ystart = mSY - SY + 16; + int ybottom = mSY - SY + SYSIZE - 20; + char *text = (setup.network_mode ? "Start Network" : "Stop Network"); + if (setup.network_mode == network.enabled) return; @@ -5962,6 +5968,8 @@ static void ToggleNetworkModeIfNeeded(void) ClearField(); + DrawTextSCentered(ystart, font_title, text); + FadeIn(REDRAW_ALL); if (network.enabled) @@ -5969,6 +5977,9 @@ static void ToggleNetworkModeIfNeeded(void) else DisconnectFromNetworkServer(); + DrawTextSCentered(ybottom, font_foot, + "Press any key or button for setup menu"); + DrawSetupScreen(); }