Jump to content

Search the Community

Showing results for tags 'preloading'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • People Forum
    • Your Avatar
    • Make Friends
    • Lifestyles and Relationships
    • Role Play
    • General Discussion Forum
    • Forums Feedback
    • Missed Connections
    • Second Life Education
  • Places and Events Forum
    • Favorite Destinations
    • Upcoming Events and Activities
    • Games in Second Life
  • Official Contests & Events
    • Leap Into Love Snapshot Contest
  • Creation Forum
    • Fashion
    • Art, Music and Photography
    • Animation Forum
    • Bakes on Mesh
    • Environmental Enhancement Project
    • Machinima Forum
    • Building and Texturing Forum
    • Mesh
    • LSL Scripting
    • LSL Library
    • Experience Tools Forum
    • Sansar for Second Life Residents
  • Technology Forum
    • Second Life Server
    • Second Life Viewer
    • Second Life Web
    • General Second Life Tech Discussion
  • Commerce Forum
    • Merchants
    • Inworld Employment
    • Wanted
  • Land Forum
    • General Discussion
    • Mainland
    • Linden Homes
    • Regions for Sale: Full Private Island
    • Region for Rent: Full Private Island
    • Regions for Sale: Homesteads
    • Region Rentals: Homestead
    • Parcels for Sale: Mainland
    • Parcels for Rent: Mainland
    • Wanted: Full Private Island
    • Wanted: Homesteads
    • Wanted: Mainland
  • International Forum
    • Deutsches Forum
    • Foro en español
    • Forum in italiano
    • Forum français
    • 日本語フォーラム
    • 한국어 포럼
    • Fórum em português
    • Forum polskie
    • المنتدى العربي
    • Türkçe Forum
    • Форум по-русски
  • Adult Content Forum
    • Highlight Upcoming Events
    • General Discussion
    • General Announcements
  • Answers
    • Abuse and Griefing
    • Account
    • Avatar
    • Creation
    • Inventory
    • Getting Started
    • Controls
    • Land
    • Linden Dollars (L$)
    • Shopping
    • Technical
    • Viewers
    • Everything Else
    • International Answers

Blogs

  • Commerce
  • Featured News
  • Inworld
  • Tools and Technology
  • Tips and Tricks
  • Land

Categories

  • English
  • Deutsch
  • Français
  • Español
  • Português
  • 日本語
  • Italiano
  • Pусский
  • Türkçe

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 1 result

  1. Hello! iI found this script and i want to remove two objects -forward/reverse option and leave only one object slideshow with texture preload option, maybe even with speed menu. how to do that and remove this option? Preloading Slide Viewer Script // PRE-LOAD and VIEW SLIDES // Script by Sendao Goodman, 2007 // Modified by Rolig Loon 2009, 2010, 2011, 2012 //-------------------------- // Installation note: This is to be used in a linked 3-prim object. // By default, slides show on face 2 of the root prim (the screen). // One child prim, which must be named "forward", is the forward button. // The other one, which must be named "reverse", is the reverse button. //-------------------------- // Drop this script and any images into the root prim and it will cycle every 10 seconds // Owner: Touch the root prim (viewer screen) to change slide speed or turn it off. // All Users: Touch the "forward" or "reverse" prim to change slides manually float gPace = 10.0; integer gReload; list gPics; integer gLen; integer gSlide; integer gChan; integer gLsn; loadPictures() { gPics=[]; integer i = llGetInventoryNumber(INVENTORY_TEXTURE); if( i > 0 ) { while( i > 0 ) { i--; gPics += [llGetInventoryName(INVENTORY_TEXTURE,i)]; } gLen = (gPics !=[]); llOwnerSay((string)gLen+" pictures loaded"); gPics = llListSort( gPics, 1, TRUE ); // put them in order llOwnerSay("Slides are now set to advance every "+ (string)gPace + " seconds."); llSetTimerEvent(gPace); } else if( gReload == 0 ) { llSetTimerEvent(0.0); } } string getSlide(integer slide) { return llList2String( gPics, (slide+gLen)%gLen ); } default { on_rez(integer sp) { loadPictures(); gSlide=0; gReload=0; } state_entry() { gChan = (integer)("0xF" + llGetSubString(llGetKey(),0,6)); loadPictures(); gSlide=0; gReload=0; llSetLinkColor(LINK_THIS, <0,0,0>, ALL_SIDES ); llSetLinkColor(LINK_THIS, <1,1,1>, 2 ); // Slides displayed on this face are visible. All other faces are colored black } listen(integer channel, string name, key id, string msg) { llListenRemove(gLsn); if(msg == "OFF") { gPace = 0.0; } else { gPace += (float)msg; if (gPace <= 0.0) { gPace = 0.0; } } llSetTimerEvent(gPace); llOwnerSay("Slides are now set to advance every "+ (string)gPace + " seconds."); } changed( integer ch ) { if( ch & CHANGED_INVENTORY ) { gReload = 1; llSetTimerEvent(2.0); } } touch_start(integer num) { if (llDetectedLinkNumber(0) == 1) // The root prim (viewer screen) { if (llDetectedKey(0) == llGetOwner()) { gLsn = llListen(gChan,"","",""); llDialog(llGetOwner()," \n\nSlides now advance every "+(string)gPace+ " seconds. Select a new speed.",["+2","+5","OFF","-2","-5"],gChan); } } else if (llGetLinkName(llDetectedLinkNumber(0)) == "forward") //The forward button { if( gLen > 0 ) { integer i=6; while( i > 0 ) { i--; llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,i,getSlide(gSlide+(i-2)),<1.0,1.0,0.0>,ZERO_VECTOR,0.0]); } gSlide = (gSlide+1)%gLen; } } else if (llGetLinkName(llDetectedLinkNumber(0)) == "reverse") // The reverse button { if( gLen > 0 ) { integer i=6; while( i > 0 ) { i--; llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,i,getSlide(gSlide+(i-3)),<1.0,1.0,0.0>,ZERO_VECTOR,0.0]); } gSlide = (gSlide-1)%gLen; } } } timer() { if( gReload == 1 ) { gReload = 0; loadPictures(); llSetTimerEvent(gPace); } else { integer i=6; while( i > 0 ) { i--; llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXTURE,i,getSlide(gSlide+(i-2)),<1.0,1.0,0.0>,ZERO_VECTOR,0.0]); } gSlide = (gSlide+1)%gLen; } } }
×
×
  • Create New...