Difference between revisions of "Creating HUDs"
m (added note: fixing invisible HUD) |
m (BugFixes=* (solving probs with HUD)) |
||
Line 1: | Line 1: | ||
{{Help |Glossary=*}} Heads up display (abbreviated HUD) is a control panel for an AO or other devices that appears (only) on screen. | {{Help |Glossary=*|BugFixes=*}} Heads up display (abbreviated HUD) is a control panel for an AO or other devices that appears (only) on screen. | ||
Most scripted functionality works with HUDs | Most scripted functionality works with HUDs |
Revision as of 12:50, 2 September 2008
Help Portal: |
Avatar | Bug Fixes | Communication | Community | Glossary | Land & Sim | Multimedia | Navigation | Object | Video Tutorials | Viewer | Wiki | Misc |
Heads up display (abbreviated HUD) is a control panel for an AO or other devices that appears (only) on screen.
Most scripted functionality works with HUDs
Particles do not. Don't have HUD prims generate them. If a HUD attempts to generate particles, they appear at <0,0,0> in the current sim, annoying your neighbors.
If a sound is triggered using llPlaySound(), only the HUD wearer will hear it. If the land parcel they're over restricts sound entry/exit, the sound will not play.
If a sound is triggered using llTriggerSound(), the wearer and any bystanders will hear it.
Scripted movement of HUD pieces is relative to the attachment points. The position vector used by llSetPos() is interpreted as . A depth of -1 will render in front of a depth of 0.
Since HUD attachments cannot be clicked thru even if they're invisible, the common solutions to getting them out of the way are moving them and shrinking them.
If you are trying to move the HUD around relative to it's current position. Use llGetLocalPos() rather than llGetPos().
example:
llSetPos(llGetLocalPos() + (<0.25,0,0> * llGetLocalRot()));
Solving problems with HUDs
HUD is invisible
This problem arises when the person who made the HUD (or gave it to you) as a screen resolution greater than yours: The HUD is attached at the position that it last had, but that is outside your field of view. The solution is:
- Attach another HUD (one that you know works properly for you).
- Right-click it and select "Edit".
- Zoom out until you can see the other HUD.
- Left-click on the stray and move it back within the white rectangle marking your viewer's screen size. Note: use the arrowheads to move the HUD, clicking on the arrows' tails sometimes drops you out of edit mode.
- Close the Edit window to return to normal viewing.