PluginName: SDJB_ htmlGallery
Author: ShadowDragon
WIP html Gallery is a new and unique plugin
Fully styled inside the CSS, currently with the following layout
Code:
Default image Size used = 490 x 140 pixels (W x H).
How it works
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
htmlGallery.open() // to open the Gallery
htmlGallery._close() // to close the Gallery
Adding pictures
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
This picture on adding is unlocked (locked: false) by default.
htmlGallery.add({ id: "pic1", img: "path/to/image.png" });
This picture on adding is locked when adding it.
htmlGallery.add({ id: "pic2", img: "path/to/image.png", locked: true })
This add an array of entries, if you want to add chapter by chapter.
htmlGallery.add([
{ id: "chapt1", img: "path/to/image.png" },
{ id: "chapt2", img: "path/to/image.png", locked: false },
{ id: "chapt3", img: "path/to/image.png", locked: true },
{ id: "chapt4", img: "path/to/image.png" }
]);
You can modify the gameSystem entry list that start out with a list and
add later the rest.
Unlock pictures
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
htmlGallery.unlock(id) uses its id to unlock the picture from true to false.
Images must be stored inside img/shadowdragon/gallery
@requiredAssets img/shadowdragon/gallery/Locked
@requiredAssets img/shadowdragon/gallery/Prev
@requiredAssets img/shadowdragon/gallery/Next
@requiredAssets img/shadowdragon/gallery/Close
Download from
itch.io (make sure you download the latest SDJB_htmlBase!)
===
TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB
Version + UPDATE'S
05-05-2025 Version 1.0.0 first release
===
WARNING ===
YOU ARE NOT ALLOWED TO REDISTRIBUTE OR SELL IT OR TAKE CODE FOR YOUR OWN.
DO NOT REMOVE THE HEADER.
=== TERMS OF USE === Free for Non-Commercial and Commercial use when credit is given. credit one of the following: ShadowDragon