removed useless _ folders
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<Project name="NotecardSlideShow" guid="D670137D-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D670147D-6C00-1014-B904-200204C60A89">
|
||||
<Script name="NotecardSlideShow_1.lsl" guid="D67484A5-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
<Script name="NotecardSlideShow_2.lsl" guid="D6749E49-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,100 @@
|
||||
// :CATEGORY:Presentations
|
||||
// :NAME:NotecardSlideShow
|
||||
// :AUTHOR:Encog Dod
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:58
|
||||
// :ID:567
|
||||
// :NUM:771
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// NotecardSlideShow
|
||||
// :CODE:
|
||||
// From the book:
|
||||
//
|
||||
// Scripting Recipes for Second Life
|
||||
// by Jeff Heaton (Encog Dod in SL)
|
||||
// ISBN: 160439000X
|
||||
// Copyright 2007 by Heaton Research, Inc.
|
||||
//
|
||||
// This script may be freely copied and modified so long as this header
|
||||
// remains unmodified.
|
||||
//
|
||||
// For more information about this book visit the following web site:
|
||||
//
|
||||
// http://www.heatonresearch.com/articles/series/22/
|
||||
|
||||
integer index;
|
||||
|
||||
// for loading notecard
|
||||
string notecardName;
|
||||
key notecardQuery;
|
||||
integer notecardIndex;
|
||||
list notecardList;
|
||||
|
||||
newSlide()
|
||||
{
|
||||
string texture = llList2String(notecardList,index);
|
||||
llSetTexture(texture,1);
|
||||
index++;
|
||||
if(index>=llGetListLength(notecardList) )
|
||||
index = 0;
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
if( llGetListLength(notecardList)==0 )
|
||||
{
|
||||
notecardName = "SlideControl";
|
||||
state loading;
|
||||
}
|
||||
else
|
||||
{
|
||||
llSetTimerEvent(30);
|
||||
index = 0;
|
||||
newSlide();
|
||||
}
|
||||
}
|
||||
|
||||
touch_start(integer num)
|
||||
{
|
||||
index = 0;
|
||||
newSlide();
|
||||
llSay(0,"Starting slide show over");
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
newSlide();
|
||||
}
|
||||
}
|
||||
|
||||
state loading
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llSay(0,"Slideshow loading data...");
|
||||
notecardIndex = 0;
|
||||
notecardQuery = llGetNotecardLine(notecardName,notecardIndex++);
|
||||
}
|
||||
|
||||
dataserver(key query_id, string data)
|
||||
{
|
||||
if ( notecardQuery == query_id)
|
||||
{
|
||||
// this is a line of our notecard
|
||||
if (data == EOF)
|
||||
{
|
||||
llSay(0,"Slideshow loaded...");
|
||||
state default;
|
||||
|
||||
} else
|
||||
{
|
||||
notecardList += [data];
|
||||
notecardQuery = llGetNotecardLine(notecardName,notecardIndex++);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// :CATEGORY:Presentations
|
||||
// :NAME:NotecardSlideShow
|
||||
// :AUTHOR:Encog Dod
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:58
|
||||
// :ID:567
|
||||
// :NUM:772
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Slideshow notecard
|
||||
// :CODE:
|
||||
slide1
|
||||
|
||||
slide2
|
||||
|
||||
Reference in New Issue
Block a user