Needs to load everytime from web. Would be much more performant to load trough Image Library.
Greets
Please add ImageLibrary for Backpack image
I will consider adding this to the Backpack Button plugin. Trying to avoid adding backpack image related features to this plugin.
You can also fork the Backpack Button to add functionality yourself.
Keep in mind that loading images through Image Library actually adds more load on the server because clients need to download the image from the server instead of directly, though this cost is incurred only once per player per play session.
This functionality will also become obsolete when CUI is updated to cache web images, which is already a PR under review.
Consider using the skin ID feature as an alternative, which still loads directly from the client but includes caching.
Yea I already added it myself but would still be handy to have it native in the plugin so I don't have to change it manually everytime it releases :P
Consider making a Pull Request on GitHub so I don't have to duplicate the effort. This plugin, like all my plugins, is open source. The GUI button was in fact originally implemented by another developer as a PR.
It will need to have a config option, and should be in the Backpack Button plugin.
If you don't plan to contribute, I advise that you make the change in a fork of a Backpack Button, not in Backpacks, for the exact reason you said, so that you don't have to redo the change each time you update the core Backpacks plugin.
Some more advice: as soon as you fork a plugin, open the feature request. What I often see is people saying that they have had a local modification for months, which they have had to apply multiple times, before they finally ask for it, then it may be several updates until it's implemented. The sooner you raise the issue, the sooner it can be implemented upstream.
This feature was also considered in a previous thread, but was eventually dismissed because the original request seemed only concerned with image quality which was fixed in CUI.
https://umod.org/community/backpacks/43416-imagelibrary
Allright if I got the time. My changes are pretty straight forward for sure for my own purpose.