|
Changing weather location... 1 Year, 3 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
|
|
|
|
|
Re:Changing weather location... 1 Year, 3 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.
|
|
|
|
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

|
|
|
Re:Changing weather location... 1 Year, 3 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
|
|
|
|
|