Difference between revisions of "Sprite:isVisible"

From GiderosMobile
(removed language stuff)
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 />
 
into consideration while calculating bounds.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
(bool) = Sprite:isVisible([checkParents])
+
(bool) = Sprite:isVisible([checkParent])
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''checkParents''': (bool) <translate>flag to check parents visibility '''(default = false)'''</translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''checkParent''': (bool) flag to check parent visibility '''(optional: default = false)'''<br/>
'''<translate>Returns</translate>''' (bool) <translate>A value of ''true'' if sprite is visible; ''false'' otherwise.</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (bool) a value of ''true'' if sprite is visible, ''false'' otherwise<br/>
  
 
{{Sprite}}
 
{{Sprite}}

Revision as of 14:46, 22 September 2021

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