CTNTVirtualPad:setAlpha: Difference between revisions

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">..."
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2019.4<br/>
'''Available since:''' Gideros 2019.4<br/>
'''Class:''' [[VirtualPad]]<br/>
'''Class:''' [[TntVirtualPad]]<br/>


=== 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>
</syntaxhighlight>


=== Parameters ===
=== Parameters ===

Latest revision as of 21:21, 24 January 2026

Available since: Gideros 2019.4
Class: TntVirtualPad

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)