Difference between revisions of "IsInMenuMode - Utility"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Catwheezle
(Added "see also" to isTimePassing, partly for clarity, partly on the offchance that it does something in future versions.)
Line 28: Line 28:
== See Also ==
== See Also ==
*[[Utility Script]]
*[[Utility Script]]
*[[IsTimePassing - Utility]]

Revision as of 18:08, 14 February 2012

Member of: Utility Script

Obtains whether the game is currently in "menu mode" or not. Menu mode is basically defined as whenever the game is paused, usually because some menu is showing. Dialogue does not pause the game, and so does not put the game into "menu mode".

Syntax

bool Function IsInMenuMode() native

Parameters

None.

Return Value

Whether the game is currently in "menu mode" or not.

Examples

if (!Utility.IsInMenuMode())
  ; do game stuff! we aren't in a menu
endIf

Notes

  • Dialogue, because the game isn't paused, will not put the game into "menu mode".

See Also