[gcompris] Read number of levels from XML file. Improved colours.



commit abe2339d7892cb8478d86a84d4d43a99cca98fbd
Author: GunChleoc <fios foramnagaidhlig net>
Date:   Mon Apr 29 13:28:26 2013 +0100

    Read number of levels from XML file. Improved colours.

 src/wordsgame-activity/wordsgame.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/wordsgame-activity/wordsgame.c b/src/wordsgame-activity/wordsgame.c
index cd712ab..0cd936f 100644
--- a/src/wordsgame-activity/wordsgame.c
+++ b/src/wordsgame-activity/wordsgame.c
@@ -223,7 +223,10 @@ static void start_board (GcomprisBoard *agcomprisBoard)
              return;
            }
        }
-
+      if(gc_wordlist)
+      {
+        gcomprisBoard->maxlevel = gc_wordlist->number_of_level;
+      }
       wordsgame_next_level();
     }
 }
@@ -692,7 +695,7 @@ static GooCanvasItem *wordsgame_create_item(GooCanvasItem *parent)
                         -1,
                         direction_anchor,
                         "font", gc_skin_font_board_huge_bold,
-                        "fill_color_rgba", 0xffffffff,
+                        "fill_color_rgba", 0x3e2587FF,
                         NULL);
 
   item->overwriteItem = \
@@ -703,7 +706,7 @@ static GooCanvasItem *wordsgame_create_item(GooCanvasItem *parent)
                         -1,
                         direction_anchor,
                         "font", gc_skin_font_board_huge_bold,
-                        "fill-color_rgba", 0x000000ff,
+                        "fill-color_rgba", 0xff0000ff,
                         NULL);
 
   /*set right x position */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]