EPhysics: add shoot button to collision test
authorBruno Dilly <bdilly@profusion.mobi>
Wed, 4 Jul 2012 22:06:07 +0000 (22:06 +0000)
committerBruno Dilly <bdilly@profusion.mobi>
Wed, 4 Jul 2012 22:06:07 +0000 (22:06 +0000)
Style was missing.

SVN revision: 73314

legacy/ephysics/data/themes/Makefile.am
legacy/ephysics/data/themes/buttons.edc
legacy/ephysics/data/themes/images/bt_shoot.png [new file with mode: 0644]
legacy/ephysics/data/themes/images/bt_shoot_pressed.png [new file with mode: 0644]

index 8aac2f3..e535f92 100644 (file)
@@ -32,6 +32,8 @@ EXTRA_DIST = \
        images/bt_jump_pressed.png \
        images/bt_restart.png \
        images/bt_restart_pressed.png \
+       images/bt_shoot.png \
+       images/bt_shoot_pressed.png \
        images/collisionL.png \
        images/cube-blue.png \
        images/cube-purple.png \
index 0fe801c..8409f05 100644 (file)
@@ -1,14 +1,12 @@
-   images {
-      image: "bt_jump.png" COMP;
-      image: "bt_jump_pressed.png" COMP;
-      image: "bt_restart.png" COMP;
-      image: "bt_restart_pressed.png" COMP;
-   }
-
 #define BUTTON_GROUP(_name) \
    group { \
       name: "elm/button/base/ephysics-test-"#_name; \
  \
+      images { \
+         image: "bt_"##_name##".png" COMP; \
+         image: "bt_"##_name##"_pressed.png" COMP; \
+      } \
+ \
       parts { \
  \
          part { \
  \
    }
 
-BUTTON_GROUP(restart)
 BUTTON_GROUP(jump)
+BUTTON_GROUP(restart)
+BUTTON_GROUP(shoot)
 
 #undef BUTTON_GROUP
diff --git a/legacy/ephysics/data/themes/images/bt_shoot.png b/legacy/ephysics/data/themes/images/bt_shoot.png
new file mode 100644 (file)
index 0000000..a325bdb
Binary files /dev/null and b/legacy/ephysics/data/themes/images/bt_shoot.png differ
diff --git a/legacy/ephysics/data/themes/images/bt_shoot_pressed.png b/legacy/ephysics/data/themes/images/bt_shoot_pressed.png
new file mode 100644 (file)
index 0000000..40fd83d
Binary files /dev/null and b/legacy/ephysics/data/themes/images/bt_shoot_pressed.png differ