Eon Mauriac
Registered User
Join date: 6 Nov 2005
Posts: 5
|
12-08-2005 17:49
Does anyone know of some example HUD scripts? mainly using things like the setText function (if that's the right thing to use). Right now playing with text only attachments. So I could do something like:
Cur Alt: nn m Cur Speed: nn m/s
What I can't figure out is how to set the positioning. llsetText only works right if I attach it to the center of the screen or bottom center. if I attach it anywhere else it's either cut off halfway or completely since it puts it at the top oc the object, centered.
Although while on the topic of HUD questions. How do you position objects on the hud? so if I attach it to the lower left, it would move the box so instead of being attached to the center of the box, it would be attached to the lower left corner?
|
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
|
12-08-2005 18:03
As far as I know, there's no good way to reposition floating text (you can move it up with new lines (\n) and dots or whatever). In oreder to get text where I want it in the HUD I just move the prim it's floating over.
One kinda useful thing I found today is that you can zoom out on the HUD using alt.
|
Driftwood Nomad
Registered User
Join date: 10 May 2003
Posts: 451
|
12-08-2005 18:34
Yes, zoom out, then in edit mode select the HUD prim and move it into the position you want it to stay at. Then anytime you wear the attachment, it is positioned properly.
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
12-08-2005 18:50
aslo while in edit mode you can use the wheel to zoom
|
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
|
12-08-2005 19:56
From: Driftwood Nomad Yes, zoom out, then in edit mode select the HUD prim and move it into the position you want it to stay at. Then anytime you wear the attachment, it is positioned properly. A trick I use in my combat HUD is to have the actual text display on invisible prims and have the text centered on the actual buttons. that way it gives the illusion of text centered on the buttons you push.
_____________________
My SLExchange shopTypos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not. The function is working perfectly fine. It's just not working the way you wanted it to work.
|
SiRiS Asturias
Chaotic Coder
Join date: 27 Sep 2005
Posts: 93
|
Here's some positioning help...
12-08-2005 19:57
You can use things like the following opcodes to set the rotation & placement upon attachment. This will make sure your HUD is always in the spot you choose it to be in when you developed it. =) llSetRot(llEuler2Rot(<0,0,0> * DEG_TO_RAD)); llSetPos( <0.0, -0.125, -0.275> ); Hope this helps... Are you a merchant that's tired of updating numerous places to both sell within SL & on places like SLExchange? Come join the new age of merchant services being developed... S3 - Self Storage Systems (Search S3 in the groups finder within SL) First 50 recieve a free lifetime premium account! Very few spots left!
|