corrade-lsl-templates
/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); |