template: add Mask example.
This commit is contained in:
parent
4f3e016ca9
commit
a23ef99cdb
Binary file not shown.
After Width: | Height: | Size: 187 KiB |
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue