Global Command: toggleWindowMode

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 23:16, 15 May 2023 by EK (talk | contribs) (Created page with "Toggle the current window mode form fullscreen to windowed or vice versa. {| class="ts" |- | style="width:15%" | Related functions | Global Command: getWindowMode|getWindow...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Toggle the current window mode form fullscreen to windowed or vice versa.

Related functions getWindowMode


Syntax

toggleWindowMode()


Parameters

none


Return values

none


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