Difference between revisions of "SetWindowTitle"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 27: Line 27:
 
end
 
end
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[Category:Player Commands]]

Revision as of 14:57, 26 November 2013

setWindowTitle

Available since: v3.0
Sets the window title.

Lua Syntax:

setWindowTitle(WindowTitle)

Arguments

WindowTitle

"string" - Title bar name of display window.

Flags

Return Values

None.

Examples

Example 1: basic set window title command

setWindowTitle("my new game title")

Example 2: set window title based on current users system language

sysLang = getProperty("system_language")
if sysLang == "English" then
  setWindowTitle("my demogame")
elseif sysLang == "German" then
  setWindowTitle("mein Demospiel")
end