From 1189fbe186d6a41417140a912efe8148b76a2cec Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 31 Aug 2014 12:52:16 -0400 Subject: Superdom: rewrote help text Change-Id: I54d5ee920b03f24faee5a6bf53ca56b27bbdc6c8 Reviewed-on: http://gerrit.rockbox.org/945 Reviewed-by: Michael Giacomelli --- apps/plugins/superdom.c | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) (limited to 'apps/plugins/superdom.c') diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c index dfd8ccee1f..c0c808d512 100644 --- a/apps/plugins/superdom.c +++ b/apps/plugins/superdom.c @@ -613,23 +613,37 @@ static int settings_menu(void) static int superdom_help(void) { - static char* help_text[] = { - "Super", "Domination", "is", "a", "turn-based", "strategy", "game,", - "where", "the", "aim", "is", "to", "overpower", "the", "computer", - "player", "by", "taking", "their", "territory.", "", - "Each", "year", "you", "are", "allocated", "an", "amount", "of", "cash", - "and", "food,", "depending", "on", "how", "many", "farms", "and", - "factories", "you", "control.", "", - "Use", "this", "cash", "and", "food", "to", "build", "and", "feed", "your", - "army.", "Each", "tile", "has", "a", "strength,", "calculated", "by", - "the", "ownership", "of", "surrounding", "tiles,", "and", "the", "type", - "and", "number", "of", "troops", "on", "them.", + static char* help_text[] = {"Super Domination","", + "Aim", "", + "Super", "Domination", "is", "a", "turn-based", + "strategy", "game", "where", "the", "aim", "is", + "to", "overpower", "the", "computer.", "", "", + "How", "to", "Play", "", + "Each", "year", "you", "are", "allocated", "an", "amount", "of", "cash", + "and", "food,", "depending", "on", "how", "many", "farms", "and", + "factories", "you", "control.", "", + "Use", "this", "cash", "and", "food", "to", "build", "and", "feed", "your", + "army.", "Each", "tile", "has", "a", "strength,", "calculated", "by", + "the", "ownership", "of", "surrounding", "tiles,", "and", "the", "type", + "and", "number", "of", "troops", "on", "them."}; + static const struct style_text style[]={ + {0, TEXT_CENTER|TEXT_UNDERLINE}, + {2, C_RED}, + {21, C_RED}, + {22, C_RED}, + {23, C_RED}, + LAST_STYLE_ITEM }; #ifdef HAVE_LCD_COLOR rb->lcd_set_foreground(LCD_WHITE); rb->lcd_set_background(LCD_BLACK); #endif - if (display_text(ARRAYLEN(help_text), help_text, NULL, NULL, true)) + int ret=display_text(ARRAYLEN(help_text), help_text, style, NULL, true); +#ifdef HAVE_LCD_COLOR + rb->lcd_set_foreground(LCD_BLACK); + rb->lcd_set_background(LCD_WHITE); +#endif + if(ret) return RET_VAL_USB; return RET_VAL_OK; } -- cgit v1.2.3