XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Jul 29日 03:44

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 2013年 Apr 16日 12:08 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
Is possible and how can I make a rotator with inverse movement..? (backwards)

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2013年 Apr 16日 17:21 
Offline
User avatar

Joined: 2012年 May 12日 20:32
Posts: 568
rotator1.percent = rotator1.percent - 1;

or

image1.rotateAngle = image1.rotateAngle - 5;

_________________
XWidget Software Developer
[XWidget for Android] [Lastest version of XWidget] [Lastest patch of XWidget]
[XDesktop for Android/Windows]


Top
 Profile  
 
PostPosted: 2013年 Apr 18日 03:27 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
Tony wrote:
rotator1.percent = rotator1.percent - 1;

or

image1.rotateAngle = image1.rotateAngle - 5;

Thank you Tony but could you please be more specific...?
Where I have to put this values? :? With inverse movement I mean that the rotator or image will move backward ΝΟΤ clockwise as a normal clock hand...Imagine two gears for example that move in different directions.

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2016年 Dec 2日 10:14 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
I need help guys. I'm trying to use Tony's script but I can't figure out how and if it works..
I tested it putting the script under

function datetimecore1OnUpdate(Sender)
or
function widgetOnLoad()

but no luck..
What I'm doing wrong..? :?

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2016年 Dec 3日 12:16 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 268
Tested this with datetimecore1 refresh interval set to 3 seconds, works OK.

function datetimecore1OnUpdate(Sender)
{
image1.rotateAngle = image1.rotateAngle - 5;
}


Top
 Profile  
 
PostPosted: 2016年 Dec 3日 13:39 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
Thanks meme! I had to changed the graphics but I will test it. :)
Since the refresh interval need to be changed to 3 secs, means that something is wrong though...

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2016年 Dec 3日 17:16 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 268
No... I only tested it at 3 seconds, just tested it again at 1 second, 500 ms and 50 ms, all work OK.

Not related but very handy, at 50 ms the graphic rotates as if smoothly animated. If it pauses during rotation then it shows the effect of other processes on your system, possibly other widgets running refresh or datetime functions.


Top
 Profile  
 
PostPosted: 2016年 Dec 3日 19:05 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4520
Thanks for your reply meme. :)
Before your answer I had tried using a rotator instead of image and didn't work..
So I suppose that works only using an image.

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Bing [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group