Flexible Windows
version 12/110611 by Jon Ingold
Version 12/110611 of Flexible Windows (for Glulx only) by Jon Ingold begins here.
"An extension for constructing multiple-window interfaces. Windows can be created and destroyed during play. Facilities for per-window character input and hyperlinks are provided."
"with contributions by Erik Temple"
[Changed:
6/26/10 Made the main-window a text-buffer g-window.
6/26/10 The built-in text hyperlinks system now doesn't compile if we're using Basic Hyperlinks.
7/31/10 New rule for allocating rocks.
7/31/10 New not-for-release section that validates rocks, disallowing duplicates.
7/31/10 Added documentation for manual setting of rock values.
7/31/10 Removed out-of-date section on hyperlinking from the documentation.
21/6/11 Added a "does window exist" check before setting background colour.
]
Include Glulx Entry Points by Emily Short.
Before starting the virtual machine:
do nothing. [Hack that, for complicated reasons, prevents character streams going to the wrong place at game startup under some conditions.]
[ Code to make compatible with status line extensions. -- Aaron Reed. ]
Use no status line translates as (- Constant USE_NO_STATUS_LINE 1; -).
Include (-
#ifndef USE_NO_STATUS_LINE;
Constant USE_NO_STATUS_LINE 0;
#endif;
-).
- Chapter 1 - Initialisations, windows and values
- Section - Definitions of properties and values
- Section - Assigning properties to g-windows
- Section - Validating rock numbers (not for release)
- Section - The main-window object, to spawn windows from
- Section - Spawning relations
- Section - Test spawning relations (not for release)
- Chapter 2 - Opening, closing and calibrating
- Section - Opening window chains
- Section - Closing window chains
- Section - Calibrating the window set to match expectations
- Chapter 3 - I6 and Glulx Calls
- Section - I6 for making a window
- Section - I6 for destroying a window
- section - Identify glx rubbish
- Section - Updating the contents of the windows
- Section - Some useful little functions
- Chapter 4 - The constructing activity
- Chapter 5 - Writing to different windows
- Section - Shifting and knowing where we are
- Section - Returning to the main screen
- Section - Setting the cursor
- Section - Background colours
- Section - Reverse-colouring windows
- Section - Bordered g-windows
- Chapter 6 - Echo streams
- Chapter 7 - Glk event handling phrases
- Chapter 8 - Basic keystroke input
- Chapter 9 - Text hyperlinks (for use without Basic Hyperlinks by Emily Short)