Bobby Dayton
Test Pilot for Airfix
Join date: 15 Nov 2003
Posts: 206
|
05-13-2005 01:51
A number of scripted items I have bought recently seem to have adopted a sort of control panel to choose options or functions as opposed to chat commands. It usually appears as a small window in the top right wih various buttons on. Ignore being the button to close the window again.
How is this done and are there any common routines I could use to incorporate it in some of my own simple scripts.
|
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
|
05-13-2005 02:08
no mystery, it's basically just a listener than make a menu, using llDialog
|
Bobby Dayton
Test Pilot for Airfix
Join date: 15 Nov 2003
Posts: 206
|
05-13-2005 03:03
Thanks for that. It's a function I had not noticed before.
|
Zonax Delorean
Registered User
Join date: 5 Jun 2004
Posts: 767
|
05-13-2005 05:33
From: Bobby Dayton Thanks for that. It's a function I had not noticed before. Oh, and I also point you to my newly-released free library: General Menu Engine over here in the forumsSorry for the shameless plug, but I hope you can find it useful 
|
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
|
05-13-2005 05:40
i pasted a little function i use in my stuffs, just make stuffs easy with a light code
waitying for aproval
_____________________
 tired of XStreetSL? try those! apez http://tinyurl.com/yfm9d5b metalife http://tinyurl.com/yzm3yvw metaverse exchange http://tinyurl.com/yzh7j4a slapt http://tinyurl.com/yfqah9u
|
Zonax Delorean
Registered User
Join date: 5 Jun 2004
Posts: 767
|
05-13-2005 06:02
From: Kyrah Abattoir i pasted a little function i use in my stuffs, just make stuffs easy with a light code Where did you paste it? In the Scripting Library forums?
|
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
yay Dialog
05-13-2005 06:58
Dialog are a little better than a straight listener for user input if you have a set input you're looking for. Since they are triggered on touch you can initialize the listener on touch and set a timer to remove it after say 60 seconds of someone touching. Make sure you set the timer to 0 in the timer, wouldn't want that running constantly either.
It's a good way to not have listeners going with noone even wanting to interact with the object, and you always get the exact format of the message that you need.
|