Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Question re: user-created GUIs

Zero Grace
Homunculus
Join date: 13 Apr 2004
Posts: 237
05-01-2004 12:32
I've seen a fair bit of user-created interactive gadgets, and I'd like to design an interactive kiosk for my home.

Obviously individual prims can be assigned functions when touched, but can we specify coordinates within a prim that define separate clickable areas? Web designers will know this as an "image map." Basically it's sets of coordinates that define the top left and bottom right corners of clickable bounding boxes. This method would reduce the number of prims required for an interactive kiosk, but I don't know if the SL engine allows it.
_____________________
Zero Grace, agent of Tony Walsh
Read Tony's Second Life weblog entries at Clickable Culture
Moleculor Satyr
Fireflies!
Join date: 5 Jan 2004
Posts: 2,650
05-01-2004 22:13
No, sorry.
_____________________
</sarcasm>
Zero Grace
Homunculus
Join date: 13 Apr 2004
Posts: 237
05-02-2004 07:12
Blehhhh. Thanks for the info!
_____________________
Zero Grace, agent of Tony Walsh
Read Tony's Second Life weblog entries at Clickable Culture
Neo Rebus
Registered User
Join date: 10 Apr 2004
Posts: 59
05-02-2004 12:07
there's no way to get around having one prim for each control. Howeve, you can have a single script process all those controls by only having one "touch" event handler in the root object to which all the other controls are linked to, then use the llDetected... functions to determine which control was touched.

- Neo
Neo Rebus
Registered User
Join date: 10 Apr 2004
Posts: 59
05-02-2004 12:22
specific code to have a single touch() event handler:

touch(integer n)
{
string touched_object_name = llGetLinkName(llDetectedLinkNumber(0));

if (touched_object_name == "action1";)
{
// do action 1 here ...
} // else ... etc.
}
Zero Grace
Homunculus
Join date: 13 Apr 2004
Posts: 237
05-02-2004 12:28
Neo, thanks for the tips and code bits. I'm a good interactive designer but terrible coder (basically I can plan but not implement functionality). I will be looking to hire a scripter for this kiosk, would you be interested in quoting L$ once I get a design doc together?
_____________________
Zero Grace, agent of Tony Walsh
Read Tony's Second Life weblog entries at Clickable Culture