integer
totalNum
=
4;
integer
currentNum
=
1;
string
currentstation;
string
currenturl;
string
id1
=
"Radio
Off";
string
id2
=
"Grateful
Dead Radio";
string
id3
=
"Sky.FM
Roots Reggae";
string
id4
=
"Sky.FM
Bossanova";
string
id5
=
"KTRU
Radio";
string
url1
=
"";
string
url2
=
"http://gdradio.radioserver.co.uk:8160/";
string
url3
=
"http://205.188.215.225:8000";
string
url4
=
"http://160.79.128.40:7804";
string
url5
=
"http://128.42.33.17:80/";
setNumber()
{
if
(currentNum
==
1)
{
currentstation
=
id1;
currenturl
=
url1;
}
else
if
(currentNum
==
2)
{
currentstation
=
id2;
currenturl
=
url2;
}
else
if
(currentNum
==
3)
{
currentstation
=
id3;
currenturl
=
url3;
}
else
if
(currentNum
==
4)
{
currentstation
=
id4;
currenturl
=
url4;
}
else
if
(currentNum
==
5)
{
currentstation
=
id5;
currenturl
=
url5;
}
llSetText(currentstation,
<1,1,1>,1.0);
llSetParcelMusicURL(currenturl);
}
default
{
state_entry()
{
llSetText("Radio",<1,1,1>,1.0);
}
touch_start(integer
total_number)
{
currentNum
+=
1;
if
(currentNum
>
totalNum)
currentNum
=
1;
setNumber();
}
}