i'm making a hud which will be just chating the "buttons" will this work. in the notes for this it says
The prim that was touched may not be the prim receiving the event
http://wiki.secondlife.com/wiki/LlDetectedTouchUV
These forums are CLOSED. Please visit the new forums HERE
question about llDetectedTouchUV |
|
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
09-16-2009 18:16
Hi,
i'm making a hud which will be just chating the "buttons" will this work. in the notes for this it says The prim that was touched may not be the prim receiving the event http://wiki.secondlife.com/wiki/LlDetectedTouchUV _____________________
DANCE WITH KIRBY
(^'-')^ (^'-')> (>'-')> < ![]() ![]() |
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-16-2009 18:37
if you're using a single prim hud then yes, if you're using multiple prims for the buttons you'll need to use llDetectedLinkNumber, and if you have multiple buttons per face per prim, you would use them together, just make sure you get the logic right so it knows exactly which button you are pressing
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
09-16-2009 19:01
it's a multi prim hud
each prim is a "page" with a different texture and different options. however i just figured out a problem that makes it not viable. the prims overlap and even if you want to click one the "last page" you'll click the first. back to the sandbox _____________________
DANCE WITH KIRBY
(^'-')^ (^'-')> (>'-')> < ![]() ![]() |
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-16-2009 19:41
you could use 1 prim really, twist a cube, and stretch it so you see 2 full faces at once. and each face will be a page. as you flip thru the pages have the script keep track of which pages it's showing, when you click a "button" it can calculate where you touched:
gridspot# + (page#* #buttons on page) = button number this can get tricky though if you don't always have the same number of buttons on each page _____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
09-17-2009 14:18
think i figured it.
path cutting a prim aka door. in the script to hide the page also cut it to shrink it. now i just have to work on the TouchUV coding & images. _____________________
DANCE WITH KIRBY
(^'-')^ (^'-')> (>'-')> < ![]() ![]() |
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
09-18-2009 04:21
with this function correct me if i'm wrong is this how it works and then to make it do something:
1. detect touch (vector) 2. store vector in Var 3. absolute ****load of IF statements (one for each button) _____________________
DANCE WITH KIRBY
(^'-')^ (^'-')> (>'-')> < ![]() ![]() |
EF Klaar
Registered User
![]() Join date: 11 Jun 2007
Posts: 330
|
09-18-2009 05:20
If the buttons are lined up in neat rows and columns you could write a function that returns a button number from the coordinates, which would make the shedload of ifs slightly easier to live with.
|
Imnotgoing Sideways
Can't outlaw cute! =^-^=
![]() Join date: 17 Nov 2007
Posts: 4,694
|
09-18-2009 05:35
I look at it this way. It's a HUD and you have over 250 prims available per attach point. Why worry? (^_^)
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y
![]() http://slurl.com/secondlife/Ferguson/54/237/94 |
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
09-18-2009 16:47
I look at it this way. It's a HUD and you have over 250 prims available per attach point. Why worry? (^_^) neatness and readability. also i couldn't make it multi-page without the buttons overlapping and making a huge mess of prims. when i can be bothered i'll post screenshots. @ EF Klaar yeah they are in nice neat rows & columns and one i've done the first page i can just copy & paste into the rest (another 3) and just edit the button functions & comment out un needed ones. _____________________
DANCE WITH KIRBY
(^'-')^ (^'-')> (>'-')> < ![]() ![]() |