SetWindowTitle

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 16:53, 12 March 2013 by AFRLme (talk)

Command History

Available since v3.8


Allows you to set a custom title in the game application title bar! (window mode only)


Syntax:

setWindowTitle("title")


Example 1: basic set window title command!

setWindowTitle("my new game title")

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

-- let's get the current users os language & store it in a variable!
sysLang = getProperty("system_language")

-- let's set the window title based on users language!
if sysLang == "English" then
 setWindowTitle("my new game in english")
elseif sysLang == "German" then
 setWindowTitle("mein neues spiel auf deutsch")
end


Arguments

title: "string"
This should include the text you want to be displayed in the application title bar! (window mode)


Flags

none


Return

none