Difference between revisions of "SetWindowTitle"
From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 1: | Line 1: | ||
==setWindowTitle== | ==setWindowTitle== | ||
− | <div class="command-min-version-info">Available since: <span class="command-min-version"> | + | <div class="command-min-version-info">Available since: <span class="command-min-version">v4.0</span></div> |
<div class="command-doc">Sets the window title.</div> | <div class="command-doc">Sets the window title.</div> | ||
Line 27: | Line 27: | ||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− |
Revision as of 21:28, 30 September 2014
setWindowTitle
Available since: v4.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