Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Touch to go Back in a 1 prim vendo

Mhaijik Guillaume
Chadeaux Vamp
Join date: 18 Jun 2004
Posts: 620
06-28-2005 06:36
Greetings-

I was wondering if there is a way to have a One prim vendo able to scroll Back as well as forward. Could you use the left and right 'geography' hmmm co-ordinates ...of the prim ?

Here is a snipette of Hiro's code for a touch scroll forward

CODE
  touch( integer n)
// touch script optional for vendor with arrows, but required for 1-prim vendor
{
// llSay(0,"changing");
selected++;
if (selected > numberitems)
selected = selected - numberitems;
llSetTexture(llList2String(currentitemlist, (selected - 1) )+"PIC",ALL_SIDES);
updatetext();

}
_____________________
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
06-28-2005 06:42
I don't think theres a way for the object to tell which part of face of itself is being touched, therefore the answer would be no.. Other than using voice commands or a diaglog box or something to scroll back..
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
06-28-2005 07:04
A feature to enable something like this has been suggested but has not been implemented as of yet (nor has there been any hint it will). The closest thing to this is HTML on a prim.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
06-28-2005 10:44
You might be able to use llDetectedGrab to implement something like "mouse gestures" for a vendor. That way, a normal click moves right, while click + drag left moves back.
==Chris
_____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
06-28-2005 10:51
Ahem.
_____________________
---
Mhaijik Guillaume
Chadeaux Vamp
Join date: 18 Jun 2004
Posts: 620
Thanks everyone
06-28-2005 11:03
Thank you.

I now have some ideas. :)
_____________________