Ads:getPosition: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
m Text replacement - "</source" to "</syntaxhighlight"
 
Line 7: Line 7:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
(number), (number) = Ads:getPosition()
(number), (number) = Ads:getPosition()
</source>
</syntaxhighlight>


=== Return values ===
=== Return values ===

Latest revision as of 16:21, 12 July 2023

Available since: Gideros 2011.6
Class: Ads

Description

Gets x and y position of the ad in Gideros logical dimensions, taking into consideration applied automatic scaling.

(number), (number) = Ads:getPosition()

Return values

Returns (number) x position of the ad
Returns (number) y position of the ad