Difference between revisions of "CTNTVirtualPad:setTextures"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(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:setTextures(padComponent, textureA, textureB)
 
CTNTVirtualPad:setTextures(padComponent, textureA, textureB)
</source>
+
</syntaxhighlight>
  
  

Latest revision as of 22:23, 24 January 2026

Available since: Gideros 2019.4
Class: TntVirtualPad

Description

Sets the VPAD components textures (replaces default sprites graphics for selected component).

CTNTVirtualPad:setTextures(padComponent, textureA, textureB)


padComponent possible values:

  • PAD.COMPO_LEFTPAD
  • PAD.COMPO_RIGHTPAD
  • PAD.COMPO_BUTTON1
  • PAD.COMPO_BUTTON2
  • PAD.COMPO_BUTTON3
  • PAD.COMPO_BUTTON4
  • PAD.COMPO_BUTTON5
  • PAD.COMPO_BUTTON6

Parameters

padComponent: (number) the pad component to texture
textureA: (Texture) the new "unpressed" texture
textureB: (Texture) the new "pressed" texture