prune all the empty script directories. Contribute

my text board script to be part of the stock scripts.
0.6.0-stable
Sean Dague 2008-06-18 19:23:46 +00:00
parent 1fcb7c2db4
commit 7355d79881
4 changed files with 71 additions and 99 deletions

View File

@ -132,4 +132,11 @@
<Key Name="inventoryType" Value="10" />
<Key Name="fileName" Value="llSetRot.lsl" />
</Section>
<Section Name="osTextBoard">
<Key Name="assetID" Value="3e4f2be4-4697-4697-15c8-5920140208c5" />
<Key Name="name" Value="osTextBoard" />
<Key Name="assetType" Value="10" />
<Key Name="inventoryType" Value="10" />
<Key Name="fileName" Value="osTextBoard.lsl" />
</Section>
</Nini>

View File

@ -0,0 +1,47 @@
string title = "";
string subtitle = "";
string text = "";
string add = "";
integer channel = 0; // if this is >= 0, llSay on that channel on updates
default {
state_entry()
{
push_text();
}
touch_start(integer count)
{
push_text();
if (channel >= 0) {
llSay(channel, text);
}
}
void push_text()
{
compile_text();
draw_text();
}
void compile_text()
{
title = "Some Title";
subtitle = "Some subtitle";
text = "Plenty of text for the main body.\n";
text += "You need to manual do line breaks\n";
text += "here. No word wrap yet.";
add = "Additional text at the bottom";
}
void draw_text()
{
string drawList = "MoveTo 40,80; PenColour RED; FontSize 48; Text " + title + ";";
drawList += "MoveTo 160,160; FontSize 32; Text " + subtitle + ";";
drawList += "PenColour BLACK; MoveTo 40,220; FontSize 24; Text " + text + ";";
drawList += "PenColour RED; FontName Times New Roman; MoveTo 40,900; Text " + add + ";";
osSetDynamicTextureData("", "vector", drawList, "1024", 0);
}
}

View File

@ -29,78 +29,6 @@
<Key Name="name" Value="B"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="C">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba005"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="C"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="D">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba006"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="D"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="E">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba007"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="E"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="F">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba008"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="F"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="G">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba009"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="G"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="H">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba010"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="H"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="I">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba011"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="I"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="K">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba012"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="K"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="L">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba013"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="L"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="M">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba014"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="M"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="O">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba015"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="O"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="P">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba016"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="P"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="R">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba017"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
@ -113,34 +41,10 @@
<Key Name="name" Value="S"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="T">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba019"/>
<Section Name="OpenSim Specific Scripts"/>
<Key Name="folderID" Value="284858c8-9391-6bf1-ddf5-b936f73de853"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="T"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="U">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba020"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="U"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="V">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba021"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="V"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="W">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba022"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="W"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name="X">
<Key Name="folderID" Value="30000112-000f-0000-0000-000100bba023"/>
<Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
<Key Name="name" Value="X"/>
<Key Name="name" Value="OpenSim Specific Scripts"/>
<Key Name="type" Value="10"/>
</Section>
<Section Name=".Kan-ED Scripts">

View File

@ -286,4 +286,18 @@
<!-- X == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba023"/> -->
<!-- .Kan-ED Scripts == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba024"/> -->
<!-- .Other testing scripts == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba025"/> -->
<!-- OpenSim Specific Scripts == <Key Name="folderID" Value="284858c8-9391-6bf1-ddf5-b936f73de853"/> -->
<Section Name="osTextBoard">
<Key Name="inventoryID" Value="3e4f2be4-4697-4697-15c8-5920140208c5"/>
<Key Name="assetID" Value="3e4f2be4-4697-4697-15c8-5920140208c5"/>
<Key Name="folderID" Value="284858c8-9391-6bf1-ddf5-b936f73de853"/>
<Key Name="description" Value="A dynamic text board - contributed by Neas Bade" />
<Key Name="name" Value="osTextBoard" />
<Key Name="assetType" Value="10" />
<Key Name="inventoryType" Value="10" />
<Key Name="currentPermissions" Value="257487132" />
<Key Name="nextPermissions" Value="257487132" />
<Key Name="everyonePermissions" Value="257487132" />
<Key Name="basePermissions" Value="257487132" />
</Section>
</Nini>