Difference between revisions of "Global Command: toggleWindowMode"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(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...")
 
(No difference)

Latest revision as of 00:16, 16 May 2023

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