|
|
(2 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
− | ==setWindowTitle==
| + | #REDIRECT [[Global Command: setWindowTitle]] |
− | | |
− | <div class="command-min-version-info">Available since: <span class="command-min-version">v3.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>
| |