[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - The Script is ok?

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 17th, 2024, 6:05 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: The Script is ok?
PostPosted: November 8th, 2014, 3:05 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I would like to create an animation weather widget like this one:
viewtopic.php?f=11&t=4931&hilit=minions
but this time with only weather icons (I have a number of png for each weather condition, so they will be animpng again).

There will be two differences with the "Despicable Me Weather HD ANIMATED" widget:
1) I will use this tag for current weather "${curWeatherIcon}" so they will be 18 animpngs
2)The animations will have "0" loop count so they will play continuously.

This is the script by @hamid from the minions weather widget:
----------------------------------

var WeatherNames=[sun,cloudy,fog,rain,lightning,snow,moon,moon_cloudy]


function accweathercore1OnUpdate(Sender)
{
var weathertmp=eval(accweathercore1.get("${curSimpleWeatherIcon}"))
if(weathertmp.Visible==false)
{
for(var i in WeatherNames)
{
WeatherNames[i].Visible=0
WeatherNames[i].Src=""
}
var listtmp=""
var imgtmp=GetFileList(WidgetPath+"\\"+weathertmp.Name,"png",0).split("|")
for(var j=1;j<imgtmp.length;j++)
{
listtmp+=weathertmp.Name+"\\"+j+".png"+"|"
}
listtmp+=weathertmp.Name+"\\"+imgtmp.length+".png"
weathertmp.Src=listtmp
weathertmp.OnClick="StartAnimating"
weathertmp.Visible=1
StartAnimating(weathertmp)
}
}
---------------------------------
My question is:
I will need to change only the two parts of the script with the red color..? Or I need to change anything else...

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


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 11th, 2014, 6:36 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 11th, 2014, 6:53 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Ok I will test it as soon as possible.. Thanks mate! :)

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


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 11th, 2014, 5:48 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887

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


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 11th, 2014, 7:54 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362


Attachments:
animated_weather_hd [test2] [2014.11.12]0656.xwp [1.43 KiB]
Downloaded 213 times
Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 11th, 2014, 8:12 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Ok... because I took the weather names from here:
viewtopic.php?f=10&t=4837
I'll reply as soon as possible hamid..

Edit:
All seem to work properly now. 8-)
Thanks man!

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


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 14th, 2014, 8:03 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I added city name and temp and edited the animpng properties with "inverse on finish" to give the effect of a
continuous movement. ;)

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


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 15th, 2014, 5:34 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
i don't think the "inverse on finish" effect will be good for it,
even i'm not sure if the infinite loop would be so good,
but i think adding infinite loop as RightClick option will be fine


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 15th, 2014, 5:55 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887

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


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 17th, 2014, 9:41 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
ok, it's ready:
animated_weather_hd [test3] [2014.11.18]0901.xwp [1.63 KiB]
Downloaded 225 times

===========
Changes:
Added: RightClickMenu for Enable/Disable Animation Loop
==============


Top
 Profile  
 
 Post subject: Re: The Script is ok?
PostPosted: November 18th, 2014, 3:00 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Thanks man! :)
The widget is ready now:
* Unchecked the "inverse onfinish"
* Added city/temp info

viewtopic.php?f=11&t=5260&p=10634#p10634

_________________
...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  [ 11 posts ] 

All times are UTC - 8 hours


Who is online

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

Powered by phpBB® Forum Software © phpBB Group