Global Command: getWindowMode
From The Official Visionaire Studio: Adventure Game Engine Wiki
(Redirected from GetWindowMode)
Returns the current window mode, i. e. if the game is running at fullscreen or in a window.
Related functions | toggleWindowMode |
Syntax
getWindowMode()
Parameters
none
Return values
Type | Description |
---|---|
boolean | True if the game is running at fullscreen, false if it is running in a window. |
Examples
Example 1: Toggle the window mode, if the game is running at fullscreen, thus make it run in a window.
if getWindowMode() then
toggleWindowMode()
end