Global Command: toggleWindowMode

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Redirected from ToggleWindowMode)

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