removed useless _ folders
This commit is contained in:
3
osTextBoard/osTextBoard.sol
Normal file
3
osTextBoard/osTextBoard.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="osTextBoard">
|
||||
<Project name="osTextBoard" path="osTextBoard\osTextBoard.prj" active="true"/>
|
||||
</Solution>
|
||||
62
osTextBoard/osTextBoard/Object/OsTextBoard script.lsl
Normal file
62
osTextBoard/osTextBoard/Object/OsTextBoard script.lsl
Normal file
@@ -0,0 +1,62 @@
|
||||
// :CATEGORY:OpenSimOnly
|
||||
// :NAME:osTextBoard
|
||||
// :AUTHOR:Anonymous
|
||||
// :CREATED:2014-01-17 11:07:56
|
||||
// :EDITED:2014-01-17 11:07:56
|
||||
// :ID:1011
|
||||
// :NUM:1564
|
||||
// :REV:1
|
||||
// :WORLD:OpenSim
|
||||
// :DESCRIPTION:
|
||||
// Puts text on a virtual screen
|
||||
// :CODE:
|
||||
// Source: http://digigrids.free.fr/wiki/index.php?title=OsTextBoard
|
||||
|
||||
string title = "";
|
||||
string subtitle = "";
|
||||
string text = "";
|
||||
string add = "";
|
||||
integer channel = 0; // if this is >= 0, llSay on that channel on updates
|
||||
|
||||
push_text()
|
||||
{
|
||||
compile_text();
|
||||
draw_text();
|
||||
}
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
default {
|
||||
state_entry()
|
||||
{
|
||||
push_text();
|
||||
}
|
||||
|
||||
touch_start(integer count)
|
||||
{
|
||||
push_text();
|
||||
if (channel >= 0) {
|
||||
llSay(channel, text);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
6
osTextBoard/osTextBoard/osTextBoard.prj
Normal file
6
osTextBoard/osTextBoard/osTextBoard.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="osTextBoard" guid="588b84b1-5861-44be-b976-c9ac080ecafc">
|
||||
<Object name="Object" guid="e405bd81-92a5-4188-8a59-eb9b29cf9458" active="true">
|
||||
<Script name="OsTextBoard script.lsl" guid="c834b9a5-ce73-4833-9ac0-947704705e10">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user