Application:enableDrawInfo: Difference between revisions

From GiderosMobile
m Text replacement - "</source" to "</syntaxhighlight"
No edit summary
 
Line 13: Line 13:
=== Example ===
=== Example ===
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
application:enableDrawInfo(vector(1, 1, 0, 1)) -- yellow draw info
--application:enableDrawInfo(0x00ff00) -- green draw info OR
--application:enableDrawInfo(vector(0, 1, 0)) -- green draw info OR
application:enableDrawInfo(ColorValue(0, 1, 0)) -- green draw info (Gideros 2024.11+)
</syntaxhighlight>
</syntaxhighlight>


{{Application}}
{{Application}}

Latest revision as of 20:20, 6 November 2024

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(0x00ff00) -- green draw info OR
--application:enableDrawInfo(vector(0, 1, 0)) -- green draw info OR
application:enableDrawInfo(ColorValue(0, 1, 0)) -- green draw info (Gideros 2024.11+)