Translations of this page:

This is an old revision of the document!
—-

New scripting methods and properties in WME Lite

Game object

Game.Platform

Read-only. This property returns the name of the operating system WME Lite is currently running on. Possible values at the moment are: "Windows", "Mac OS X" and "iPhone OS".
Note: Regular WME will return null when querying this property. That way your scripts can distinguish between WME Regular and WME Lite.

Game.CursorHidden

When set to true, this property hides the mouse pointer completely. This can useful for touch-only devices where mouse pointer doesn't make much sense.

Game.AutoSaveOnExit

iOS only. This property specifies whether the game should automatically save when the user presses the Home button. Default value is true.

Game.AutoSaveSlot

iOS only. This property specifies the save game slot used for automatic save. Default value is 999.
Note that you are responsible for providing the user interface for resuming the game from autosave.

Game.ShowStatusLine()

iOS only. Displays the top status line on iPhone/iPad.

Game.HideStatusLine()

iOS only. Hides the top status line on iPhone/iPad.

 
wmelite/scripting.1306077458.txt.gz · Last modified: 2011/05/22 17:17 by Mnemonic
Recent changes RSS feed Creative Commons License Driven by DokuWiki