Unit ui
Classes, Interfaces, Objects and Records
Types
Constants
Description
User Interface - Unit responsible for displaying messages and screens
Uses
Overview
Functions and Procedures
Variables
Description
Functions and Procedures
procedure TextOut(X, Y: word; textcol: shortstring; const S: string); |
|
Write to the screen
|
procedure screenBlank; |
|
Blank the screen
|
procedure setupScreen(yn: byte); |
|
Initialise the video unit
|
procedure shutdownScreen; |
|
Shutdown the video unit
|
procedure displayStatusEffect(onoff: byte; effectType: shortstring); |
|
Display status effects
|
procedure redrawStatusEffects; |
|
Redraw status effects when reloading screen
|
procedure displayMessage(message: shortstring); |
|
Write text to the message log
|
procedure bufferMessage(message: shortstring); |
|
Store all messages from players turn
|
procedure writeBufferedMessages; |
|
Write buffered message to the message log
|
procedure restoreMessages; |
|
Restore message window after showing a menu
|
procedure updateLevel; |
|
Update Level number
|
procedure updateXP; |
|
Update Experience points display
|
procedure updateHealth; |
|
Update player health display
|
procedure updateMagick; |
|
Update player magick display
|
procedure updateAttack; |
|
Update player attack value
|
procedure updateDefence; |
|
Update player defence value
|
procedure updateDexterity; |
|
Update player dexterity value
|
procedure updateWeapon; |
|
Display equipped weapon
|
procedure updateArmour; |
|
Display equipped armour
|
procedure exitPrompt; |
|
Display Quit Game confirmation
|
procedure clearStatusBar; |
|
Clears the status bar message
|
procedure exitMessage; |
|
Clear screen and write exit message
|
procedure displayDialog(title, message: shortstring); |
|
Dialog box
|
procedure welcome; |
|
Display welcome message
|
function centreX(textstring: shortstring): byte; |
|
Get X coordinate to centre a string
|
procedure clearPopup; |
|
Redraw map after a pop-up closes
|
Variables
bewilderedStatusSet: boolean; |
|
Status effects
|
equippedArmour: shortstring; |
|
|
equippedWeapon: shortstring; |
|
|
frozenStatusSet: boolean; |
|
Status effects
|
messageArray: array[1..7] of shortstring = (' ', ' ', ' ', ' ', ' ', ' ', ' '); |
|
|
poisonStatusSet: boolean; |
|
Status effects
|
vid: TVideoMode; |
|
CRT unit is just to clear the screen on exit
|
Generated by PasDoc 0.16.0.