Difference between revisions of "SetWindowTitle"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 1: Line 1:
<div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%">
+
<div class="toccolours mw-collapsible mw-collapsed tbl-ds">
<b>Command History</b>
+
<span class="bold">Command History</span>
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
<div style="background:#ebebeb" width="100%">Available since <span style="color:orange">v3.8</span></div>
+
<div class="alt-bg">Available since v3.8</div>
 
</div></div>
 
</div></div>
  
Line 35: Line 35:
  
  
<b><u>Arguments</u></b>
+
<span class="bold underline">Arguments</span>
  
<b>title</b>: "string" <br/>
+
<span class="bold">title</span>: "string" <br/>
 
This should include the text you want to be displayed in the application title bar! (window mode)
 
This should include the text you want to be displayed in the application title bar! (window mode)
  
  
<b><u>Flags</u></b>
+
<span class="bold underline">Flags</span>
  
 
none
 
none
  
  
<b><u>Return</u></b>
+
<span class="bold underline">Return</span>
  
 
none
 
none
 
{{i18n|SetWindowTitle}}
 
{{i18n|SetWindowTitle}}

Revision as of 18:04, 3 April 2013

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