XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 1:44 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Help with animation
PostPosted: July 4th, 2012, 8:40 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
Hi all! I have a problem:
I created this skin. When you hover over the skin panel appears. This panel consists of two pages, which are switched between a scrolling mouse or by pressing on the buttons below.
Attachment:
1.png
1.png [ 802.46 KiB | Viewed 3837 times ]

The problem lies in the fact that they are switched without animation, even though I added through the editor.
Here's how the skin looks in the editor:
Attachment:
3.PNG
3.PNG [ 271.42 KiB | Viewed 3837 times ]

Tell me how to add animation.Tell me how to add animation. I would like as a slide panel. ;)


Top
 Profile  
 
 Post subject: Re: Help with animation
PostPosted: July 29th, 2012, 12:33 am 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313
Attachment:
QQ截图未命名.png
QQ截图未命名.png [ 2.18 KiB | Viewed 3699 times ]

function layer1OnMouseWheelUp(Sender)
{
// .InitAnimateChange and .StartAnimateChange is together
layer1.InitAnimateChange;
layer2.visible=!layer2.visible;// layer2 and layer3 must be layer1's children
layer3.visible=!layer3.visible;
//layer1.AnimateChange.Duration= (float,0.00~3.00,second)
//layer1.AnimateChange.SwitchEffect= (int,0~27)
//layer1.AnimateChange.DynamicEffect= (int,0~10)
//layer1.AnimateChange.Occasion= (int,0~2)

layer1.StartAnimateChange;
}

Attachment:
ainimation.rar [3.71 KiB]
Downloaded 392 times


Top
 Profile  
 
 Post subject: Re: Help with animation
PostPosted: July 29th, 2012, 7:25 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
qiancang wrote:
Attachment:
QQ截图未命名.png

function layer1OnMouseWheelUp(Sender)
{
// .InitAnimateChange and .StartAnimateChange is together
layer1.InitAnimateChange;
layer2.visible=!layer2.visible;// layer2 and layer3 must be layer1's children
layer3.visible=!layer3.visible;
//layer1.AnimateChange.Duration= (float,0.00~3.00,second)
//layer1.AnimateChange.SwitchEffect= (int,0~27)
//layer1.AnimateChange.DynamicEffect= (int,0~10)
//layer1.AnimateChange.Occasion= (int,0~2)

layer1.StartAnimateChange;
}

Attachment:
ainimation.rar

Thanks so much, but I had already done with the slide panel. :)


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 51 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