Commit 3a943419 authored by Bruno Coudoin's avatar Bruno Coudoin

- Improvement in the new scale activity my Miguel.

	  removed deprecated code from shapegame.
	  removed old scale activity based on the puzzle code.
	  rescaled the tabepice.jpg image to better suit the new scale.
parent 8257fb61
2006-12-12 Bruno coudoin <bruno.coudoin@free.fr>
- Improvement in the new scale activity my Miguel.
removed deprecated code from shapegame.
removed old scale activity based on the puzzle code.
rescaled the tabepice.jpg image to better suit the new scale.
* boards/Makefile.am:
* boards/scales/Makefile.am:
* boards/scales/balance.png:
* boards/scales/board1_0.xml.in:
* boards/scales/board1_1.xml.in:
* boards/scales/board1_2.xml.in:
* boards/scales/board1_3.xml.in:
* boards/scales/board1_4.xml.in:
* boards/scales/board1_5.xml.in:
* boards/scales/board2_0.xml.in:
* boards/scales/board2_1.xml.in:
* boards/scales/board2_2.xml.in:
* boards/scales/board2_3.xml.in:
* boards/scales/board2_4.xml.in:
* boards/scales/board2_5.xml.in:
* boards/scales/board3_0.xml.in:
* boards/scales/board3_1.xml.in:
* boards/scales/board3_2.xml.in:
* boards/scales/board3_3.xml.in:
* boards/scales/board3_4.xml.in:
* boards/scales/board3_5.xml.in:
* boards/scales/bras.png:
* boards/scales/plateau.png:
* boards/scales/scales.png:
* boards/scales/tabepice.jpg:
* configure.in:
* docs/C/python.html:
* docs/C/python.xml:
* src/boards/scale.c: (start_board), (end_board),
(get_weight_plateau), (scale_anim_plateau), (scale_item_move_to),
(scale_item_event), (scale_drag_event), (scale_list_add_weight),
(scale_list_add_object), (test_addition), (scale_make_level),
(scale_next_level), (process_ok), (save_table), (conf_ok),
(config_start), (config_stop):
* src/boards/shapegame.c: (process_ok), (read_xml_file):
2006-12-11 Bruno coudoin <bruno.coudoin@free.fr>
- Moved chat out of experimental. It has an icon now
......
SUBDIRS = gcompris read_colors advanced_colors babymatch babyshapes imageid imagename missing_letter paintings scales doubleentry geography chronos
SUBDIRS = gcompris read_colors advanced_colors babymatch babyshapes imageid imagename missing_letter paintings doubleentry geography chronos
xmldir = $(pkgdatadir)/@PACKAGE_DATA_DIR@
......
xmldir = $(pkgdatadir)/@PACKAGE_DATA_DIR@/scales
xml_in_files = \
board1_0.xml.in \
board1_1.xml.in \
board1_2.xml.in \
board1_3.xml.in \
board1_4.xml.in \
board1_5.xml.in \
board2_0.xml.in \
board2_1.xml.in \
board2_2.xml.in \
board2_3.xml.in \
board2_4.xml.in \
board2_5.xml.in \
board3_0.xml.in \
board3_1.xml.in \
board3_2.xml.in \
board3_3.xml.in \
board3_4.xml.in \
board3_5.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml)
#
# Do not use the INTLTOOL_XML_RULE, we don't need to embed the translations
# in the file themselves. GCompris pick the translations from the po file at
# runtime.
#
$(xml_DATA): %.xml: %.xml.in
sed -e "s/\(<\{1\}\/*\)_/\1/g" $< > $@
CLEANFILES = $(xml_DATA)
boards/scales/balance.png

40.7 KB | W: | H:

boards/scales/balance.png

17.6 KB | W: | H:

boards/scales/balance.png
boards/scales/balance.png
boards/scales/balance.png
boards/scales/balance.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="5">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="490" zoomx="1" zoomy="1" position="1"/>
<Title x="394" y="490" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="1" type="SHAPE_BACKGROUND"/>
<Title name="5" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="1" type="SHAPE_BACKGROUND"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="200" y="172" zoomx="1" zoomy="1" position="1"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="250" y="172" zoomx="1" zoomy="1" position="1"/>
<Shape name="V" pixmapfile="scales/tabepice.jpg" x="405" y="260" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="7">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="7" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="8">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="8" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="10">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="10" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="9">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="9" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="6">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="6" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="10">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="10" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="12">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="12" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="400" y="250" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="13">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="13" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="14">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="14" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="15">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="15" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="17">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="17" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="6" pixmapfile="scales/masse6.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="17">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="17" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="6" pixmapfile="scales/masse6.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="19">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="19" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="1" pixmapfile="scales/masse1.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="21">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="21" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="6" pixmapfile="scales/masse6.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="5" pixmapfile="scales/masse5.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="22">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="22" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="7" pixmapfile="scales/masse7.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="8" pixmapfile="scales/masse8.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="2" pixmapfile="scales/masse2.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="25">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="25" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="8" pixmapfile="scales/masse8.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="7" pixmapfile="scales/masse7.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="6" pixmapfile="scales/masse6.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="4" pixmapfile="scales/masse4.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
<?xml version="1.0" encoding="UTF-8"?>
<ShapeGame OkIfAddedName="26">
<Shape name="1" pixmapfile="skin:gcompris-shapelabel.png" type="SHAPE_BACKGROUND"
x="405" y="460" zoomx="1" zoomy="1" position="0"/>
<Title x="394" y="460" justification="GTK_JUSTIFY_CENTER" color_skin="gcompris/text button">
<_name>Drag and Drop masses to balance the scales</_name>
</Title>
<Shape name="M" pixmapfile="scales/masse.png" x="585" y="172" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Title name="26" x="585" y="180" justification="GTK_JUSTIFY_CENTER"/>
<Shape name="B" pixmapfile="scales/scales.png" x="400" y="250" zoomx="1" zoomy="1" position="0" type="SHAPE_BACKGROUND"/>
<Shape name="10" pixmapfile="scales/masse10.png" x="200" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="9" pixmapfile="scales/masse9.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="8" pixmapfile="scales/masse8.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="7" pixmapfile="scales/masse7.png" x="300" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="6" pixmapfile="scales/masse6.png" x="250" y="172" zoomx="1" zoomy="1" position="0"/>
<Shape name="3" pixmapfile="scales/masse3.png" x="350" y="172" zoomx="1" zoomy="1" position="0"/>
</ShapeGame>
boards/scales/bras.png

14.5 KB | W: | H:

boards/scales/bras.png

3.11 KB | W: | H:

boards/scales/bras.png
boards/scales/bras.png
boards/scales/bras.png
boards/scales/bras.png
  • 2-up
  • Swipe
  • Onion skin
boards/scales/plateau.png

9.41 KB | W: | H:

boards/scales/plateau.png

5.35 KB | W: | H:

boards/scales/plateau.png
boards/scales/plateau.png
boards/scales/plateau.png
boards/scales/plateau.png
  • 2-up
  • Swipe
  • Onion skin
boards/scales/tabepice.jpg

42.8 KB | W: | H:

boards/scales/tabepice.jpg

68 KB | W: | H:

boards/scales/tabepice.jpg
boards/scales/tabepice.jpg
boards/scales/tabepice.jpg
boards/scales/tabepice.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -569,7 +569,6 @@ boards/imagename/Makefile
boards/missing_letter/Makefile
boards/paintings/Makefile
boards/read_colors/Makefile
boards/scales/Makefile
])
echo ""
......
This diff is collapsed.
......@@ -36,6 +36,10 @@ xsltproc -o python.html http://docbook.sourceforge.net/release/xsl/current/html/
<revnumber>0.4</revnumber>
<date>January 2005</date>
</revision>
<revision>
<revnumber>0.5</revnumber>
<date>December 2006</date>
</revision>
</revhistory>
</articleinfo>
<title>Python wrapper for Gcompris</title>
......
This diff is collapsed.
......@@ -35,13 +35,6 @@
static int gamewon;
static gint addedname; /* Defined the rules to apply to determine if the
board is done.
- by default it is puzzle like, each piece at its place
- If addedname is set, then this value is compared to the
sum of each xml name value of the placed pieces
*/
static GcomprisBoard *gcomprisBoard = NULL;
static gboolean board_paused = TRUE;
static gboolean shadow_enable;
......@@ -474,51 +467,16 @@ static void process_ok()
GList *list;
gboolean done = TRUE;
/*
* Here I implements the resolving rules.
*/
if(addedname == INT_MAX)
{
/* - Default is to be puzzle like. Check that each piece is at its place */
/* Loop through all the shapes to find if all target are found */
for(list = shape_list; list != NULL; list = list->next) {
Shape *shape = list->data;
if(shape->type==SHAPE_TARGET)
{
if(shape->placed!=shape)
done=FALSE;
}
}
}
else
{
/* - if addedname is set, then adding int name field of placed piece must
* equals addedname
*/
gint total = 0;
for(list = shape_list; list != NULL; list = list->next) {
Shape *shape = list->data;
gint intname = 0;
g_warning(" shape = %s\n", shape->name);
if(shape->type==SHAPE_TARGET && shape->placed)
{
intname = atoi(shape->name);
total += intname;
g_warning(" shape = %s placed=TRUE\n", shape->name);
}
/* Loop through all the shapes to find if all target are found */
for(list = shape_list; list != NULL; list = list->next) {
Shape *shape = list->data;
if(shape->type==SHAPE_TARGET)
{
if(shape->placed!=shape)
done=FALSE;
}
if(total != addedname)
done = FALSE;
g_warning("checking for addedname=%d done=%d total=%d\n", addedname, done, total);
}
}
if(done)
{
......@@ -1773,11 +1731,6 @@ read_xml_file(char *fname)
return FALSE;
}
/*--------------------------------------------------*/
/* Read OkIfAddedName property */
addedname = xmlGetProp_Double(doc->children, BAD_CAST "OkIfAddedName", INT_MAX);
g_warning("addedname=%d\n", addedname);
/*--------------------------------------------------*/
/* Read ShapeBox property */
shapeBox.x = xmlGetProp_Double(doc->children, BAD_CAST "shapebox_x", 15);
......
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