removed useless _ folders

This commit is contained in:
Fred Beckhusen
2015-08-09 16:54:31 -05:00
parent fde850293c
commit 948a44dfba
5204 changed files with 2425579 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<Solution name="Scrollable_ImageHUD">
<Project name="Scrollable_ImageHUD" path="Scrollable_ImageHUD\Scrollable_ImageHUD.prj" active="true"/>
</Solution>

View File

@@ -0,0 +1,138 @@
// :CATEGORY:HUD
// :NAME:Scrollable_ImageHUD
// :AUTHOR:Valect
// :CREATED:2012-07-22 10:17:05.477
// :EDITED:2013-09-18 15:39:01
// :ID:725
// :NUM:990
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// The script goes in the "back" control object
// :CODE:
// rescales the linked set by the specified factor. factor > 1 makes it larger, < 1 smaller
// example: "/9 2.5"
vector start_size = <0.2,0.2,0.2>;
// getting too large will really mess shit up
vector max_size = <2.0,2.0,2.0>;
// so will getting to small
vector min_size = <0.2,0.2,0.2>;
float pan_dist = 0.3;
// control link numbers
// these will need to be changed based on your object
integer left = 48;
integer right = 49;
integer down = 2;
integer up = 45;
integer plus = 47;
integer minus = 46;
integer reset = 44;
vector current_scale = start_size;
key owner = NULL_KEY;
// this function is so we don't get an odd delay. hopefully will cause this
// to resize first and avoid a lag issue
// ** i think the lag issue was due to calling llsetprimitiveparams on EVERY link message, however i like this new solution better
scale_self(float scale) {
list primparams = [];
vector new_scale = llGetScale();
new_scale.y = new_scale.y * scale;
new_scale.z = new_scale.z * scale;
new_scale.x = 0.2;
vector new_pos = llGetLocalPos();
new_pos.y = new_pos.y * scale;
new_pos.z = new_pos.z * scale;
primparams = [];
primparams += [PRIM_SIZE, new_scale]; // resize
llSetPrimitiveParams(primparams);
}
Resize(float scale, integer resize) {
scale_self(scale);
llMessageLinked(LINK_SET, resize, (string)scale, NULL_KEY);
}
calc_zoom(vector current_scale, float scale) {
// if our current size is greater than 2, and user wants to increase more, don't
if ((current_scale.z >= max_size.z) && (scale > 1.0)) {
llOwnerSay("Sorry, we can't zoom in any further");
return;
// if our current size is less than 0.5 and the user wants to decrease, don't
} else if ((scale < 1.0) && (current_scale.z <= min_size.z)) {
llOwnerSay("Sorry, we can't zoom out any further");
return;
} else {
// if the user wants to increase, set current scale
if (scale > 1.0) {
current_scale = (current_scale * scale);
//llOwnerSay("Zooming in "+(string)scale+" units.");
// if the user wants to decrease, set current scale
} else if (scale < 1.0) {
//llOwnerSay("Zooming out "+(string)scale+" units.");
current_scale = (current_scale * scale);
}

View File

@@ -0,0 +1,26 @@
// :CATEGORY:HUD
// :NAME:Scrollable_ImageHUD
// :AUTHOR:Valect
// :CREATED:2012-07-22 10:17:05.477
// :EDITED:2013-09-18 15:39:01
// :ID:725
// :NUM:991
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// The script goes in the "back" control object
// :CODE:
vector local_pos;
default {
state_entry() {
local_pos = <0.0,0.0,0.0>; //llGetLocalPos();
}
link_message(integer sender_num, integer num, string str, key id) {
list primparams = [];

View File

@@ -0,0 +1,65 @@
// :CATEGORY:HUD
// :NAME:Scrollable_ImageHUD
// :AUTHOR:Valect
// :CREATED:2012-07-22 10:17:05.477
// :EDITED:2013-09-18 15:39:01
// :ID:725
// :NUM:992
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// This script goes in all the segments of the image
// :CODE:
// something to keep in mind: depending on how the object is built, the axes may change on you. just use x or y or z instead on the required direction
// increase x and z for the map blocks
vector local_pos;
default {
state_entry() {
local_pos = llGetLocalPos();
}
link_message(integer sender_num, integer num, string str, key id) {
list primparams = [];
// 1 means reset
if (num == 1) {
primparams += [PRIM_SIZE, <0.2,0.2,0.2>, PRIM_POSITION, local_pos];
// 10 means left
} else if (num == 10) {
vector pan = llGetLocalPos();
pan.y = pan.y - (float)str;
primparams += [PRIM_POSITION, pan];
// 11 means right
} else if (num == 11) {
vector pan = llGetLocalPos();
pan.y = pan.y + (float)str;
primparams += [PRIM_POSITION, pan];
// 12 means down
} else if (num == 12) {
vector pan = llGetLocalPos();

View File

@@ -0,0 +1,21 @@
// :CATEGORY:HUD
// :NAME:Scrollable_ImageHUD
// :AUTHOR:Valect
// :CREATED:2012-07-22 10:17:05.477
// :EDITED:2013-09-18 15:39:01
// :ID:725
// :NUM:993
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// This script goes in each direction control prim
// :CODE:
default
{
touch_start(integer total_number)
{

View File

@@ -0,0 +1,12 @@
<Project name="Scrollable_ImageHUD" guid="D8CF2361-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D8CF246C-6C00-1014-B904-200204C60A89">
<Script name="Scrollable_ImageHUD_1.lsl" guid="D8CF59A5-6C00-1014-B904-200204C60A89">
</Script>
<Script name="Scrollable_ImageHUD_2.lsl" guid="D8CF71EC-6C00-1014-B904-200204C60A89">
</Script>
<Script name="Scrollable_ImageHUD_3.lsl" guid="D8CF8340-6C00-1014-B904-200204C60A89">
</Script>
<Script name="Scrollable_ImageHUD_4.lsl" guid="D8CF8D7E-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>