Application:enableDrawInfo: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 4: Line 4:
=== Description ===
=== Description ===
Shows or hides Gideros info layer in the given color.
Shows or hides Gideros info layer in the given color.
<source lang="lua">
<syntaxhighlight lang="lua">
application:enableDrawInfo(color)
application:enableDrawInfo(color)
</source>
</source>
Line 12: Line 12:


=== Example ===
=== Example ===
<source lang="lua">
<syntaxhighlight lang="lua">
application:enableDrawInfo(vector(1, 1, 0, 1)) -- yellow draw info
application:enableDrawInfo(vector(1, 1, 0, 1)) -- yellow draw info
</source>
</source>


{{Application}}
{{Application}}

Revision as of 15:46, 12 July 2023

Available since: Gideros 2022.3
Class: Application

Description

Shows or hides Gideros info layer in the given color. <syntaxhighlight lang="lua"> application:enableDrawInfo(color) </source>

Parameters

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

Example

<syntaxhighlight lang="lua"> application:enableDrawInfo(vector(1, 1, 0, 1)) -- yellow draw info </source>