XWidgetSoft Forum
https://www.bbs.xwidget.com/

function when pnganimate is running
https://www.bbs.xwidget.com/viewtopic.php?f=8&t=3777
Page 1 of 1

Author:  Jimking [ November 15th, 2013, 5:21 pm ]
Post subject:  function when pnganimate is running

Please guys could you pls help me with this?

I already made the 2 pngs animated with pic01-pic38 frames for each paper top and down.
I want to reproduce these:
1) When the bin is empty will show like this:
Image
text2 with "%IsEmpty" code and the two pnganim hidden.

2) When the bin contains files will show like this:
Image
text2 with "%IsEmpty" code, still the two pnganim hidden and appearing of the up paper image2

3) After right click clean trash function:
Image
text2 hidden,image2 hidden and show/start the 2 pnganimations, with loop 1, will hide both after the end of their anim
and return to the initial status = screenshot 1

Any help??? :roll:
Here is the widget with all the components:

Author:  Jimking [ November 17th, 2013, 12:07 pm ]
Post subject:  Re: function when pnganimate is running

For the start, widget with similar script:
viewtopic.php?f=11&t=3429

Author:  digigamer [ November 19th, 2013, 10:24 pm ]
Post subject:  Re: function when pnganimate is running

Sorry, but couldn't really get it. Can you make an ani gif in GIMP to show what you want?

Author:  Jimking [ November 20th, 2013, 1:05 am ]
Post subject:  Re: function when pnganimate is running

digigamer wrote:
Sorry, but couldn't really get it. Can you make an ani gif in GIMP to show what you want?

Thank you DG! I'm not so good creating gifs but I made this for you:
Image

I already created all the components for the widget. Please dl the file on the first post..

FOR THE STEP THREE:
Just imagine a real shredder. You put the paper on the top and the trash "eats" gradually the paper and moving down is cutting to pieces. ;)

Author:  qiancang [ November 20th, 2013, 7:55 am ]
Post subject:  Re: function when pnganimate is running

Attachment:
animated_shredder_trash.xwp [322.95 KiB]
Downloaded 291 times

Author:  Jimking [ November 20th, 2013, 9:07 am ]
Post subject:  Re: function when pnganimate is running

qiancang wrote:
Attachment:
animated_shredder_trash.xwp

PERFECT!!! Once again thanks a lot qiancang! :D :D

Edit:
One small thing qiancang. The "pnganimate1" (up paper) appears when the widget loads even when the RB is empty...
This should appears on the first run of the widget but only when the RB is full..

Author:  qiancang [ November 20th, 2013, 7:01 pm ]
Post subject:  Re: function when pnganimate is running

function widgetOnLoad()
{
pnganimate1.play = pnganimate2.play = false;
recyclebincore1OnUpdate()
}

Author:  Jimking [ November 20th, 2013, 7:42 pm ]
Post subject:  Re: function when pnganimate is running

Thank you qiancang! 8-)

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/