Difference between revisions of "Ads:setAlignment"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
Line 7: Line 7:
 
<source lang="lua">
 
<source lang="lua">
 
Ads:setAlignment(horizontal,vertical)
 
Ads:setAlignment(horizontal,vertical)
</source>
+
</syntaxhighlight>
 
First value is for the horizontal alignment and can have values as "left", "center", "right"
 
First value is for the horizontal alignment and can have values as "left", "center", "right"
  

Revision as of 17:53, 12 July 2023

Available since: Gideros 2014.01
Class: Ads

Description

Sets alignment of the ad. <source lang="lua"> Ads:setAlignment(horizontal,vertical) </syntaxhighlight> First value is for the horizontal alignment and can have values as "left", "center", "right"

Second value is for the vertical alignment and can have values as "top", "center", "bottom"

Parameters

horizontal: (string) horizontal alignment
vertical: (string) vertical alignment