corrade-lsl-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 31  →  ?path2? @ 32
/source/heads-up-display/configuration.txt
@@ -13,7 +13,7 @@
 
# Set this to the UUID of the Corrade bot.
# Corrade Resident
corrade = "f5418c55-0e51-41bc-8ba3-c9c986047bb6"
corrade = "4a1f4994-9fcd-491f-9abc-4f4a85142c41dsa"
 
# The name of the group - it can also be the UUID of the group.
group = "My Group"
@@ -25,7 +25,7 @@
range = 5
 
# The distance from this box that Corrade is allowed to wander.
radius = 10
radius = 5
 
# The maximal time in seconds allowed for Corrade to remain stationary.
wait = 60
@@ -34,6 +34,6 @@
radar = 5
 
# The version that this HUD is compatible with.
version = 9.143
version = 10.1
 
########################### END CONFIGURATION #############################
/source/heads-up-display/grid-follow/grid-follow.lsl
@@ -280,6 +280,7 @@
configuration
)
),
"entity", "region",
"region", wasURLEscape(llGetRegionName()),
"position", llGetPos() + wasCirclePoint(
(integer)wasURLEscape(
/source/heads-up-display/joystick/joystick.lsl
@@ -318,7 +318,7 @@
)
),
"direction", "left",
"degrees", 0.15
"radians", 10 * DEG_TO_RAD
]
)
);
@@ -347,7 +347,7 @@
)
),
"direction", "right",
"degrees", 0.15
"radians", 10 * DEG_TO_RAD
]
)
);
/source/heads-up-display/recall/recall.lsl
@@ -67,6 +67,7 @@
// configuration data
string configuration = "";
 
 
default {
state_entry() {
llSetTimerEvent(1);
/source/heads-up-display/sit/sit.lsl
@@ -218,6 +218,7 @@
list menu = [];
integer select = -1;
 
 
default {
state_entry() {
llSetTimerEvent(1);
@@ -394,6 +395,12 @@
string k = llList2String(data, -1);
data = llDeleteSubList(data, -1, -1);
if(k == "Properties.Name") {
// Corrade may pass blank names due to SL
// objects not being yet discovered.
if(v == "") {
names += "Unknown";
jump continue;
}
names += v;
jump continue;
}
@@ -427,6 +434,7 @@
do {
menu += llGetSubString(llList2String(names, i), 0, 23);
} while(++i < llGetListLength(names));
llOwnerSay("Menu: " + llDumpList2String(menu, ","));
llListen(-10, "", llGetOwner(), "");
llDialog(llGetOwner(), "\nPlease choose a primitive for Corrade to sit on from the list below:\n", wasDialogMenu(menu, ["⟵ Back", "", "Next ⟶"], ""), -10);
llSetTimerEvent(60);