I would like to create an animation weather widget like this one:
viewtopic.php?f=11&t=4931&hilit=minionsbut 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/