|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
06-15-2006 07:58
I'm developing a HUD with multi-level menus. I would like to have some of the buttons disappear, as some menus do not have as many choices as others. As far as I can tell, I have a couple options: 1. Make the unused buttons invisible. The problem is, they still seem to respond to touch, and I do not want them in the way of other things. Is there a way to make an object "untouchable" via script? 2. Make the buttons die when they are not in use, then re-rezzing when they're needed. I've not tried this approach yet, so do not know what problems might pop up. Any suggestions, recommendations, ideas, or comments? I bow to the collective wisdom of this wonderful group  Baron
|
|
Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
|
06-15-2006 08:03
How about using different states for each button.
say menu1 and menu2 are states
you have a button that is touchable in menu 1 but that same button isn't used in menu2
in menu 2, you could just have a return; in the touch start portion of the button script.
the button would still technically be there... but it will not respond to touch
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
It's amazing sometimes how the brain doesn't function
06-15-2006 08:07
Thanks for that! Sometimes the obvious solution is the furthest from the mind. That ought to do the trick nicely. I don't see why that wouldn't do just what I want. I use states so much, I don't know why it didn't occur to me to have a state WITHOUT a touch event. Too early, I guess.
Baron
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
06-15-2006 08:50
Oh. New question. If the button on the HUD is set to 0 alpha and it is in a state without a touch event, can things seen behind/through it be touched?
Baron
|
|
Artemis Cain
Take it or Leave it
Join date: 11 Apr 2005
Posts: 116
|
06-15-2006 09:21
no... I don't think that would work.
because even if it is alpha 0, it is still technically there
how about using an llSetPos to kind of flip flop the buttons on a state change? maybe push one out and pull one back simultaneously?
|