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,6 @@
<Project name="Dynamic_Dialog_Menu_Template" guid="D8AABB4B-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D8AABC2A-6C00-1014-B904-200204C60A89">
<Script name="Dynamic_Dialog_Menu_Template_1.lsl" guid="D8AAFE77-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -0,0 +1,210 @@
// :CATEGORY:Dialog
// :NAME:Dynamic_Dialog_Menu_Template
// :AUTHOR:mangowylder
// :CREATED:2011-04-18 15:32:37.273
// :EDITED:2013-09-18 15:38:52
// :ID:266
// :NUM:357
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// Dynamic_Dialog_Menu_Template
// :CODE:
// This is a template script that will allow you to dynamically add
// or delete buttons from LLDialog boxes.
// In and of itself it does nothing more than to allow you to add/delete buttons with names
// and click on the buttons to tell you the button name you clicked on.
// However once those buttons are generated and named you can add functions
// to them so that they do usefull stuff.
// Maximum of 21 buttons. llDialog boxes can have a maximum of 12 buttons.
// 10 buttons in gLstChoicesButtons because it will always have the << Back button
// and the dynamicaly generated More button when gIntButtons is reached.
// 11 buttons in gLstChoicesButtons1 because it will always have the <<< Back button
// Max button vales are set at 3 and 4 for testing purposes.
// Written by,
// Mango Wylder //
//Globals//
list gLstChoices = ["Add Button", "ShowButtons", "Del Button"];
list gLstChoicesButtons = ["<< Back"];
list gLstChoicesButtons1 = ["<<< Back"];
// list to prevent the user from deleting the hard coded back buttons
// or the dynamically generated More button
list gLstForbidden = ["<< Back", "More", "<<< Back"];
integer gIntButtons = 3;
integer gIntButtons1 = 4;
integer gIntChannel_Dialog;
integer gIntChannel_Chat;
integer gIntListen_Id;
integer gIntListen_Id_Chat;
integer gIntAddButton;
integer gIntDelButton;
integer gIntDialog = 0;
string gStrButton;
key gKeyToucherID;
default{
state_entry() {
gIntChannel_Dialog = ( -1 * (integer)("0x"+llGetSubString((string)llGetKey(),-5,-1)) ); // set a negative integer chat channel for the dialog box
gIntChannel_Chat = 7; // Set a chat channel to listen to owners commands
}
touch_start(integer total_number) {
gKeyToucherID = llDetectedKey(0);
llDialog(gKeyToucherID, "Please make a choice.", gLstChoices, gIntChannel_Dialog);
gIntListen_Id = llListen(gIntChannel_Dialog, "", gKeyToucherID, "");
llSetTimerEvent(20); // set a time limit to llListen
}
listen(integer channel, string name, key id, string choice) {
if(channel == gIntChannel_Dialog) {
if (~llListFindList(gLstChoices, [choice])) { // verify dialog choice
if (choice == "ShowButtons"){
// we know there are no buttons because list length is 1 and
// that's the << Back button
if (llGetListLength(gLstChoicesButtons) == 1) {
llOwnerSay("There are no Buttons to show. Try adding a button first!");
}
else
llDialog(gKeyToucherID, "What do you want to do?", gLstChoicesButtons, gIntChannel_Dialog);
}
if (choice == "Add Button") {
if (gIntDialog == 0) {
if (llGetListLength(gLstChoicesButtons) >= gIntButtons) {
// we have reached the maximum amount of buttons allowed in
// gLstChoicesButtons so we add a More button so we can
// see what's on gLstChoicesButtons1
gLstChoicesButtons = gLstChoicesButtons + ["More"];
gIntDialog = 1;
}
else {
gIntAddButton = 1;
llOwnerSay ("Please enter a name for this Button in Local Chat on Channel /7");
gIntListen_Id_Chat = llListen(gIntChannel_Chat, "", gKeyToucherID, "");
llListenRemove(gIntListen_Id); // remove the listen on channel_dialog
}
}
if (gIntDialog == 1) {
if (llGetListLength(gLstChoicesButtons1) >= gIntButtons1) {
llOwnerSay("You have reached the maximum allowed Buttons!");
llOwnerSay("Please Delete a Button if you would like to add another.");
}
else {
gIntAddButton = 1;
llOwnerSay ("Please enter a name for this Button");
gIntListen_Id_Chat = llListen(gIntChannel_Chat, "", gKeyToucherID, "");
llListenRemove(gIntListen_Id); // remove the listen on channel_dialog
}
}
}
if (choice == "Del Button") {
// we know there are no buttons to delete because list length is 1
// and that's the << Back button
if (llGetListLength(gLstChoicesButtons) == 1) {
llOwnerSay("There are no Buttons to delete");
}
else {
llOwnerSay ("Please enter a name for Button you want to Delete on Channel /7");
gIntListen_Id_Chat = llListen(gIntChannel_Chat, "", gKeyToucherID, "");
gIntDelButton = 1;
llListenRemove(gIntListen_Id); // remove the listen on channel_dialog