Difference between revisions of "Global Command: getWindowBrightness"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 41: Line 41:
 
{| class="tbl-ds"
 
{| class="tbl-ds"
 
|-
 
|-
|<span class="bold">Relevant Pages</span>: [[SetWindowBrightness_(CMS)|setVolume]]
+
|<span class="bold">Relevant Pages</span>: [[SetWindowBrightness_(CMS)|setWindowBrightness]]
 
|}
 
|}

Revision as of 16:11, 23 March 2014

Function History

Available since v3.8


Returns the integer value of global window brightness. (min = 0, max = 100)


Syntax:

getWindowBrightness()


Example:

-- check if brightness value is less than 50%?
if getWindowBrightness() < 50 then
 -- do something...
end


Arguments
none


Flags
none


Return
brightness
The integer value of window brightness.


Relevant Pages: setWindowBrightness