-
Notifications
You must be signed in to change notification settings - Fork 2
Configure the plugins
Zerf edited this page Feb 18, 2015
·
4 revisions
You must be on a web server for the configuration changes to take place.
You're here because the new version of the loader comes with two plugins: Slideshow and Music Player. I have added them into this loader, but by default they are not activated. This page will teach you how to activate and configure them. Let's go!
This plugin utilizes the ResponsiveSlides.js plugin, and I have made it easy to use.
"slideshow" : {
"active" : false,
"speed" : 1000,
"time" : 5000,
"random" : false,
"image" : [
"http://i.ytimg.com/vi/4LRvEYsZNfY/maxresdefault.jpg",
"http://cloud-4.steampowered.com/ugc/510328173857488907/D3C86C34DCE410D2C4ED0C3AA06F7ED41ECF468A/",
"http://i.ytimg.com/vi/66_hi3AfwT0/maxresdefault.jpg"
]
}
-
"active" : false
| Set this totrue
to enable the plugin. -
"speed" : 1000
| The slideshow uses a fade-out effect between images. This changes the speed of the effect in milliseconds. -
"time" : 5000
| Time between each image switch in milliseconds. -
"random" : false
| The order of your images will be shuffled. -
"image" : []
| All your images should to be added here in the format you can see above.
Example :
"slideshow" : {
"active" : true,
"speed" : 500,
"time" : 2500,
"random" : false,
"image" : [
"img/img1.png",
"img/img2.png",
"img/img3.png"
]
}
Note : It is optional to use the "img" folder to add your images. Now your slideshow is ready to work :)
This plugin will play your music when your loader is shown.
"music" : {
"active" : false,
"file" : "example.wav",
"volume" : 0.1,
"title" : "Example Song"
}
-
"active" : false
| Set this totrue
to enable the plugin. -
"file" : "example.wav"
| This is the audio file to play. Place it in your loader folder or create a new folder and set it here. -
"volume" : 0.1
| This is the volume of the player. You can't use the player to change volume when the screen is shown in GMod, so the volume is its the lowest value. You can set it between 0.1 and 1. -
"title" : "Example Song"
| This is the song title you want to show to your players. Leave it to blank (ex :"title" : ""
) to not show the title.
Example :
"music" : {
"active" : true,
"file" : "nyancat.wav",
"volume" : 0.5,
"title" : "Nyan nyan nyan nyan nyan nyan nyan nyan nyan nyan!!!"
}
If new plugins are added to the loader, this page will be modified. Thank you again for downloading this loader :D