forked from enlightenment/enventor
template: add rotation+zoom
This commit is contained in:
parent
9ac6faaa9e
commit
b0ce2bda44
|
@ -20,6 +20,8 @@ files_DATA = basic.edc \
|
|||
proxy.edj \
|
||||
rect.edc \
|
||||
rect.edj \
|
||||
rotation+zoom.edc \
|
||||
rotation+zoom.edj \
|
||||
sound.edc \
|
||||
sound.edj \
|
||||
spacer.edc \
|
||||
|
@ -59,6 +61,9 @@ tween.edj: Makefile tween.edc
|
|||
rect.edj: Makefile rect.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/rect.edc $(builddir)/rect.edj
|
||||
|
||||
rotation+zoom.edj: Makefile rotation+zoom.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/rotation+zoom.edc $(builddir)/rotation+zoom.edj
|
||||
|
||||
image.edj: Makefile image.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/image.edc $(builddir)/image.edj
|
||||
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
collections {
|
||||
images {
|
||||
image: "logo.png" COMP;
|
||||
}
|
||||
group { name: "main";
|
||||
parts {
|
||||
part { name: "logo";
|
||||
type: IMAGE;
|
||||
description { state: "default" 0.0;
|
||||
image.normal: "logo.png";
|
||||
aspect: 1 1;
|
||||
aspect_preference: BOTH;
|
||||
map.on: 1;
|
||||
}
|
||||
description { state: "rotated" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
map.rotation.z: 360;
|
||||
map.zoom.x: 0.25;
|
||||
map.zoom.y: 0.25;
|
||||
}
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program { name: "anim1";
|
||||
signal: "load";
|
||||
source: "";
|
||||
action: STATE_SET "rotated" 0.0;
|
||||
target: "logo";
|
||||
transition: ACCELERATE 2;
|
||||
after: "anim2";
|
||||
}
|
||||
program { name: "anim2";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "logo";
|
||||
transition: ACCELERATE 2.0;
|
||||
after: "anim1";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue