hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=20dcc69221121e77f2e515dbb4e6b9662ebc7910

commit 20dcc69221121e77f2e515dbb4e6b9662ebc7910
Author: Hermet Park <[email protected]>
Date:   Wed Jul 27 23:38:24 2016 +0900

    template: add BgAnimation.
---
 data/images/ENVENTOR_EMBEDDED_BG1.png | Bin 0 -> 202767 bytes
 data/images/ENVENTOR_EMBEDDED_BG2.png | Bin 0 -> 18645 bytes
 data/images/ENVENTOR_EMBEDDED_BG3.png | Bin 0 -> 54742 bytes
 data/images/Makefile.am               |   3 ++
 data/templates/BgAnimation.edc        |  60 ++++++++++++++++++++++++++++++++++
 data/templates/Makefile.am            |   7 ++--
 6 files changed, 68 insertions(+), 2 deletions(-)

diff --git a/data/images/ENVENTOR_EMBEDDED_BG1.png 
b/data/images/ENVENTOR_EMBEDDED_BG1.png
new file mode 100644
index 0000000..de3c529
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_BG1.png differ
diff --git a/data/images/ENVENTOR_EMBEDDED_BG2.png 
b/data/images/ENVENTOR_EMBEDDED_BG2.png
new file mode 100644
index 0000000..b410240
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_BG2.png differ
diff --git a/data/images/ENVENTOR_EMBEDDED_BG3.png 
b/data/images/ENVENTOR_EMBEDDED_BG3.png
new file mode 100644
index 0000000..fdf5cf7
Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_BG3.png differ
diff --git a/data/images/Makefile.am b/data/images/Makefile.am
index 95a8d41..f3092a3 100644
--- a/data/images/Makefile.am
+++ b/data/images/Makefile.am
@@ -40,6 +40,9 @@ files_DATA = ENVENTOR_EMBEDDED_IMAGE.png \
              ENVENTOR_EMBEDDED_BAT1.svg \
              ENVENTOR_EMBEDDED_BAT2.svg \
              ENVENTOR_EMBEDDED_SVG.svg \
+             ENVENTOR_EMBEDDED_BG1.png \
+             ENVENTOR_EMBEDDED_BG2.png \
+             ENVENTOR_EMBEDDED_BG3.png \
              enventor_logo.png
 
 EXTRA_DIST = $(files_DATA)
diff --git a/data/templates/BgAnimation.edc b/data/templates/BgAnimation.edc
new file mode 100644
index 0000000..4f72ac5
--- /dev/null
+++ b/data/templates/BgAnimation.edc
@@ -0,0 +1,60 @@
+collections {
+   base_scale: 1.0;
+   group { "main";
+      /* TODO: Please replace embedded image files to your application image 
files. */
+      images {
+         image: "ENVENTOR_EMBEDDED_BG1.png" COMP;
+         image: "ENVENTOR_EMBEDDED_BG2.png" COMP;
+         image: "ENVENTOR_EMBEDDED_BG3.png" COMP;
+      }
+      parts {
+         image { "night";
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_BG1.png";
+            }
+         }
+         image { "sky";
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_BG2.png";
+            }
+            desc { "sunset";
+               inherit: "default";
+               color: 255 125 125 255;
+            }
+            desc { "night";
+               inherit: "default";
+               color: 0 0 0 0;
+            }
+         }
+         image { "mountain";
+            desc { "default";
+               /* TODO: Please replace embedded image files to your 
application image files. */
+               image.normal: "ENVENTOR_EMBEDDED_BG3.png";
+            }
+         }
+      }
+      programs {
+         program { "sunset";
+            signal: "load";
+            action: STATE_SET "sunset";
+            transition: LINEAR 5.0;
+            target: "sky";
+            after: "night";
+         }
+         program { "night";
+            action: STATE_SET "night";
+            transition: LINEAR 5.0;
+            target: "sky";
+            after: "day";
+         }
+         program { "day";
+            action: STATE_SET "default";
+            transition: LINEAR 5.0;
+            target: "sky";
+            after: "sunset";
+         }
+      }
+   }
+}
diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am
index dbf26b2..b15dc22 100644
--- a/data/templates/Makefile.am
+++ b/data/templates/Makefile.am
@@ -51,8 +51,9 @@ files_DATA = Basic.edc \
              Vector.edc \
              Vector.edj \
              Interpolation.edc \
-             Interpolation.edj
-
+             Interpolation.edj \
+             BgAnimation.edc \
+             BgAnimation.edj
 
 EXTRA_DIST = $(files_DATA)
 
@@ -131,6 +132,8 @@ Vector.edj: Makefile Vector.edc
 Interpolation.edj: Makefile Interpolation.edc
        $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Interpolation.edc 
$(builddir)/Interpolation.edj
 
+BgAnimation.edj: Makefile BgAnimation.edc
+       $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/BgAnimation.edc 
$(builddir)/BgAnimation.edj
 
 clean-local:
        rm -f *.edj

-- 


Reply via email to