Difference between revisions of "Application:enableDrawInfo"
From GiderosMobile
(3 intermediate revisions by 2 users not shown) | |||
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. | ||
− | < | + | <syntaxhighlight lang="lua"> |
application:enableDrawInfo(color) | application:enableDrawInfo(color) | ||
− | </ | + | </syntaxhighlight> |
=== Parameters === | === Parameters === | ||
'''color''': (vector) the color to use when drawing info, or '''nil''' to disable<br/> | '''color''': (vector) the color to use when drawing info, or '''nil''' to disable<br/> | ||
+ | |||
+ | === Example === | ||
+ | <syntaxhighlight lang="lua"> | ||
+ | --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> | ||
{{Application}} | {{Application}} |
Latest revision as of 21: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+)
- Application:applyStyles
- Application:canOpenUrl
- Application:checkPermission
- Application:configureFrustum
- Application:enableDrawInfo
- Application:enableOnDemandDraw
- Application:exit
- Application:get
- Application:getApiVersion
- Application:getAppId
- Application:getBackgroundColor
- Application:getClipboard
- Application:getContentHeight
- Application:getContentWidth
- Application:getDeviceHeight
- Application:getDeviceInfo
- Application:getDeviceName
- Application:getDeviceOrientation
- Application:getDeviceSafeArea
- Application:getDeviceWidth
- Application:getFps
- Application:getKeyboardModifiers
- Application:getLanguage
- Application:getLocale
- Application:getLogicalBounds
- Application:getLogicalHeight
- Application:getLogicalScaleX
- Application:getLogicalScaleY
- Application:getLogicalTranslateX
- Application:getLogicalTranslateY
- Application:getLogicalWidth
- Application:getNativePath
- Application:getOrientation
- Application:getProjectProperties
- Application:getScaleMode
- Application:getScreenDensity
- Application:getTextureMemoryUsage
- Application:isPlayerMode
- Application:openUrl
- Application:requestPermissions
- Application:set
- Application:setBackgroundColor
- Application:setClipboard
- Application:setEventMerging
- Application:setFps
- Application:setFullScreen
- Application:setKeepAwake
- Application:setKeyboardVisibility
- Application:setLogicalDimensions
- Application:setOrientation
- Application:setScaleMode
- Application:setTextInput
- Application:setWindowSize
- Application:vibrate