Difference between revisions of "SetWindowTitle"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Redirected page to Global Command: setWindowTitle)
 
Line 1: Line 1:
==setWindowTitle==
+
#REDIRECT [[Global Command: setWindowTitle]]
 
 
<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>
 
 
 
Lua Syntax:
 
<pre class="command-syntax">setWindowTitle(WindowTitle)</pre>
 
===Arguments===
 
====WindowTitle====
 
:'''"string"''' - Title bar name of display window.
 
===Flags===
 
===Return Values===
 
None.
 
===Examples===
 
Example 1: basic set window title command
 
<syntaxhighlight>
 
setWindowTitle("my new game title")
 
</syntaxhighlight>
 
Example 2: set window title based on current users system language
 
<syntaxhighlight>
 
sysLang = getProperty("system_language")
 
if sysLang == "English" then
 
  setWindowTitle("my demogame")
 
elseif sysLang == "German" then
 
  setWindowTitle("mein Demospiel")
 
end
 
</syntaxhighlight>
 

Latest revision as of 12:32, 19 May 2023