I couldnt find a How-To so I poked around in some example files and put together a Mini How-To.
I dont have any webspace to put up a zip-file so I'll just be giving instructions.
There werent any comments so I tried to add my own where I could.
Images used - 5 numberd PNG's, 1 overlay image, 1 background image. 1 placeholder image.
Open gimp
make a black 800x600 image , save it as black.png
make a 1 pixel transparent image, save it as 1pix.png
make 5 transparent pngs, each with a different number in it, 1 to 5, and save them as 1- 5 .png.
Save this as reflection_overlay.png http://img131.imageshack.us/img131/2363 ... lay0ee.png
Save the following as demo.edc
Code: Select all
/*---------------------------------*/
/* Load Images to Use */
/*---------------------------------*/
images {
image: "1.png" COMP; /* Animation Image */
image: "2.png" COMP; /* Animation Image */
image: "3.png" COMP; /* Animation Image */
image: "4.png" COMP; /* Animation Image */
image: "5.png" COMP; /* Animation Image */
image: "1pix.png" COMP; /* Placeholder Image */
image: "black.png" COMP; /* Background Image */
image: "reflection_overlay.png" COMP; /* Background Overlay */
}
/*-----------------------------------------*/
/* Finished Loading Images */
/* Begin the madness */
/*-----------------------------------------*/
collections {
group {
name: "desktop/background";
script {
public is_ready;
public do_end;
} /*script*/
/*---------------------------------*/
parts { /* Begin Creating Image Entries */
/*---------------------------------*/
part { /* This is the Main Background Image, Or Color */
name: "background";
description {
state: "default" 0.0;
image {normal: "black.png";}
} /*desc*/
} /*part*/
/*---------------------------------*/
part { /* This is a little wavy overlay on top of the background */
name: "reflection_overlay";
description {
state: "default" 0.0;
image {normal: "reflection_overlay.png";}
} /*desc*/
} /*part*/
/*---------------------------------*/
part { /* This is the Location of the Animations */
name: "logo_point";
type: RECT;
description {
state: "default" 0.0;
color: 0 0 0 0;
visible: 0;
aspect: 1 1;
max: 160 160; /* Size of the Animations */
} /*desc*/
description {
state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
visible: 1;
} /*desc*/
} /*part*/
/*---------------------------------*/
part { /* Animation Setups*/
name: "logo";
clip_to: "logo_point";
description { /* Zoom In Enable/Disable */
state: "default" 0.0;
visible: 0;
image {normal: "1pix.png";}; /* Placeholder 1 pix Image*/
} /*desc*/
description { /* Animations Below */
state: "loop" 0.0;
visible: 1;
rel1 {
offset: 0 0;
to: "logo_point";
} /*rel1*/
rel2 {
offset: 0 0;
to: "logo_point";
} /*rel2*/
image {
normal: "1.png"; /* These are the Animations */
tween: "2.png";
tween: "3.png";
tween: "4.png";
tween: "5.png";
} /*image*/
} /*desc*/
} /*part*/
/*---------------------------------*/
} /*parts*/
/*---------------------------------*/
programs {
program {
name: "init";
signal: "load";
source: "";
script {
set_int(is_ready, 0);
set_int(do_end, 0);
} /*script*/
} /*program*/
program {
name: "init_pause";
signal: "show";
source: "";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.0; /* Image Timers */
target: "logo_point";
after: "logo_show";
after: "logo_animate";
} /*program*/
program {
name: "logo_show";
action: STATE_SET "visible" 0.0;
transition: LINEAR 0.0; /* Image Timers */
target: "logo_point";
} /*program*/
program {
name: "logo_animate";
action: STATE_SET "intro_start" 0.0;
target: "logo";
after: "logo_animate2";
} /*program*/
program {
name: "logo_animate2";
action: STATE_SET "intro_go" 0.0;
transition: LINEAR 0.0; /* Image Timers */
target: "logo";
after: "logo_animate2b";
} /*program*/
program {
name: "logo_animate2b";
script {
new val;
val = get_int(do_end);
if (val == 1)
run_program(PROGRAM:"done2");
else
set_int(is_ready, 1);
} /*script*/
after: "logo_animate3";
} /*program*/
program {
name: "logo_animate3";
action: STATE_SET "loop" 0.0;
target: "logo";
after: "logo_animate4";
} /*program*/
program {
name: "logo_animate4";
action: STATE_SET "loop" 0.0;
transition: LINEAR 3.0; /* Image Timers */
target: "logo";
after: "logo_animate4";
} /*program*/
program {
name: "done1";
signal: "done";
source: "";
script {
new val;
val = get_int(is_ready);
if (val == 1)
run_program(PROGRAM:"done2");
else
set_int(do_end, 1);
} /*script*/
} /*program*/
program {
name: "done2";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.0; /* Image Timers */
target: "logo_point";
after: "done3";
} /*program*/
program {
name: "done3";
action: SIGNAL_EMIT "done_ok" "";
} /*program*/
/*---------------------------------*/
} /*group*/
} /*collect*/
Code: Select all
edje_cc demo.edc demo.edjOpen Emblem and select the new Background, you will see it scrolling 1- 5 in the preview pane, click it and it will be on your desktop scrolling 1- 5.
Emblem Screen
http://img130.imageshack.us/img130/3720/emblem15yn.jpg
Bad screen of the image on my desktop
http://img130.imageshack.us/img130/5585/bg16ur.jpg
There ya go, now just replace the 1- 5 pngs with images of your choice and youve got your own animated background.





