Difference between revisions of "Global Command: getWindowMode"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "Returns the current window mode, i. e. if the game is running at fullscreen or in a window. {| class="ts" |- | style="width:15%" | Related functions | Global Command:...") |
(No difference)
|
Latest revision as of 00:13, 16 May 2023
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