On Thu, 15 Nov 2007 21:34:11 +0100 Dave <[EMAIL PROTECTED]> babbled:
hahahahah! :)
> Incredible, I have resolved 10 minutes after sending the request :)
> forgot it
>
> Dave
> > Hi all,
> > I have a strange problem using edje in the penguins module, I'll try to
> > explain it in my bad english...
> >
> > You can see the problem only with the lemmings population.
> > When you left-click on a lemming it start the bombing animation, as you
> > can probably see there's a glitch.
> > It is caused because the two animations (walking and bombing) have
> > different sizes.
> > This is the code:
> >
> > static void
> > _start_bombing_at(Penguin *tux, int at_y)
> > {
> > //printf("PENGUINS: Start bombing at %d...\n", at_y);
> >
> > if (tux->reverse)
> > edje_object_signal_emit(tux->obj, "start_bombing_left",
> > "epenguins"); *** Change animation
> > else
> > edje_object_signal_emit(tux->obj, "start_bombing_right", "epenguins");
> >
> > tux->x = tux->x + (tux->action->w /2);
> > tux->action = evas_hash_find(tux->pop->actions, "Bomber");
> > tux->x = tux->x - (tux->action->w /2);
> > tux->y = at_y - tux->action->h;
> >
> > edje_object_signal_callback_add(tux->obj,"bombing_done","edje",
> > _cb_bomber_end, tux);
> > evas_object_image_fill_set(tux->obj, 0, 0, tux->action->w,
> > tux->action->h);
> > evas_object_resize(tux->obj, tux->action->w,
> > tux->action->h); *** Change size
> > evas_object_move(tux->obj,(int)tux->x,(int)tux->y);
> >
> > }
> >
> > In the code I first call edje_object_signal_emit() to change the
> > animation and then change the size of the evas object to the right
> > dimension. But in real the evas is first resized (you can see the old
> > animation in the new size for a fraction of second) and then the new
> > tween animation is displayed.
> >
> > I don't have idea on how to solve this...it is an edje problem? or I
> > make something wrong?
> > please help, I'm on this since 2 weeks and can't find a good solution :(
> >
> > Thanks
> > Dave
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > enlightenment-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel