UI Buttons JSON Configuration - KageDesu/Alpha-ABS GitHub Wiki

⚠️ Available since build 996

YouTube video

JSON configuration files

All JSON configuration files place: 📁 RPG Maker MV Project/data/AABS/

Activate in Game

Set plugin parameter Interface\Elements\ UI Buttons to true

UI Buttons

Features:

  • Has up to 4 images states (Normal, Hover, Clicked, Disabled), only Normal is required
  • Supports any size images
  • Supports alpha channel check (when press or hover)
  • Common Event, Map Event, Script calls support (or all in row)
  • Scripts conditions for visible and enable states
  • You can create you own custom buttons (for ABS and normal maps) [PRO Only]

⚠️ Required Image files, place: 📁 RPG Maker MV Project/img/pictures/
Download default images

Configuration file name: UIButtons.json
Download default file


Configuration file structure: 5 required code blocks
1️⃣ Jump Button Settings
2️⃣ Follow Button Settings
3️⃣ Rotate Button Settings
4️⃣ Weapons Button Settings
5️⃣ Attack Button Settings
#️⃣ ...Custom Buttons Settings

Configuration elements:
name - unique name, ⚠️ don't change for defaults 5 blocks
position - [x, y], where x and y can be Number or Formula (string)
Examples:

"position": [12, 66]
"position": [32, "Graphics.height - 76"]
"position": ["Graphics.width - 142", "Graphics.height - 76"]

labelText - [text, size, position] - label when button is hovered by mouse, where position 0 - above, 1 - below button

"labelText": ["Jump", 22, 0]
"labelText" : null \\ No label

isOverrideClickInput - boolean, if true - button will be clicked also when game message is visible

commonEventOnClick - Number, Common Event ID to run when button is clicked

mapEventOnClick - Number, Map Event ID to run when button is clicked

scriptOnClick - String, execute code when button is clicked

condition - String, code condition for button visibility

conditionForDisable - String, code condition for button disable state

Other elements have clear names and do not need to be described

Custom Buttons

You can create custom buttons.
⚠️ Only for Alpha ABS Pro version (for Patrons only)

  1. Add new code blocks in UIButtons.json file with Unique names (name field)

  2. Then, write new buttons unique names to plugin parameter Interface\Elements\UI Buttons\ Custom Buttons Names