Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple HUD question...

Adman Drake
Registered User
Join date: 9 Feb 2006
Posts: 96
05-30-2006 15:37
This should be pretty easy, but I can't seem to figure it out. I'm pretty new to doing HUD objects.

I have an object that I'd like to show up as an icon in the users HUD. I made the object into a small cube, and I can choose "Attatch to HUD" and it shows up. When I touch the icon, then the llDialog shows up like it's supposed to.

However, the positioning of the object in the HUD seems totally borked. I can choose ScreenTopLeft, and my icon disappears. I found you can "zoom out" from your HUD, and I see my icon OUTSIDE the bounds of the HUD.

What I WANT (maybe I should have said this first), is to have someone "wear" my object, and have it reliably show up in some location in the HUD.

Any tips? Thanks!

Adman
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
05-30-2006 15:48
You could make the object call llSetPos to move itself into view when it knows it's been attached. If someone wears the object, it'll go to the last used attach point. if you want the object to be attachable at multiple points on the HUD, you need to do a little more work, since the direction in which it needs to move depends on the point where it got attached.