You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we only need this at the start to check for key name errors :)
146
+
if (KeyNameCheck(KeyNames, cmd_grab) ==FALSE) {
147
+
llInstantMessage(id, "Themes Configuration Format Error on line: "+ (string)LineIndex+".");
148
+
llResetScript();
149
+
}
150
+
if (cmd_grab=="[author name]") {
151
+
Author_Name=value;
152
+
// error checking for Author Name
153
+
if (value=="") {
154
+
llInstantMessage(id, "Themes Configuration Error on line: "+ (string)LineIndex+". Author Name can not be empty.");
155
+
llResetScript();
156
+
}
157
+
}
158
+
else
159
+
if (cmd_grab=="[menu button name]") {
160
+
Menu_Button_Name=value;
161
+
// error checking for Menu Button Name
162
+
if (value=="") {
163
+
llInstantMessage(id, "Themes Configuration Error on line: "+ (string)LineIndex+". Menu Button Name can not be empty.");
164
+
llResetScript();
165
+
}
166
+
}
167
+
else
168
+
if (cmd_grab=="[backdrop texture uuid]") {
169
+
Back_Drop_UUID=value;
170
+
// error checking for BackDrop Texture UUID
171
+
if (value==""|| (isKey((key)value)) ==1|| (isKey((key)value)) ==0) {
172
+
llInstantMessage(id, "Themes Configuration Error on line: "+ (string)LineIndex+". (1) The Backdrop UUID Key is empty. (2) The Backdrop UUID is not a key. (3) The Backdrop UUID Key is NULL.");
173
+
llResetScript();
174
+
}
175
+
}
176
+
else
177
+
if (cmd_grab=="[floordrop texture uuid]") {
178
+
Floor_Drop_UUID=value;
179
+
// error checking for FloorDrop Texture UUID
180
+
if (value==""|| (isKey((key)value)) ==0) {
181
+
llInstantMessage(id, "Themes Configuration Error on line: "+ (string)LineIndex+". (1) The Floor-drop UUID Key is empty. (2) The Floor-drop UUID is not a key.");
182
+
llResetScript();
183
+
}
184
+
ThemesCount=ThemesCount+1; // add +1 to our themes count
185
+
Themes+= [Menu_Button_Name, Back_Drop_UUID, Floor_Drop_UUID]; // add to our themes test list database
0 commit comments