aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSean Dague2008-06-18 19:23:46 +0000
committerSean Dague2008-06-18 19:23:46 +0000
commit7355d79881e77492c37b5cd0220d842c1785a8ba (patch)
tree7fc63cbffac01cf3167ae28610b1787fe550766c
parent* By popular demand, skipping trees from the map tile generation routine. S... (diff)
downloadopensim-SC_OLD-7355d79881e77492c37b5cd0220d842c1785a8ba.zip
opensim-SC_OLD-7355d79881e77492c37b5cd0220d842c1785a8ba.tar.gz
opensim-SC_OLD-7355d79881e77492c37b5cd0220d842c1785a8ba.tar.bz2
opensim-SC_OLD-7355d79881e77492c37b5cd0220d842c1785a8ba.tar.xz
prune all the empty script directories. Contribute
my text board script to be part of the stock scripts.
-rw-r--r--bin/assets/ScriptsAssetSet/ScriptsAssetSet.xml7
-rw-r--r--bin/assets/ScriptsAssetSet/osTextBoard.lsl47
-rw-r--r--bin/inventory/ScriptsLibrary/ScriptsLibraryFolders.xml102
-rw-r--r--bin/inventory/ScriptsLibrary/ScriptsLibraryItems.xml14
4 files changed, 71 insertions, 99 deletions
diff --git a/bin/assets/ScriptsAssetSet/ScriptsAssetSet.xml b/bin/assets/ScriptsAssetSet/ScriptsAssetSet.xml
index 18e39f3..341454f 100644
--- a/bin/assets/ScriptsAssetSet/ScriptsAssetSet.xml
+++ b/bin/assets/ScriptsAssetSet/ScriptsAssetSet.xml
@@ -132,4 +132,11 @@
132 <Key Name="inventoryType" Value="10" /> 132 <Key Name="inventoryType" Value="10" />
133 <Key Name="fileName" Value="llSetRot.lsl" /> 133 <Key Name="fileName" Value="llSetRot.lsl" />
134 </Section> 134 </Section>
135 <Section Name="osTextBoard">
136 <Key Name="assetID" Value="3e4f2be4-4697-4697-15c8-5920140208c5" />
137 <Key Name="name" Value="osTextBoard" />
138 <Key Name="assetType" Value="10" />
139 <Key Name="inventoryType" Value="10" />
140 <Key Name="fileName" Value="osTextBoard.lsl" />
141 </Section>
135</Nini> 142</Nini>
diff --git a/bin/assets/ScriptsAssetSet/osTextBoard.lsl b/bin/assets/ScriptsAssetSet/osTextBoard.lsl
new file mode 100644
index 0000000..bb5ae81
--- /dev/null
+++ b/bin/assets/ScriptsAssetSet/osTextBoard.lsl
@@ -0,0 +1,47 @@
1string title = "";
2string subtitle = "";
3string text = "";
4string add = "";
5integer channel = 0; // if this is >= 0, llSay on that channel on updates
6
7default {
8 state_entry()
9 {
10 push_text();
11 }
12
13 touch_start(integer count)
14 {
15 push_text();
16 if (channel >= 0) {
17 llSay(channel, text);
18 }
19 }
20
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}
diff --git a/bin/inventory/ScriptsLibrary/ScriptsLibraryFolders.xml b/bin/inventory/ScriptsLibrary/ScriptsLibraryFolders.xml
index 8b46992..1b93a1b 100644
--- a/bin/inventory/ScriptsLibrary/ScriptsLibraryFolders.xml
+++ b/bin/inventory/ScriptsLibrary/ScriptsLibraryFolders.xml
@@ -29,78 +29,6 @@
29 <Key Name="name" Value="B"/> 29 <Key Name="name" Value="B"/>
30 <Key Name="type" Value="10"/> 30 <Key Name="type" Value="10"/>
31 </Section> 31 </Section>
32 <Section Name="C">
33 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba005"/>
34 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
35 <Key Name="name" Value="C"/>
36 <Key Name="type" Value="10"/>
37 </Section>
38 <Section Name="D">
39 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba006"/>
40 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
41 <Key Name="name" Value="D"/>
42 <Key Name="type" Value="10"/>
43 </Section>
44 <Section Name="E">
45 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba007"/>
46 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
47 <Key Name="name" Value="E"/>
48 <Key Name="type" Value="10"/>
49 </Section>
50 <Section Name="F">
51 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba008"/>
52 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
53 <Key Name="name" Value="F"/>
54 <Key Name="type" Value="10"/>
55 </Section>
56 <Section Name="G">
57 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba009"/>
58 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
59 <Key Name="name" Value="G"/>
60 <Key Name="type" Value="10"/>
61 </Section>
62 <Section Name="H">
63 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba010"/>
64 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
65 <Key Name="name" Value="H"/>
66 <Key Name="type" Value="10"/>
67 </Section>
68 <Section Name="I">
69 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba011"/>
70 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
71 <Key Name="name" Value="I"/>
72 <Key Name="type" Value="10"/>
73 </Section>
74 <Section Name="K">
75 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba012"/>
76 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
77 <Key Name="name" Value="K"/>
78 <Key Name="type" Value="10"/>
79 </Section>
80 <Section Name="L">
81 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba013"/>
82 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
83 <Key Name="name" Value="L"/>
84 <Key Name="type" Value="10"/>
85 </Section>
86 <Section Name="M">
87 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba014"/>
88 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
89 <Key Name="name" Value="M"/>
90 <Key Name="type" Value="10"/>
91 </Section>
92 <Section Name="O">
93 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba015"/>
94 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
95 <Key Name="name" Value="O"/>
96 <Key Name="type" Value="10"/>
97 </Section>
98 <Section Name="P">
99 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba016"/>
100 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
101 <Key Name="name" Value="P"/>
102 <Key Name="type" Value="10"/>
103 </Section>
104 <Section Name="R"> 32 <Section Name="R">
105 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba017"/> 33 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba017"/>
106 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/> 34 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
@@ -113,34 +41,10 @@
113 <Key Name="name" Value="S"/> 41 <Key Name="name" Value="S"/>
114 <Key Name="type" Value="10"/> 42 <Key Name="type" Value="10"/>
115 </Section> 43 </Section>
116 <Section Name="T"> 44 <Section Name="OpenSim Specific Scripts"/>
117 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba019"/> 45 <Key Name="folderID" Value="284858c8-9391-6bf1-ddf5-b936f73de853"/>
118 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
119 <Key Name="name" Value="T"/>
120 <Key Name="type" Value="10"/>
121 </Section>
122 <Section Name="U">
123 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba020"/>
124 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
125 <Key Name="name" Value="U"/>
126 <Key Name="type" Value="10"/>
127 </Section>
128 <Section Name="V">
129 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba021"/>
130 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
131 <Key Name="name" Value="V"/>
132 <Key Name="type" Value="10"/>
133 </Section>
134 <Section Name="W">
135 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba022"/>
136 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
137 <Key Name="name" Value="W"/>
138 <Key Name="type" Value="10"/>
139 </Section>
140 <Section Name="X">
141 <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba023"/>
142 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/> 46 <Key Name="parentFolderID" Value="30000112-000f-0000-0000-000100bba002"/>
143 <Key Name="name" Value="X"/> 47 <Key Name="name" Value="OpenSim Specific Scripts"/>
144 <Key Name="type" Value="10"/> 48 <Key Name="type" Value="10"/>
145 </Section> 49 </Section>
146 <Section Name=".Kan-ED Scripts"> 50 <Section Name=".Kan-ED Scripts">
diff --git a/bin/inventory/ScriptsLibrary/ScriptsLibraryItems.xml b/bin/inventory/ScriptsLibrary/ScriptsLibraryItems.xml
index 66888c9..b78c094 100644
--- a/bin/inventory/ScriptsLibrary/ScriptsLibraryItems.xml
+++ b/bin/inventory/ScriptsLibrary/ScriptsLibraryItems.xml
@@ -286,4 +286,18 @@
286<!-- X == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba023"/> --> 286<!-- X == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba023"/> -->
287<!-- .Kan-ED Scripts == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba024"/> --> 287<!-- .Kan-ED Scripts == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba024"/> -->
288<!-- .Other testing scripts == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba025"/> --> 288<!-- .Other testing scripts == <Key Name="folderID" Value="30000112-000f-0000-0000-000100bba025"/> -->
289<!-- OpenSim Specific Scripts == <Key Name="folderID" Value="284858c8-9391-6bf1-ddf5-b936f73de853"/> -->
290 <Section Name="osTextBoard">
291 <Key Name="inventoryID" Value="3e4f2be4-4697-4697-15c8-5920140208c5"/>
292 <Key Name="assetID" Value="3e4f2be4-4697-4697-15c8-5920140208c5"/>
293 <Key Name="folderID" Value="284858c8-9391-6bf1-ddf5-b936f73de853"/>
294 <Key Name="description" Value="A dynamic text board - contributed by Neas Bade" />
295 <Key Name="name" Value="osTextBoard" />
296 <Key Name="assetType" Value="10" />
297 <Key Name="inventoryType" Value="10" />
298 <Key Name="currentPermissions" Value="257487132" />
299 <Key Name="nextPermissions" Value="257487132" />
300 <Key Name="everyonePermissions" Value="257487132" />
301 <Key Name="basePermissions" Value="257487132" />
302 </Section>
289</Nini> 303</Nini>