summaryrefslogtreecommitdiff
path: root/legacy/ephysics/data/themes/sandbox_misc.edc
blob: a239b051fec7debc9ca495cb637367dcf83b21ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
   group {
      name: "sandbox";
      min: 1280 720;
      max: 1280 720;

      externals {
         external: "elm";
      }

      images{
         image: "background.jpg" COMP;
      }

      parts {
        part {
            name: "bg";
            type: EXTERNAL;
            source: "elm/bg";
            mouse_events: 0;
            description {
               state: "default" 0.0;
               rel1.relative: 0.7 0;
               rel2.relative: 1 1;
               fixed: 1 1;
               align: 1 0.5;
            }
         }
         part {
            name: "bg_world";
            type: IMAGE;
            description {
               state: "default" 0.0;
               rel1.relative: 0.0 0.0;
               rel2.relative: 0.7 1.0;
               fixed: 1 1;
               image.normal: "background.jpg";
            }
         }
         part {
            name: "swallow";
            type: SWALLOW;
            description {
               state: "default" 0;
               rel1.relative: 0.7 0;
               rel2.relative: 1 1;
               fixed: 1 1;
            }
         }
      }
   }

#define SANDBOX_BALL_ADD(_name, _img) \
   images { \
      image: #_img##".png" COMP; \
   } \
   group { \
      name: #_name; \
      parts { \
         part { \
            name: "ball"; \
            mouse_events: 0; \
            type: IMAGE; \
            description { \
               state: "default" 0.0; \
               image.normal: #_img##".png"; \
            } \
         } \
      } \
   }

SANDBOX_BALL_ADD(Custom, ball-red70)
SANDBOX_BALL_ADD(Concrete, ball-concrete)
SANDBOX_BALL_ADD(Iron, ball-iron)
SANDBOX_BALL_ADD(Plastic, ball-plastic)
SANDBOX_BALL_ADD(Polystyrene, ball-polystyrene)
SANDBOX_BALL_ADD(Rubber, ball-rubber)
SANDBOX_BALL_ADD(Wood, ball-wood)

#undef SANDBOX_BALL_ADD