Difference between revisions of "Sprite:isVisible"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Sprite]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Sprite|Sprite]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Returns whether or not the sprite is visible. Child sprites that are not visible are also taken into consideration while calculating bounds.
Returns whether or not the sprite is visible. Child sprites that are not visible are also taken<br />
+
<syntaxhighlight lang="lua">
into consideration while calculating bounds.<br />
+
(bool) = Sprite:isVisible([checkParent])
<br /></translate>
+
</syntaxhighlight>
<source lang="lua">
+
 
(bool) = Sprite:isVisible([checkParents])
+
=== Parameters ===
</source>
+
'''checkParent''': (bool) flag to check parent visibility '''(optional: default = false)'''<br/>
=== <translate>Parameters</translate> ===
+
 
'''checkParents''': (bool) <translate>flag to check parents visibility '''(default = false)'''</translate> <br/>
+
=== Return values ===
=== <translate>Return values</translate> ===
+
'''Returns''' (bool) a value of ''true'' if sprite is visible, ''false'' otherwise<br/>
'''<translate>Returns</translate>''' (bool) <translate>A value of ''true'' if sprite is visible; ''false'' otherwise.</translate><br/>
 
  
 
{{Sprite}}
 
{{Sprite}}

Latest revision as of 15:33, 13 July 2023

Available since: Gideros 2011.6
Class: Sprite

Description

Returns whether or not the sprite is visible. Child sprites that are not visible are also taken into consideration while calculating bounds.

(bool) = Sprite:isVisible([checkParent])

Parameters

checkParent: (bool) flag to check parent visibility (optional: default = false)

Return values

Returns (bool) a value of true if sprite is visible, false otherwise