Difference between revisions of "Global Command: setWindowTitle"
From The Official Visionaire Studio: Adventure Game Engine Wiki
m (EK moved page SetWindowTitle (CMS) to Global Command: setWindowTitle) |
|
(No difference)
|
Latest revision as of 23:29, 15 May 2023
Set a custom title in the game application title bar. Only applicable, if the game is running in window mode.
Syntax
setWindowTitle(title)
Parameters
Parameter | Type | Description |
---|---|---|
title | string | The new title for the game window. |
Return values
none
Examples
Example 1: Set the window title based on the user's operating system language.
sysLang = getProperty("system_language")
if sysLang == "German" then
setWindowTitle("Mein neuer Titel auf Deutsch")
else
setWindowTitle("My new title in English")
end