DialogueBox.asc
DialogueBox.asc is a small reusable JJ2+ AngelScript helper for creating in-game windows and menus.
It handles common interface elements such as window frames, title bars, close buttons, draggable windows, buttons, tabs, steppers, wrapped/scrollable text, editable text helpers, keyboard focus, and mouse input. The script itself does not decide what a menu option should do; it simply reports which control was activated, leaving the actual behavior to the script using it.
I created it mainly so that larger scripts would not need to reimplement the same menu/window code repeatedly. It is already used in projects such as NPC Bunnies and the Elevator Editor.
Tutorial
A detailed DialogueBoxTutorial.txt is included with examples showing how to include the script, create windows, add buttons/tabs/steppers, process mouse and keyboard input, make draggable windows, save positions, use editable text, and build complete menu interfaces.
Rather than repeating that documentation here, please refer to the included tutorial when using DialogueBox.asc in your own scripts.
Using it
Include the file in your AngelScript with:
#include “DialogueBox.asc”