XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Selecting switch animation? https://www.bbs.xwidget.com/viewtopic.php?f=8&t=4410 |
Page 1 of 1 |
Author: | digigamer [ April 21st, 2014, 6:16 pm ] |
Post subject: | Re: Selecting switch animation? |
Yes of course, with these properties EnabledAnimateChange - Enable/Disable animate change AnimateChange.Duration - Duration (in seconds) AnimateChange.SwitchEffect - Transition Effects [0-23] * AnimateChange.DynamicEffect - Easing function [0-10] (linear,quadratic etc) AnimateChange.Occasion - Occasion AnimateChange.Style - Style [0-10] We are goning to use the SwitchEffect, they are 24 in total Send the widget, I'll add them. **This widget looks very familiar to me ![]() |
Author: | Jimking [ April 21st, 2014, 6:32 pm ] | ||
Post subject: | Re: Selecting switch animation? | ||
I don't know if you already made a similar one, but I took the idea from here ![]() https://play.google.com/store/apps/deta ... lockwidget Here is the widget mate:
|
Author: | Jimking [ April 21st, 2014, 6:54 pm ] |
Post subject: | Re: Selecting switch animation? |
...I have to logout DG.. and go to sleep! I will check the topic later.. Thanks for your help! |
Author: | digigamer [ April 21st, 2014, 9:05 pm ] | ||
Post subject: | Re: Selecting switch animation? | ||
Done!
|
Author: | Jimking [ April 22nd, 2014, 2:39 am ] |
Post subject: | Re: Selecting switch animation? |
digigamer wrote: Done! Thanks a lot man!!! ![]() You did a great work as always! I will only add the "default" next to "ScrollBottom" right click selection so the users can find it easily. ...and with me, your name in the "Author Name's space. ![]() Posted: viewtopic.php?f=11&t=4412 |
Author: | Jimking [ April 22nd, 2014, 6:06 pm ] |
Post subject: | Re: Selecting switch animation? |
Edit: Could you pls check the right click function? I notice that when I change/select different effects, some click selection "ν" remain visible.. |
Author: | digigamer [ April 23rd, 2014, 4:00 am ] |
Post subject: | Re: Selecting switch animation? |
I tested it's fine... Edit: Sorry, I posted an old revision of the code.. I edited the code but forgot to pack it.. This summers... ![]() This is the working code Code: var color;
var animation = 6; function widgetOnLoad() { color=GetValue("color",hour.font.fill.color) setcolor(); animation = parseInt(GetValue("animation",animation)); SetAnimation(animation); } function setcolor() { //color hour.font.fill.color = color; dot.font.fill.color = color; min.font.fill.color = color; sec.font.fill.color = color; date.font.fill.color = color; } function menuitem4OnClick(Sender) { color=selectColor(color); setcolor(); Setvalue("color",color); SaveIni(); } function AmimationMenuItemOnClick(Sender) { eval("menuitem"+(animation+5)).Checked = false; SetAnimation(Sender.Tag); Sender.Checked = true; } function SetAnimation(id) { date.AnimateChange.SwitchEffect = id; sec.AnimateChange.SwitchEffect =id; min.AnimateChange.SwitchEffect =id; hour.AnimateChange.SwitchEffect = id; Setvalue("animation",id); eval("menuitem"+(id+5)).Checked = true; animation = id; //missed this line } |
Author: | Jimking [ April 23rd, 2014, 4:23 am ] |
Post subject: | Re: Selecting switch animation? |
Thanks man! I added the missing line and works ok now. Thanks! ![]() |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |