Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Changing weather location...
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Changing weather location...
#16842
Changing weather location... 2 Years, 8 Months ago  
Hello all,

I'm modifying the Gweather script slightly and have it set up and working so that I can select a weather location from within the Options/Skins/Settings menu. I do this by setting a list of variables in the Skin.xml file. This works fine, but I'd like to add a way to select the next location in the list by clicking on an arrow bitmap (or the current location), without having to go into the settings menu. (Much like selecting the next month in Calendar).

I just don't know how to do this. Any ideas?

Thanks in advance.
Mirage
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#16844
Re:Changing weather location... 2 Years, 8 Months ago  
My idea is:
a) Get the city list "str1,str2,str3,..." and write to a array, like all={str1,str2,str3,...}
b) Get current show city (like oldshowcity="str3") and check it position in the array (like if all[3]="str3", then city_num=3).
c) When click a button set the newshowcity=all[city_num + 1] and write back.
d) ReFlash Rainlendar.
anoob
Platinum Boarder
Posts: 508
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#16845
Re:Changing weather location... 2 Years, 8 Months ago  
That's sort of what I was thinking, but I wasn't sure how to do it.
Thanks for the response, I'll try it when I get home.
Mirage
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop