Difference between revisions of "CTNTVirtualPad:setAlpha"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the alpha channel for all VPAD components. <source lang="lua">...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the alpha channel for all VPAD components.
 
Sets the alpha channel for all VPAD components.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
CTNTVirtualPad:setAlpha(alphaOn, alphaOff)
 
CTNTVirtualPad:setAlpha(alphaOn, alphaOff)
 
</source>
 
</source>

Revision as of 15:26, 13 July 2023

Available since: Gideros 2019.4
Class: VirtualPad

Description

Sets the alpha channel for all VPAD components. <syntaxhighlight lang="lua"> CTNTVirtualPad:setAlpha(alphaOn, alphaOff) </source>

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)