Difference between revisions of "Application:enableDrawInfo"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2022.3<br/> '''Class:''' Application<br/> === Description === Show or hide Gideros info layer in the given color. <br /> <sour...")
 
m (Text replacement - "</source" to "</syntaxhighlight")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
'''Available since:''' Gideros 2022.3<br/>
 
'''Available since:''' Gideros 2022.3<br/>
'''Class:''' [[Application|Application]]<br/>
+
'''Class:''' [[Application]]<br/>
  
 
=== Description ===
 
=== Description ===
Show or hide Gideros info layer in the given color.
+
Shows or hides Gideros info layer in the given color.
<br />
+
<syntaxhighlight lang="lua">
 +
application:enableDrawInfo(color)
 +
</syntaxhighlight>
  
<source lang="lua">
+
=== Parameters ===
application:enableDrawInfo(color)
+
'''color''': (vector) the color to use when drawing info, or '''nil''' to disable<br/>
</source>
 
  
=== <translate>Parameters</translate> ===
+
=== Example ===
'''color''': (vector) The color to use when drawing info, or '''nil''' to disable<br/>
+
<syntaxhighlight lang="lua">
 +
application:enableDrawInfo(vector(1, 1, 0, 1)) -- yellow draw info
 +
</syntaxhighlight>
  
 
{{Application}}
 
{{Application}}

Latest revision as of 18:22, 12 July 2023

Available since: Gideros 2022.3
Class: Application

Description

Shows or hides Gideros info layer in the given color.

application:enableDrawInfo(color)

Parameters

color: (vector) the color to use when drawing info, or nil to disable

Example

application:enableDrawInfo(vector(1, 1, 0, 1)) -- yellow draw info