Difference between revisions of "CTNTVirtualPad:setAlpha"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
CTNTVirtualPad:setAlpha(alphaOn, alphaOff)
 
CTNTVirtualPad:setAlpha(alphaOn, alphaOff)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 14:26, 13 July 2023

Available since: Gideros 2019.4
Class: VirtualPad

Description

Sets the alpha channel for all VPAD components.

CTNTVirtualPad:setAlpha(alphaOn, alphaOff)

Parameters

alphaOn: (number) max alpha value when pad is visible on screen (value between 0 and 1)
alphaOff: (number) min alpha value when pad is in “ghost” mode (value between 0 and 1)