aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/assets/ScriptsAssetSet/osTextBoard.lsl
diff options
context:
space:
mode:
authorMike Mazur2008-07-18 04:51:36 +0000
committerMike Mazur2008-07-18 04:51:36 +0000
commit2558f8ac3122f2721c9f47500626f781ff548bbe (patch)
treeb38ed2afbb202f164480be3a362b512d6ea8deb9 /bin/assets/ScriptsAssetSet/osTextBoard.lsl
parentmasks MySQL password from console startup messages (diff)
downloadopensim-SC_OLD-2558f8ac3122f2721c9f47500626f781ff548bbe.zip
opensim-SC_OLD-2558f8ac3122f2721c9f47500626f781ff548bbe.tar.gz
opensim-SC_OLD-2558f8ac3122f2721c9f47500626f781ff548bbe.tar.bz2
opensim-SC_OLD-2558f8ac3122f2721c9f47500626f781ff548bbe.tar.xz
Make scripts LSL compliant.
Diffstat (limited to '')
-rw-r--r--bin/assets/ScriptsAssetSet/osTextBoard.lsl53
1 files changed, 27 insertions, 26 deletions
diff --git a/bin/assets/ScriptsAssetSet/osTextBoard.lsl b/bin/assets/ScriptsAssetSet/osTextBoard.lsl
index bb5ae81..7aacab4 100644
--- a/bin/assets/ScriptsAssetSet/osTextBoard.lsl
+++ b/bin/assets/ScriptsAssetSet/osTextBoard.lsl
@@ -4,6 +4,33 @@ string text = "";
4string add = ""; 4string add = "";
5integer channel = 0; // if this is >= 0, llSay on that channel on updates 5integer channel = 0; // if this is >= 0, llSay on that channel on updates
6 6
7push_text()
8{
9 compile_text();
10 draw_text();
11}
12
13compile_text()
14{
15 title = "Some Title";
16 subtitle = "Some subtitle";
17
18 text = "Plenty of text for the main body.\n";
19 text += "You need to manual do line breaks\n";
20 text += "here. No word wrap yet.";
21
22 add = "Additional text at the bottom";
23}
24
25draw_text()
26{
27 string drawList = "MoveTo 40,80; PenColour RED; FontSize 48; Text " + title + ";";
28 drawList += "MoveTo 160,160; FontSize 32; Text " + subtitle + ";";
29 drawList += "PenColour BLACK; MoveTo 40,220; FontSize 24; Text " + text + ";";
30 drawList += "PenColour RED; FontName Times New Roman; MoveTo 40,900; Text " + add + ";";
31 osSetDynamicTextureData("", "vector", drawList, "1024", 0);
32}
33
7default { 34default {
8 state_entry() 35 state_entry()
9 { 36 {
@@ -18,30 +45,4 @@ default {
18 } 45 }
19 } 46 }
20 47
21 void push_text()
22 {
23 compile_text();
24 draw_text();
25 }
26
27 void compile_text()
28 {
29 title = "Some Title";
30 subtitle = "Some subtitle";
31
32 text = "Plenty of text for the main body.\n";
33 text += "You need to manual do line breaks\n";
34 text += "here. No word wrap yet.";
35
36 add = "Additional text at the bottom";
37 }
38
39 void draw_text()
40 {
41 string drawList = "MoveTo 40,80; PenColour RED; FontSize 48; Text " + title + ";";
42 drawList += "MoveTo 160,160; FontSize 32; Text " + subtitle + ";";
43 drawList += "PenColour BLACK; MoveTo 40,220; FontSize 24; Text " + text + ";";
44 drawList += "PenColour RED; FontName Times New Roman; MoveTo 40,900; Text " + add + ";";
45 osSetDynamicTextureData("", "vector", drawList, "1024", 0);
46 }
47} 48}