Image Library is a tool that other plugins can utilise to store and manage imagery for use in UI. On its own it serves no real purpose.
cancelstorage - This will cancel any pending file downloads
"Progress - Show download progress in console": This option will show you progress of load orders in console
"Progress - Time between update notifications": The amount of time between progress updates
"User Images - Manually define images to be loaded": User specified images to be downloaded (some plugins may require this)
"Steam API key (get one here )": This is required to download skin images from the workshop
To get your Steam API key visit ->
Once you have your Steam API key, copy and paste it in to the "Steam API key" entry in your config
This method is specifically designed to find and download item icons for your plugin. LoadImageList will sort through the list of item skin ID's you provide it, and any that are not already implemented by the game will be passed to Steams API to try and find the icon.
This method should be called with a callback specified and your plugin should NOT be enabled until that callback has been invoked!
For an example of using this method see ServerRewards
Console Commands
refreshallimages - Retrieve's and stores all item icon URLs (include's workshop images). Will also download every icon to file storage if the config option "Images - Only download image's when required" is set to truecancelstorage - This will cancel any pending file downloads
Configuration
The settings and options can be configured in the ImageLibrary file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.Configuration Options
"Avatars - Store player avatars": Downloads player's avatars image's (some plugins may require this)"Progress - Show download progress in console": This option will show you progress of load orders in console
"Progress - Time between update notifications": The amount of time between progress updates
"User Images - Manually define images to be loaded": User specified images to be downloaded (some plugins may require this)
"Steam API key (get one here )": This is required to download skin images from the workshop
Setup Approved and Workshop skin support
For ImageLibrary to be able to access approved and Steam Workshop skin icons you must provide a valid API key. These keys are registered to your Steam account and have a limit of 100,000 API calls per day.To get your Steam API key visit ->
Once you have your Steam API key, copy and paste it in to the "Steam API key" entry in your config
Developer API
Note: Image importing/loading methods have a optional callback parameter which will invoke a function when the load is completeImporting Workshop Skins From Your Plugin
Importing skins from the workshop can be done by calling the "LoadImageList" method.This method is specifically designed to find and download item icons for your plugin. LoadImageList will sort through the list of item skin ID's you provide it, and any that are not already implemented by the game will be passed to Steams API to try and find the icon.
This method should be called with a callback specified and your plugin should NOT be enabled until that callback has been invoked!
For an example of using this method see ServerRewards