summaryrefslogtreecommitdiff
path: root/legacy/ephysics
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-09 19:59:25 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-09 19:59:25 +0000
commit9a5f9bc6d56fccdb67b002f631b646957be14dca (patch)
tree95f4f4cf12e7cfb26d8d5773dbb52ceacb2cc1b0 /legacy/ephysics
parent02d551e3a9c4d1c926678fa4a75bba5dd9988eee (diff)
ephysics: use macro for balls groups on sandbox theme
SVN revision: 77673
Diffstat (limited to 'legacy/ephysics')
-rw-r--r--legacy/ephysics/data/themes/sandbox_misc.edc136
1 files changed, 25 insertions, 111 deletions
diff --git a/legacy/ephysics/data/themes/sandbox_misc.edc b/legacy/ephysics/data/themes/sandbox_misc.edc
index 3068373bf1..a239b051fe 100644
--- a/legacy/ephysics/data/themes/sandbox_misc.edc
+++ b/legacy/ephysics/data/themes/sandbox_misc.edc
@@ -1,13 +1,3 @@
1 images {
2 image: "ball-red70.png" COMP;
3 image: "ball-concrete.png" COMP;
4 image: "ball-iron.png" COMP;
5 image: "ball-plastic.png" COMP;
6 image: "ball-polystyrene.png" COMP;
7 image: "ball-rubber.png" COMP;
8 image: "ball-wood.png" COMP;
9 }
10
11 group { 1 group {
12 name: "sandbox"; 2 name: "sandbox";
13 min: 1280 720; 3 min: 1280 720;
@@ -59,107 +49,31 @@
59 } 49 }
60 } 50 }
61 51
62 group { 52#define SANDBOX_BALL_ADD(_name, _img) \
63 name: "Custom"; 53 images { \
64 parts { 54 image: #_img##".png" COMP; \
65 part { 55 } \
66 name: "ball"; 56 group { \
67 mouse_events: 0; 57 name: #_name; \
68 type: IMAGE; 58 parts { \
69 description { 59 part { \
70 state: "default" 0.0; 60 name: "ball"; \
71 image.normal: "ball-red70.png"; 61 mouse_events: 0; \
72 } 62 type: IMAGE; \
73 } 63 description { \
74 } 64 state: "default" 0.0; \
75 } 65 image.normal: #_img##".png"; \
76 66 } \
77 group { 67 } \
78 name: "Concrete"; 68 } \
79 parts {
80 part {
81 name: "ball";
82 mouse_events: 0;
83 type: IMAGE;
84 description {
85 state: "default" 0.0;
86 image.normal: "ball-concrete.png";
87 }
88 }
89 }
90 }
91
92 group {
93 name: "Iron";
94 parts {
95 part {
96 name: "ball";
97 mouse_events: 0;
98 type: IMAGE;
99 description {
100 state: "default" 0.0;
101 image.normal: "ball-iron.png";
102 }
103 }
104 }
105 }
106
107 group {
108 name: "Plastic";
109 parts {
110 part {
111 name: "ball";
112 mouse_events: 0;
113 type: IMAGE;
114 description {
115 state: "default" 0.0;
116 image.normal: "ball-plastic.png";
117 }
118 }
119 }
120 }
121
122 group {
123 name: "Polystyrene";
124 parts {
125 part {
126 name: "ball";
127 mouse_events: 0;
128 type: IMAGE;
129 description {
130 state: "default" 0.0;
131 image.normal: "ball-polystyrene.png";
132 }
133 }
134 }
135 } 69 }
136 70
137 group { 71SANDBOX_BALL_ADD(Custom, ball-red70)
138 name: "Rubber"; 72SANDBOX_BALL_ADD(Concrete, ball-concrete)
139 parts { 73SANDBOX_BALL_ADD(Iron, ball-iron)
140 part { 74SANDBOX_BALL_ADD(Plastic, ball-plastic)
141 name: "ball"; 75SANDBOX_BALL_ADD(Polystyrene, ball-polystyrene)
142 mouse_events: 0; 76SANDBOX_BALL_ADD(Rubber, ball-rubber)
143 type: IMAGE; 77SANDBOX_BALL_ADD(Wood, ball-wood)
144 description {
145 state: "default" 0.0;
146 image.normal: "ball-rubber.png";
147 }
148 }
149 }
150 }
151 78
152 group { 79#undef SANDBOX_BALL_ADD
153 name: "Wood";
154 parts {
155 part {
156 name: "ball";
157 mouse_events: 0;
158 type: IMAGE;
159 description {
160 state: "default" 0.0;
161 image.normal: "ball-wood.png";
162 }
163 }
164 }
165 }