menusys.tfilesource file

TADS 3 Library - Menu System


Modifications copyright 2003, 2006 Michael J. Roberts

This module is designed to make it easy to add on-screen menus to a game. Stephen Granade adapted this module from his TADS 2 menu system, and Mike Roberts made some minor cosmetic changes to integrate it with the main TADS 3 library.

N.B. in plain-text mode (for interpreters without banner capabilities), a menu won't be fully usable if it exceeds 9 subitems: each item in a menu is numbered, and the user selects an item by entering its number; but we only accept a single digit as input, so only items 1 through 9 can be selected on any given menu. Good usability design usually dictates that menus shouldn't be so large anyway, so most menus will naturally avoid this problem, but this is something to keep in mind.

Summary of Classes  

MenuItem  MenuLongTopicItem  MenuObject  MenuTopicItem  MenuTopicSubItem 

Summary of Global Objects  

contentsMenuBanner  longTopicBanner  topMenuBanner 

Summary of Global Functions  

(none)

Global Functions  

(none)

TADS 3 Library Manual
Generated on 9/8/2006 from TADS version 3.0.11