Want to add a script or a project? Upload it and a half million people will see it and your name here this year.
![]() |
![]() |
||
---|---|---|---|
Category: | Contributor: | Creator | |
Dialog | Kyrah Abbatoir | DIALOG_MENU |
Category: Dialog
By : Kyrah Abbatoir
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life
Browse the Zip file
12 //DIALOG MENU by Kyrah Abattoir345 integer menu_handler;6 integer menu_channel;7 menu(key user,string title,list buttons)//make dialog easy, pick a channel by itself and destroy it after 5 seconds8 {10 menu_handler = llListen(menu_channel,"","","");11 llDialog(user,title,buttons,menu_channel);12 llSetTimerEvent(5.0);13 }1415 default16 {17 touch_start(integer t)18 {19 menu(llDetectedKey(0),"hello world",["yes","no"]);20 }21 timer() //so the menu timeout and close its listener22 {23 llSetTimerEvent(0.0);24 llListenRemove(menu_handler);25 }27 {28 if(channel == menu_channel) //in case you have others listeners29 {30 if(message == "yes")31 {32 //do stuffs33 }35 {36 //do other stuffs37 }38 }39 }40 }// END //
Back to the Best Free Tools in Second Life and OpenSim.