Notifications displayed in the OpenGL window. The idea is to display messages about something happening at the bottom / top of the screen. These messages disappear by themselves after some short time.
Similar to older FPS games messages, e.g. DOOM, Quake, Duke Nukem 3D. Suitable for game messages like "Picked up 20 ammo" or "Player Foo joined game".
Show new message. An overloaded version that takes a single string will detect newlines in the string automatically so a message may be multi-line. The messages will be automatically broken to fit on the screen width with given font.
procedure Show(s: TStringList); overload;
procedure Clear;
Clear all messages.
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override;
How long a given message should be visible on the screen, in miliseconds. Message stops being visible when this timeout passed, or when we need more space for new messages (see MaxMessages).
Turn this on to have all the messages you pass to Show be collected inside History string list. History is expanded by Show, it is cleared by Clear, just like the notifications on screen. However, unlike the visible messages, it has unlimited size (messages there are not removed when MaxMessages or Timeout take action), and messages inside are not broken to honour screen width.
This is useful if you want to show the player a history of messages (in case they missed the message in game).