diff options
author | Franklin Wei <frankhwei536@gmail.com> | 2014-08-31 12:52:16 -0400 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2014-09-14 04:17:36 +0200 |
commit | 1189fbe186d6a41417140a912efe8148b76a2cec (patch) | |
tree | ae49184ec2b6c58683d80588a48d68e52f6a2e8f | |
parent | a65f6ceaedae44eb0434f9511ce68472dc1b2bbe (diff) | |
download | rockbox-1189fbe186d6a41417140a912efe8148b76a2cec.tar.gz rockbox-1189fbe186d6a41417140a912efe8148b76a2cec.zip |
Superdom: rewrote help text
Change-Id: I54d5ee920b03f24faee5a6bf53ca56b27bbdc6c8
Reviewed-on: http://gerrit.rockbox.org/945
Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
-rw-r--r-- | apps/plugins/superdom.c | 38 |
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) | |||
613 | 613 | ||
614 | static int superdom_help(void) | 614 | static int superdom_help(void) |
615 | { | 615 | { |
616 | static char* help_text[] = { | 616 | static char* help_text[] = {"Super Domination","", |
617 | "Super", "Domination", "is", "a", "turn-based", "strategy", "game,", | 617 | "Aim", "", |
618 | "where", "the", "aim", "is", "to", "overpower", "the", "computer", | 618 | "Super", "Domination", "is", "a", "turn-based", |
619 | "player", "by", "taking", "their", "territory.", "", | 619 | "strategy", "game", "where", "the", "aim", "is", |
620 | "Each", "year", "you", "are", "allocated", "an", "amount", "of", "cash", | 620 | "to", "overpower", "the", "computer.", "", "", |
621 | "and", "food,", "depending", "on", "how", "many", "farms", "and", | 621 | "How", "to", "Play", "", |
622 | "factories", "you", "control.", "", | 622 | "Each", "year", "you", "are", "allocated", "an", "amount", "of", "cash", |
623 | "Use", "this", "cash", "and", "food", "to", "build", "and", "feed", "your", | 623 | "and", "food,", "depending", "on", "how", "many", "farms", "and", |
624 | "army.", "Each", "tile", "has", "a", "strength,", "calculated", "by", | 624 | "factories", "you", "control.", "", |
625 | "the", "ownership", "of", "surrounding", "tiles,", "and", "the", "type", | 625 | "Use", "this", "cash", "and", "food", "to", "build", "and", "feed", "your", |
626 | "and", "number", "of", "troops", "on", "them.", | 626 | "army.", "Each", "tile", "has", "a", "strength,", "calculated", "by", |
627 | "the", "ownership", "of", "surrounding", "tiles,", "and", "the", "type", | ||
628 | "and", "number", "of", "troops", "on", "them."}; | ||
629 | static const struct style_text style[]={ | ||
630 | {0, TEXT_CENTER|TEXT_UNDERLINE}, | ||
631 | {2, C_RED}, | ||
632 | {21, C_RED}, | ||
633 | {22, C_RED}, | ||
634 | {23, C_RED}, | ||
635 | LAST_STYLE_ITEM | ||
627 | }; | 636 | }; |
628 | #ifdef HAVE_LCD_COLOR | 637 | #ifdef HAVE_LCD_COLOR |
629 | rb->lcd_set_foreground(LCD_WHITE); | 638 | rb->lcd_set_foreground(LCD_WHITE); |
630 | rb->lcd_set_background(LCD_BLACK); | 639 | rb->lcd_set_background(LCD_BLACK); |
631 | #endif | 640 | #endif |
632 | if (display_text(ARRAYLEN(help_text), help_text, NULL, NULL, true)) | 641 | int ret=display_text(ARRAYLEN(help_text), help_text, style, NULL, true); |
642 | #ifdef HAVE_LCD_COLOR | ||
643 | rb->lcd_set_foreground(LCD_BLACK); | ||
644 | rb->lcd_set_background(LCD_WHITE); | ||
645 | #endif | ||
646 | if(ret) | ||
633 | return RET_VAL_USB; | 647 | return RET_VAL_USB; |
634 | return RET_VAL_OK; | 648 | return RET_VAL_OK; |
635 | } | 649 | } |