Designing a custom interface.

User Interfaces

Custom User Interfaces Authored in the Database

reactor_ui.js · 8,704 lines · 394 public functions

Designing a custom interface.

What This Module Does

An interface is a record in data/UserInterfaces.json: a tree of Box, Image, Text, Button, List, and Gauge nodes with anchored positions, each control wired to an action (close, call another interface, run a common event, open a stock scene, a plugin command, a switch, a variable, or a script). The file is optional: a project without one has no interfaces and boots exactly as before. Every node draws through Window_Base so it inherits the window skin, the game font, escape codes, input handling, and whatever plugins do to windows. Scene interfaces take focus; overlay interfaces attach to Scene_Map and remain input-transparent.

Classes & Namespaces

Design Notes from the Source Code

An interface is a record in data/UserInterfaces.json: a tree of Box, Image, Text, Button, List, and Gauge nodes with anchored positions, each control wired to an action (close, call another interface, run a common event, open a stock scene, a plugin command, a switch, a variable, or a script). The file is optional: a project without one has no interfaces and boots exactly as before. Every node draws through Window_Base so it inherits the window skin, the game font, escape codes, input handling, and whatever plugins do to windows. Scene interfaces take focus; overlay interfaces attach to Scene_Map and remain input-transparent.

Call User Interface is the code-357 plugin command RPGReactor / CallUserInterface; a runtime without this file ignores it.

View reactor_ui.js on GitHub · Hide internal (_) functions