#define TABLE_IMAGE(_name, _text) \ group { \ name: _name"_group"; \ images { \ image: "images/"_name".png" COMP; \ } \ parts { \ part { \ name: _name; \ type: IMAGE; \ description { \ state: "default" 0.0; \ max: 48 48; \ fixed: 1 1; \ aspect: 1 1; \ aspect_preference: NONE; \ rel2 { \ relative: 1 1; \ offset: 0 -68; \ to_y: _name"_text"; \ } \ image { \ normal: "images/"_name".png"; \ } \ } \ } \ part { \ name: _name"_text"; \ type: TEXT; \ description { \ state: "default" 0.0; \ color: 255 255 255 255; \ fixed: 1 1; \ align: 0.5 0; \ rel2 { \ offset: 0 48; \ } \ text { \ text: _text; \ size: 12; \ font: "Sans"; \ } \ } \ } \ } \ } \ #define TABLE_ITEM(_source, a, b) \ item { \ type: GROUP; \ source: _source"_group"; \ weight: 1 1; \ position: a b; \ align: -1 -1; \ } \ collections { group { name: "background_group"; images { image: "images/background.jpeg" COMP; } parts { part { name: "background"; type: IMAGE; description { state: "default" 0.0; fixed: 1 1; image { normal: "images/background.jpeg"; } } } part { name: "table"; type: TABLE; description { state: "default" 0.0; fixed: 1 1; } table { items { TABLE_ITEM("calculator", 0, 0); TABLE_ITEM("config", 1, 0); TABLE_ITEM("games", 2, 0); TABLE_ITEM("graphics", 0, 1); TABLE_ITEM("internet", 1, 1); TABLE_ITEM("multimedia", 2, 1); } } } } } TABLE_IMAGE("calculator", "Calculatrice"); TABLE_IMAGE("config", "Configuration"); TABLE_IMAGE("games", "Jeux"); TABLE_IMAGE("graphics", "Graphisme"); TABLE_IMAGE("internet", "Internet"); TABLE_IMAGE("multimedia", "Multimédia"); }