Zorphin Zadark
Registered User
Join date: 29 Nov 2008
Posts: 11
|
09-27-2009 16:14
can anyone help out with this problem ?
i am developing a control panel application consisting of a board (the root prim) with several "buttons" which are all child prims.
in an effort to make the script as efficient as possible I am detecting all button clicks using llDetectedLink() in a touch event in the root prim.
However, doing it this way, the touch event in the root prim causes the mouse cursor to permanantly be the "touch" icon wherever it is held over the whole object. I only want it to be a touch icon when it is over a button which is in a currently clickable state (determined by the main script). Is there a way of achieving this without having to remove the touch event from the root prim, and therefore having to put a script in each button ..?
Basically can I override the cursor when I have a touch event in the script?
Thanks,
ZZ
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
09-27-2009 17:31
To be more efficient, prim-wise, use the llDetectedTouch functions. With those, you can divide a single prim into as many buttons as you need. Of course, it works best with a texture that illustrates each button's position. The third example script on this page shows how to define a grid of virtual buttons: http://wiki.secondlife.com/wiki/LlDetectedTouchST
|
Zorphin Zadark
Registered User
Join date: 29 Nov 2008
Posts: 11
|
09-27-2009 18:08
Thanks for that suggestion, but placing it in a non root prim does not seem to work - unless i'm overlooking something - the other prims in the link set cannot be touched at all - unless they have scripts in them with touch events, which defeats the original purpose ...
i will look into the llDetectedTouchFunctions for a low prim version of this at some time, but I would like to know if there is a way to get this working in this way first.
Thanks.
|
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
|
09-27-2009 23:55
The only suggestions I have are to make the board a seperate unlinked object - and put the touch script in one of the buttons, or to cover the board with a seperate unlinked object.
|