summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-11-09 18:53:17 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-11-09 18:53:17 +0000
commit8a70256010ef7f9a100e022a92cbe92d73cf839a (patch)
tree1de6895717c7fe88c3b9f99ab80d778201ab4994
parentd2ed5cbb47474c9e2ac0cb1ad3619bd76a85155b (diff)
ephysics: use macros on cubes and balls theme
SVN revision: 79046
-rw-r--r--legacy/ephysics/data/themes/balls.edc145
-rw-r--r--legacy/ephysics/data/themes/cubes.edc60
2 files changed, 45 insertions, 160 deletions
diff --git a/legacy/ephysics/data/themes/balls.edc b/legacy/ephysics/data/themes/balls.edc
index 957c1c4a32..c23965fa76 100644
--- a/legacy/ephysics/data/themes/balls.edc
+++ b/legacy/ephysics/data/themes/balls.edc
@@ -1,124 +1,27 @@
1 images { 1#define ADD_CIRCLE(_group, _file) \
2 image: "ball-blue.png" COMP; 2 images { \
3 image: "ball-blue70.png" COMP; 3 image: #_file##".png" COMP; \
4 image: "ball-green.png" COMP; 4 } \
5 image: "ball-green70.png" COMP; 5 group { \
6 image: "ball-red.png" COMP; 6 name: #_group; \
7 image: "ball-red70.png" COMP; 7 parts { \
8 } 8 part { \
9 9 name: "ball"; \
10 group { 10 mouse_events: 0; \
11 name: "blue-ball"; 11 type: IMAGE; \
12 12 description { \
13 parts { 13 state: "default" 0.0; \
14 14 image.normal: #_file##".png"; \
15 part { 15 } \
16 name: "ball"; 16 } \
17 mouse_events: 0; 17 } \
18 type: IMAGE;
19 description {
20 state: "default" 0.0;
21 image.normal: "ball-blue.png";
22 }
23 }
24
25 }
26
27 }
28
29 group {
30 name: "big-blue-ball";
31
32 parts {
33
34 part {
35 name: "ball";
36 mouse_events: 0;
37 type: IMAGE;
38 description {
39 state: "default" 0.0;
40 image.normal: "ball-blue70.png";
41 }
42 }
43
44 }
45
46 }
47
48 group {
49 name: "red-ball";
50
51 parts {
52
53 part {
54 name: "ball";
55 mouse_events: 0;
56 type: IMAGE;
57 description {
58 state: "default" 0.0;
59 image.normal: "ball-red.png";
60 }
61 }
62
63 }
64
65 }
66
67 group {
68 name: "big-red-ball";
69
70 parts {
71
72 part {
73 name: "ball";
74 mouse_events: 0;
75 type: IMAGE;
76 description {
77 state: "default" 0.0;
78 image.normal: "ball-red70.png";
79 }
80 }
81
82 }
83
84 }
85
86 group {
87 name: "green-ball";
88
89 parts {
90
91 part {
92 name: "ball";
93 mouse_events: 0;
94 type: IMAGE;
95 description {
96 state: "default" 0.0;
97 image.normal: "ball-green.png";
98 }
99 }
100
101 }
102
103 }
104
105 group {
106 name: "big-green-ball";
107
108 parts {
109
110 part {
111 name: "ball";
112 mouse_events: 0;
113 type: IMAGE;
114 description {
115 state: "default" 0.0;
116 image.normal: "ball-green70.png";
117 }
118 }
119
120 }
121
122 } 18 }
123 19
20ADD_CIRCLE(blue-ball, ball-blue)
21ADD_CIRCLE(big-blue-ball, ball-blue70)
22ADD_CIRCLE(red-ball, ball-red)
23ADD_CIRCLE(big-red-ball, ball-red70)
24ADD_CIRCLE(green-ball, ball-green)
25ADD_CIRCLE(big-green-ball, ball-green70)
124 26
27#undef ADD_CIRCLE
diff --git a/legacy/ephysics/data/themes/cubes.edc b/legacy/ephysics/data/themes/cubes.edc
index 3cc2be29bd..f5d1fb17b5 100644
--- a/legacy/ephysics/data/themes/cubes.edc
+++ b/legacy/ephysics/data/themes/cubes.edc
@@ -1,42 +1,24 @@
1 images { 1#define ADD_CUBE(_group, _file) \
2 image: "cube-blue.png" COMP; 2 images { \
3 image: "cube-purple.png" COMP; 3 image: #_file##".png" COMP; \
4 } \
5 group { \
6 name: #_group; \
7 parts { \
8 part { \
9 name: "cube"; \
10 type: IMAGE; \
11 mouse_events: 1; \
12 repeat_events: 0; \
13 description { \
14 state: "default" 0.0; \
15 image.normal: #_file##".png"; \
16 } \
17 } \
18 } \
4 } 19 }
5 20
6 group { 21ADD_CUBE(blue-cube, cube-blue);
7 name: "blue-cube"; 22ADD_CUBE(purple-cube, cube-purple);
8 23
9 parts { 24#undef ADD_CUBE
10
11 part {
12 name: "cube";
13 type: IMAGE;
14 mouse_events: 1;
15 repeat_events: 0;
16 description {
17 state: "default" 0.0;
18 image.normal: "cube-blue.png";
19 }
20 }
21
22 }
23 }
24
25 group {
26 name: "purple-cube";
27
28 parts {
29
30 part {
31 name: "cube";
32 type: IMAGE;
33 mouse_events: 1;
34 repeat_events: 0;
35 description {
36 state: "default" 0.0;
37 image.normal: "cube-purple.png";
38 }
39 }
40
41 }
42 }