removed useless _ folders
This commit is contained in:
3
Camera_HUD/Camera_HUD.sol
Normal file
3
Camera_HUD/Camera_HUD.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Camera_HUD">
|
||||
<Project name="Camera_HUD" path="Camera_HUD\Camera_HUD.prj" active="true"/>
|
||||
</Solution>
|
||||
8
Camera_HUD/Camera_HUD/Camera_HUD.prj
Normal file
8
Camera_HUD/Camera_HUD/Camera_HUD.prj
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project name="Camera_HUD" guid="D8C104C5-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D8C105A4-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Camera_HUD_1.lsl" guid="D8C12670-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
<Script name="Camera_HUD_2.lsl" guid="D8C13917-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
28
Camera_HUD/Camera_HUD/Object/Camera_HUD_1.lsl
Normal file
28
Camera_HUD/Camera_HUD/Object/Camera_HUD_1.lsl
Normal file
@@ -0,0 +1,28 @@
|
||||
// :CATEGORY:Camera
|
||||
// :NAME:Camera_HUD
|
||||
// :AUTHOR:Fred Gandt
|
||||
// :CREATED:2012-03-24 16:49:43.897
|
||||
// :EDITED:2013-09-18 15:38:50
|
||||
// :ID:145
|
||||
// :NUM:211
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Create the Object
|
||||
// To create the object use the following script. Just drop it onto/into a fresh prim. The resulting prim is quite small since it is designed to be a low impact HUD.
|
||||
// :CODE:
|
||||
//This work uses content from the Second Life® Wiki article http://wiki.secondlife.com/wiki/User:Fred_Gandt/Scripts/Continued_5. Copyright © 2007-2009 Linden Research, Inc. Licensed under the Creative Commons Attribution-Share Alike 3.0 License
|
||||
|
||||
|
||||
|
||||
// V1 //
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
85
Camera_HUD/Camera_HUD/Object/Camera_HUD_2.lsl
Normal file
85
Camera_HUD/Camera_HUD/Object/Camera_HUD_2.lsl
Normal file
@@ -0,0 +1,85 @@
|
||||
// :CATEGORY:Camera
|
||||
// :NAME:Camera_HUD
|
||||
// :AUTHOR:Fred Gandt
|
||||
// :CREATED:2012-03-24 16:49:43.897
|
||||
// :EDITED:2013-09-18 15:38:50
|
||||
// :ID:145
|
||||
// :NUM:212
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// CamHUD Script
|
||||
// Drop this script into the prim you just created. Wear the object as a HUD. If you do not see two distinct buttons separated by a black line, it is probably back to front or something.
|
||||
// :CODE:
|
||||
/This work uses content from the Second Life® Wiki article http://wiki.secondlife.com/wiki/User:Fred_Gandt/Scripts/Continued_5. Copyright © 2007-2009 Linden Research, Inc. Licensed under the Creative Commons Attribution-Share Alike 3.0 License
|
||||
|
||||
|
||||
|
||||
// V1 //
|
||||
|
||||
|
||||
|
||||
integer perms;
|
||||
|
||||
|
||||
|
||||
integer track;
|
||||
|
||||
|
||||
|
||||
integer on;
|
||||
|
||||
|
||||
|
||||
vector red = <1.0,0.0,0.0>;
|
||||
|
||||
|
||||
|
||||
vector green = <0.0,1.0,0.0>;
|
||||
|
||||
|
||||
|
||||
SetCameraParams(integer o, integer t)
|
||||
|
||||
{
|
||||
|
||||
list focus = [];
|
||||
|
||||
llClearCameraParams();
|
||||
|
||||
if(t)
|
||||
|
||||
focus = [CAMERA_FOCUS, llGetPos()];
|
||||
|
||||
else
|
||||
|
||||
focus = [CAMERA_FOCUS_LOCKED, TRUE];
|
||||
|
||||
llSetCameraParams([CAMERA_ACTIVE, o, CAMERA_POSITION_LOCKED, TRUE] + focus);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
on_rez(integer param)
|
||||
|
||||
{
|
||||
|
||||
llResetScript();
|
||||
|
||||
}
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
if(llGetAttached())
|
||||
|
||||
llRequestPermissions(llGetOwner(), PERMISSION_CONTROL_CAMERA);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user