hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=a23ef99cdb6f074f5bc2675ad3116f863faf7edb
commit a23ef99cdb6f074f5bc2675ad3116f863faf7edb Author: Hermet Park <her...@hermet.pe.kr> Date: Sat Aug 6 01:37:18 2016 +0900 template: add Mask example. --- data/images/ENVENTOR_EMBEDDED_MASK.png | Bin 0 -> 191653 bytes data/images/Makefile.am | 1 + data/templates/Makefile.am | 6 +++- data/templates/Mask.edc | 54 +++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 1 deletion(-) diff --git a/data/images/ENVENTOR_EMBEDDED_MASK.png b/data/images/ENVENTOR_EMBEDDED_MASK.png new file mode 100644 index 0000000..b71600c Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_MASK.png differ diff --git a/data/images/Makefile.am b/data/images/Makefile.am index 10e18aa..40ecef5 100644 --- a/data/images/Makefile.am +++ b/data/images/Makefile.am @@ -50,6 +50,7 @@ files_DATA = ENVENTOR_EMBEDDED_IMAGE.png \ ENVENTOR_EMBEDDED_CHERRY.png \ ENVENTOR_EMBEDDED_MELON.png \ ENVENTOR_EMBEDDED_WATERMELON.png \ + ENVENTOR_EMBEDDED_MASK.png \ enventor_logo.png EXTRA_DIST = $(files_DATA) diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am index f2f5cb7..c34763a 100644 --- a/data/templates/Makefile.am +++ b/data/templates/Makefile.am @@ -55,7 +55,9 @@ files_DATA = Basic.edc \ BgAnimation.edc \ BgAnimation.edj \ GameStage.edc \ - GameStage.edj + GameStage.edj \ + Mask.edc \ + Mask.edj EXTRA_DIST = $(files_DATA) @@ -140,6 +142,8 @@ BgAnimation.edj: Makefile BgAnimation.edc GameStage.edj: Makefile GameStage.edc $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/GameStage.edc $(builddir)/GameStage.edj +Mask.edj: Makefile Mask.edc + $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Mask.edc $(builddir)/Mask.edj clean-local: rm -f *.edj diff --git a/data/templates/Mask.edc b/data/templates/Mask.edc new file mode 100644 index 0000000..bbe30ba --- /dev/null +++ b/data/templates/Mask.edc @@ -0,0 +1,54 @@ +collections { + base_scale: 1.0; + group { "main"; + /* TODO: Please replace embedded image files to your application image files. */ + images { + image: "ENVENTOR_EMBEDDED_TRIAB-12.png" COMP; + image: "ENVENTOR_EMBEDDED_MASK.png" COMP; + image: "ENVENTOR_EMBEDDED_BG2.png" COMP; + } + parts { + image { "bg" + desc { "default" + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_BG2.png"; + }; + } + image { "mask"; + desc { "default"; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_MASK.png"; + } + } + image { "image"; + clip_to: "mask"; + desc { "default"; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_TRIAB-12.png"; + rel1.relative: -1.0 0; + rel2.relative: 0.0 1.0; + } + desc { "anim"; + inherit: "default"; + rel1.relative: 1.0 0; + rel2.relative: 2.0 1.0; + } + } + } + programs { + program { "anim1"; + signal: "load"; + action: STATE_SET "anim"; + transition: LINEAR 3; + target: "image"; + after: "anim2"; + } + program { "anim2"; + action: STATE_SET "default"; + transition: LINEAR 3; + target: "image"; + after: "anim1"; + } + } + } +} \ No newline at end of file --