Push All Scripts
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<Solution name="Bootstrapping_HTML_on_a_prim">
|
||||
<Project name="Bootstrapping_HTML_on_a_prim" path="Bootstrapping_HTML_on_a_prim\Bootstrapping_HTML_on_a_prim.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Bootstrapping_HTML_on_a_prim" guid="D860EF1E-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D860F003-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Bootstrapping_HTML_on_a_prim_1.lsl" guid="D8610CC8-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,57 @@
|
||||
// :CATEGORY:Viewer 2
|
||||
// :NAME:Bootstrapping_HTML_on_a_prim
|
||||
// :AUTHOR:Tali Rosca
|
||||
// :CREATED:2010-09-02 11:30:17.583
|
||||
// :EDITED:2013-09-18 15:38:49
|
||||
// :ID:112
|
||||
// :NUM:153
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// DESCRIPTION: []::Bootstrapping_HTML_on_a_prim
|
||||
// :CODE:
|
||||
key url_request;
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
url_request = llRequestURL();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
http_request(key id, string method, string body)
|
||||
|
||||
{
|
||||
|
||||
if (url_request == id)
|
||||
|
||||
{
|
||||
|
||||
url_request = "";
|
||||
|
||||
if (method == URL_REQUEST_GRANTED)
|
||||
|
||||
{
|
||||
|
||||
llSetPrimMediaParams(0, [
|
||||
|
||||
PRIM_MEDIA_CONTROLS, PRIM_MEDIA_CONTROLS_MINI,
|
||||
|
||||
PRIM_MEDIA_PERMS_CONTROL, 0,
|
||||
|
||||
PRIM_MEDIA_PERMS_INTERACT, PRIM_MEDIA_PERM_ANYONE,
|
||||
|
||||
PRIM_MEDIA_AUTO_SCALE, TRUE,
|
||||
|
||||
PRIM_MEDIA_AUTO_PLAY, TRUE,
|
||||
|
||||
PRIM_MEDIA_AUTO_ZOOM, FALSE,
|
||||
Reference in New Issue
Block a user