Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
OpenSimOnly osTextBoard  

osTextBoard

Puts text on a virtual screen

Category: OpenSimOnly
By : Anonymous
Created: 2014-01-17 Edited: 2014-01-17
Worlds: OpenSim

the Zip file

Download all files for osTextBoard
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. OsTextBoard script.lsl
1 // Source: http://digigrids.free.fr/wiki/index.php?title=OsTextBoard
2
3 string title = "";
4 string subtitle = "";
5 string text = "";
6 string add = "";
7 integer channel = 0; // if this is >= 0, llSay on that channel on updates
8
9 push_text()
10 {
11 compile_text();
12 draw_text();
13 }
14
15 compile_text()
16 {
17 title = "Some Title";
18 subtitle = "Some subtitle";
19
20 text = "Plenty of text for the main body.\n";
21 text += "You need to manual do line breaks\n";
22 text += "here. No word wrap yet.";
23
24 add = "Additional text at the bottom";
25 }
26
27 draw_text()
28 {
29 string drawList = "MoveTo 40,80; PenColour RED; FontSize 48; Text " + title + ";";
30 drawList += "MoveTo 160,160; FontSize 32; Text " + subtitle + ";";
31 drawList += "PenColour BLACK; MoveTo 40,220; FontSize 24; Text " + text + ";";
32 drawList += "PenColour RED; FontName Times New Roman; MoveTo 40,900; Text " + add + ";";
33 osSetDynamicTextureData("", "vector", drawList, "1024", 0);
34 }
35
36 default {
38 {
39 push_text();
40 }
41
42 touch_start(integer count)
43 {
44 push_text();
45 if(channel >= 0) {
46 llSay(channel, text);
47 }
48 }
49
50 }

Back to the Best Free Tools in Second Life and OpenSim.