Commit ccc4fb85 authored by Pascal Georges's avatar Pascal Georges

*** empty log message ***

parent 794ae86b
......@@ -102,10 +102,13 @@
wordsgame
----------------------------------------------
imageid
- tested by Pascal Georges <pascal.georges1@free.fr>
----------------------------------------------
missing_letter
- tested by Pascal Georges <pascal.georges1@free.fr>
----------------------------------------------
click_on_letter
- tested by Pascal Georges <pascal.georges1@free.fr>
----------------------------------------------
railroad
----------------------------------------------
......@@ -118,3 +121,5 @@
- tested by Pascal Georges <pascal.georges1@free.fr>
----------------------------------------------
colors
- tested by Pascal Georges <pascal.georges1@free.fr>
......@@ -133,7 +133,7 @@ static void start_board (GcomprisBoard *agcomprisBoard) {
gcomprisBoard->sublevel = 1;
gcomprisBoard->number_of_sublevel = 8;
gcompris_bar_set(GCOMPRIS_BAR_OK | GCOMPRIS_BAR_LEVEL);
gcompris_bar_set(GCOMPRIS_BAR_LEVEL);
gcompris_score_start(SCORESTYLE_NOTE,
gcomprisBoard->width - 220,
gcomprisBoard->height - 50,
......@@ -373,8 +373,9 @@ static gint item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data) {
}
}
if (clicked >= 0) {
highlight_selected(clicked);
gamewon = (clicked == GPOINTER_TO_INT(g_list_nth_data(listColors,0)));
highlight_selected(clicked);
gamewon = (clicked == GPOINTER_TO_INT(g_list_nth_data(listColors,0)));
process_ok();
}
break;
......
......@@ -116,7 +116,7 @@ static void start_board (GcomprisBoard *agcomprisBoard) {
gcompris_set_background(gnome_canvas_root(gcomprisBoard->canvas), "colors/colors_bg.jpg");
gcomprisBoard->level=1;
gcomprisBoard->maxlevel=1;
gcompris_bar_set(GCOMPRIS_BAR_OK|GCOMPRIS_BAR_REPEAT);
gcompris_bar_set(GCOMPRIS_BAR_REPEAT);
gamewon = FALSE;
......@@ -287,6 +287,7 @@ static gint item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data) {
if (clicked >= 0) {
highlight_selected(clicked);
gamewon = (clicked == GPOINTER_TO_INT(g_list_nth_data(listColors,0)));
process_ok();
}
break;
......
......@@ -134,7 +134,7 @@ static void start_board (GcomprisBoard *agcomprisBoard) {
gcompris_set_background(gnome_canvas_root(gcomprisBoard->canvas), "read_colors/read_colors_background.png");
gcomprisBoard->level=1;
gcomprisBoard->maxlevel=1;
gcompris_bar_set(GCOMPRIS_BAR_OK);
gcompris_bar_set(0);
gamewon = FALSE;
errors = MAX_ERRORS;
......@@ -341,13 +341,13 @@ static void process_ok() {
static gint item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data) {
double x, y;
int i, j, clicked;
x = event->button.x;
y = event->button.y;
if(board_paused)
return FALSE;
switch (event->type)
{
case GDK_BUTTON_PRESS:
......@@ -361,8 +361,9 @@ static gint item_event(GnomeCanvasItem *item, GdkEvent *event, gpointer data) {
}
if (clicked >= 0) {
highlight_selected(clicked);
gamewon = (clicked == GPOINTER_TO_INT(g_list_nth_data(listColors,0)));
highlight_selected(clicked);
gamewon = (clicked == GPOINTER_TO_INT(g_list_nth_data(listColors,0)));
process_ok();
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment