spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Overlay functions and properties

Valid property (overlay)

(Formerly known as IsOverlayValid, which is now obsolete)

readonly bool Overlay.Valid;
Checks whether the overlay is a current overlay or not. Returns 1 if it is, 0 if it isn't.

Example:

Overlay* myOverlay = Overlay.CreateTextual(50,80,120,2,15,"This is a text overlay");
Display("Overlay valid before: %d", myOverlay.Valid);
myOverlay.Remove();
Display("Overlay valid after: %d", myOverlay.Valid);
creates an overlay, and prints out the Valid property (which will be 1). Then, removes the overlay and prints Valid again (which will now be 0).

See Also: Overlay.CreateTextual, Overlay.Remove


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.