forked from enlightenment/efl
ephysics: use macros on cubes and balls theme
SVN revision: 79046
This commit is contained in:
parent
d2ed5cbb47
commit
8a70256010
|
@ -1,124 +1,27 @@
|
||||||
images {
|
#define ADD_CIRCLE(_group, _file) \
|
||||||
image: "ball-blue.png" COMP;
|
images { \
|
||||||
image: "ball-blue70.png" COMP;
|
image: #_file##".png" COMP; \
|
||||||
image: "ball-green.png" COMP;
|
} \
|
||||||
image: "ball-green70.png" COMP;
|
group { \
|
||||||
image: "ball-red.png" COMP;
|
name: #_group; \
|
||||||
image: "ball-red70.png" COMP;
|
parts { \
|
||||||
}
|
part { \
|
||||||
|
name: "ball"; \
|
||||||
group {
|
mouse_events: 0; \
|
||||||
name: "blue-ball";
|
type: IMAGE; \
|
||||||
|
description { \
|
||||||
parts {
|
state: "default" 0.0; \
|
||||||
|
image.normal: #_file##".png"; \
|
||||||
part {
|
} \
|
||||||
name: "ball";
|
} \
|
||||||
mouse_events: 0;
|
} \
|
||||||
type: IMAGE;
|
|
||||||
description {
|
|
||||||
state: "default" 0.0;
|
|
||||||
image.normal: "ball-blue.png";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
group {
|
|
||||||
name: "big-blue-ball";
|
|
||||||
|
|
||||||
parts {
|
|
||||||
|
|
||||||
part {
|
|
||||||
name: "ball";
|
|
||||||
mouse_events: 0;
|
|
||||||
type: IMAGE;
|
|
||||||
description {
|
|
||||||
state: "default" 0.0;
|
|
||||||
image.normal: "ball-blue70.png";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
group {
|
|
||||||
name: "red-ball";
|
|
||||||
|
|
||||||
parts {
|
|
||||||
|
|
||||||
part {
|
|
||||||
name: "ball";
|
|
||||||
mouse_events: 0;
|
|
||||||
type: IMAGE;
|
|
||||||
description {
|
|
||||||
state: "default" 0.0;
|
|
||||||
image.normal: "ball-red.png";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
group {
|
|
||||||
name: "big-red-ball";
|
|
||||||
|
|
||||||
parts {
|
|
||||||
|
|
||||||
part {
|
|
||||||
name: "ball";
|
|
||||||
mouse_events: 0;
|
|
||||||
type: IMAGE;
|
|
||||||
description {
|
|
||||||
state: "default" 0.0;
|
|
||||||
image.normal: "ball-red70.png";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
group {
|
|
||||||
name: "green-ball";
|
|
||||||
|
|
||||||
parts {
|
|
||||||
|
|
||||||
part {
|
|
||||||
name: "ball";
|
|
||||||
mouse_events: 0;
|
|
||||||
type: IMAGE;
|
|
||||||
description {
|
|
||||||
state: "default" 0.0;
|
|
||||||
image.normal: "ball-green.png";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
group {
|
|
||||||
name: "big-green-ball";
|
|
||||||
|
|
||||||
parts {
|
|
||||||
|
|
||||||
part {
|
|
||||||
name: "ball";
|
|
||||||
mouse_events: 0;
|
|
||||||
type: IMAGE;
|
|
||||||
description {
|
|
||||||
state: "default" 0.0;
|
|
||||||
image.normal: "ball-green70.png";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ADD_CIRCLE(blue-ball, ball-blue)
|
||||||
|
ADD_CIRCLE(big-blue-ball, ball-blue70)
|
||||||
|
ADD_CIRCLE(red-ball, ball-red)
|
||||||
|
ADD_CIRCLE(big-red-ball, ball-red70)
|
||||||
|
ADD_CIRCLE(green-ball, ball-green)
|
||||||
|
ADD_CIRCLE(big-green-ball, ball-green70)
|
||||||
|
|
||||||
|
#undef ADD_CIRCLE
|
||||||
|
|
|
@ -1,42 +1,24 @@
|
||||||
images {
|
#define ADD_CUBE(_group, _file) \
|
||||||
image: "cube-blue.png" COMP;
|
images { \
|
||||||
image: "cube-purple.png" COMP;
|
image: #_file##".png" COMP; \
|
||||||
|
} \
|
||||||
|
group { \
|
||||||
|
name: #_group; \
|
||||||
|
parts { \
|
||||||
|
part { \
|
||||||
|
name: "cube"; \
|
||||||
|
type: IMAGE; \
|
||||||
|
mouse_events: 1; \
|
||||||
|
repeat_events: 0; \
|
||||||
|
description { \
|
||||||
|
state: "default" 0.0; \
|
||||||
|
image.normal: #_file##".png"; \
|
||||||
|
} \
|
||||||
|
} \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
group {
|
ADD_CUBE(blue-cube, cube-blue);
|
||||||
name: "blue-cube";
|
ADD_CUBE(purple-cube, cube-purple);
|
||||||
|
|
||||||
parts {
|
#undef ADD_CUBE
|
||||||
|
|
||||||
part {
|
|
||||||
name: "cube";
|
|
||||||
type: IMAGE;
|
|
||||||
mouse_events: 1;
|
|
||||||
repeat_events: 0;
|
|
||||||
description {
|
|
||||||
state: "default" 0.0;
|
|
||||||
image.normal: "cube-blue.png";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
group {
|
|
||||||
name: "purple-cube";
|
|
||||||
|
|
||||||
parts {
|
|
||||||
|
|
||||||
part {
|
|
||||||
name: "cube";
|
|
||||||
type: IMAGE;
|
|
||||||
mouse_events: 1;
|
|
||||||
repeat_events: 0;
|
|
||||||
description {
|
|
||||||
state: "default" 0.0;
|
|
||||||
image.normal: "cube-purple.png";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue