Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: MV/MZ SDJB_htmlMenu
- Original author: ShadowDragon
- Original date: April 6, 2025
- Source thread: https://forums.rpgmakerweb.com/threads/sdjb_htmlmenu.176794/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugins In Development
Summary
PluginName: SDJB_ htmlMenu Author: ShadowDragon { "lightbox_close": "Close",
Archived First Post
PluginName: SDJB_ htmlMenu
Author: ShadowDragon
Change Log:
This update is HUGE, and a pain!
- Change Structure built and able to save them Save Files!
- Added "id" which should be UNIQUE (with safe-guard to print out duplicated)
- Added "disabled" to easy disable the command.
- Altered AddMenuCmd to be more powerful for use!
- Added enableCmd(id) and will unlock EACH command in its path if nested.
- Added disableCmd(id) to disable 1 item with the ID
- Added removeCmd to remove the ID from the list.
- Added changeLabel(id, newName) to change it on the fly!
- Enhanced Debug just in case (html.debugMenu() ).
- Added warn if you add duplicated or add a new command that exist.
=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB
Version + UPDATE'S
09-04-2025 Version 0.1.0 first release
21-04-2025 Vesion 1.0.0 BIG UPDATE
=== WARNING ===
YOU ARE NOT ALLOWED TO REDISTRIBUTE OR SELL IT OR TAKE CODE FOR YOUR OWN.
DO NOT REMOVE THE HEADER.
Download from itch
Author: ShadowDragon
Code:
Open the plugin to make your HTML Commands in the "initHtmlMenu".
using the scriptcall: $gameSystem.initHtmlMenu(); will reset it back!
How it works
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
htmlMenu.open()
To open the menu (closes automatically) when you click the command.
htmlMenu.debugMenu()
To debug the menu if it works correctly.
htmlMenu.changeLabel(id, newLabel);
This change the label of the command to a new one, by using its id.
Example:
id: "equipment", label: "???"
htmlMenu.changeLabel("equipment", "Super Gear");
becomes:
id: "equipment", label: "Super Gear"
htmlMenu.enableCmd(id);
Unlocks all parents leading to this command
htmlMenu.disableCmd(id);
Only disables the one you set
htmlMenu.removeCmd(id)
Remove the target ID and all its childs if it has any.
htmlMenu.addMenuItem(newItems, overwrite);
This add new menu commands, if it exist.
→ if exist, it adds a new item to the id/submenu or change.
The best thing is it starts from the ID if its deep nested!.
→ if exist, but change the action, it updates it.
→ if it doesn't exist, it adds the command(s)/subcommands
→ newItems is a new entry, while overwrite = false by default.
When overwrite is true, it delete everything on the existing label
and remake the entry.
Example how to use:
͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
The following adds a new command, or update if exist.
htmlMenu.addMenuItem([{
id: "equipment", label: "Equipment",
action: () => console.log("New Command clicked"),
disabled: false,
subMenu: [{
id: "uniqueId", label: "New Command",
action: () => console.log("New Command clicked"),
disabled: false
}]
}]);
The following overwrite the entire command
htmlMenu.addMenuItem([{
id: "equipment", label: "Equipment",
action: () => console.log("New Command clicked"),
disabled: false,
subMenu: [{
id: "uniqueId", label: "New Command",
action: () => console.log("New Command clicked"),
disabled: false
}]
}], true)
Change Log:
This update is HUGE, and a pain!
- Change Structure built and able to save them Save Files!
- Added "id" which should be UNIQUE (with safe-guard to print out duplicated)
- Added "disabled" to easy disable the command.
- Altered AddMenuCmd to be more powerful for use!
- Added enableCmd(id) and will unlock EACH command in its path if nested.
- Added disableCmd(id) to disable 1 item with the ID
- Added removeCmd to remove the ID from the list.
- Added changeLabel(id, newName) to change it on the fly!
- Enhanced Debug just in case (html.debugMenu() ).
- Added warn if you add duplicated or add a new command that exist.
=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB
Version + UPDATE'S
09-04-2025 Version 0.1.0 first release
21-04-2025 Vesion 1.0.0 BIG UPDATE
=== WARNING ===
YOU ARE NOT ALLOWED TO REDISTRIBUTE OR SELL IT OR TAKE CODE FOR YOUR OWN.
DO NOT REMOVE THE HEADER.
Download from itch
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
=== TERMS OF USE === Free for Non-Commercial and Commercial use when credit is given. credit one of the following: ShadowDragon
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...