Difference between revisions of "Ads:setAlignment"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2014.01<br/>
'''<translate>Available since</translate>:''' Gideros 2014.01<br/>
+
'''Class:''' [[Ads]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Ads|Ads]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Sets alignment of the ad
+
Sets alignment of the ad.
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"</translate>
 
 
<source lang="lua">
 
<source lang="lua">
Ads:setAlignment(horizontal,vertical)
+
Ads:setAlignment(horizontal,vertical)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
First value is for the horizontal alignment and can have values as "left", "center", "right"
'''horizontal''': (strong) <translate>horizontal alignment</translate> <br/>
+
 
'''vertical''': (string) <translate>vertical alignment</translate> <br/>
+
Second value is for the vertical alignment and can have values as "top", "center", "bottom"
 +
 
 +
=== Parameters ===
 +
'''horizontal''': (string) horizontal alignment<br/>
 +
'''vertical''': (string) vertical alignment<br/>
  
 
{{Ads}}
 
{{Ads}}

Revision as of 21:01, 16 April 2023

Available since: Gideros 2014.01
Class: Ads

Description

Sets alignment of the ad.

Ads:setAlignment(horizontal,vertical)

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