Global Command: getWindowMode

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 00:13, 16 May 2023 by EK (talk | contribs) (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:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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