summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2014-08-31 12:52:16 -0400
committerMichael Giacomelli <giac2000@hotmail.com>2014-09-14 04:17:36 +0200
commit1189fbe186d6a41417140a912efe8148b76a2cec (patch)
treeae49184ec2b6c58683d80588a48d68e52f6a2e8f /apps/plugins
parenta65f6ceaedae44eb0434f9511ce68472dc1b2bbe (diff)
Superdom: rewrote help text
Change-Id: I54d5ee920b03f24faee5a6bf53ca56b27bbdc6c8 Reviewed-on: http://gerrit.rockbox.org/945 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/superdom.c38
1 files changed, 26 insertions, 12 deletions
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;
}