CTNTVirtualPad:setAlpha: Difference between revisions

From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight"
No edit summary
 
(One intermediate revision 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 ===
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 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)