Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llTextBox Floating Text

Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
08-26-2008 15:07
I know llTextBox is not yet available, but if it works the way it's supposed to I thought this could be a fancy, if not over the top way of setting floating text [llSetText()] using it

CODE

integer listener;

default
{
state_entry()
{
llSay(0, "Click me to set Floating Text");
}

touch_start(integer total_number)
{
llListenRemove(listener);
integer channel = llFloor(llFrand(100000.0)) + 1000;
llSetObjectDesc((string)channel);
listener = llListen(channel,"","","");
llTextBox(llDetectedKey(0), "Please type the message that you want to appear in Floating Text. You have 5 minutes", channel);
llSetTimerEvent(300);
}

listen(integer channel, string name, key id, string message)
{
llSetText(message, <1,1,1>, 1.0);
llListenRemove(listener);
llSetObjectDesc("Waiting");
llSetTimerEvent(0);
}

timer(){
llListenRemove(listener);
llSetObjectDesc("Timed out");
llSetTimerEvent(0);
}
}


At present it will not compile (on the main grid at least) due to llTextBox not yet being implemented, but I wanted to play. I'm really keen on this one coming out soon. The only other function I'd REALLY like right now is llParcelSay(), that would be REALLY handy in my line of work
_____________________
<VOTE PROPOSITION 4968/>
http://jira.secondlife.com/browse/VWR-4968
For SecondLife Builders who need better mapping for better building
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
08-26-2008 18:55
I can compile with llTextBox on my 1.21-compiled viewer, but it dun work right yet. :confused:
_____________________
Landing Normandy
Proposing 4968
Join date: 28 Nov 2005
Posts: 240
08-27-2008 03:30
No, it won't work yet anyway:

http://jira.secondlife.com/browse/VWR-8759

Hopefully soon it will
_____________________
<VOTE PROPOSITION 4968/>
http://jira.secondlife.com/browse/VWR-4968
For SecondLife Builders who need better mapping for better building