Difference between revisions of "CTNTVirtualPad:setDefaultButtonSprites"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets all the VPAD buttons to the same default sprites. SpriteA is f...")
 
 
(3 intermediate revisions by 2 users 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 all the VPAD buttons to the same default sprites.
+
Sets the VPAD buttons to the same default sprites.
  
SpriteA is for the “unpressed” button sprite while SpriteB is for the “pressed” button sprite.
+
SpriteA is for the “'''unpressed'''” button sprite while SpriteB is for the “'''pressed'''” button sprite.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
setDefaultButtonSprites(textureA, textureB)
 
setDefaultButtonSprites(textureA, textureB)
</source>
+
</syntaxhighlight>
  
 
  '''WARNING''': this is a '''function''' of the Virtual Pad plugin, '''you do not pass''' the object (CTNTVirtualPad:setDefaultButtonSprites(...))
 
  '''WARNING''': this is a '''function''' of the Virtual Pad plugin, '''you do not pass''' the object (CTNTVirtualPad:setDefaultButtonSprites(...))

Latest revision as of 22:22, 24 January 2026

Available since: Gideros 2019.4
Class: TntVirtualPad

Description

Sets the VPAD buttons to the same default sprites.

SpriteA is for the “unpressed” button sprite while SpriteB is for the “pressed” button sprite.

setDefaultButtonSprites(textureA, textureB)
WARNING: this is a function of the Virtual Pad plugin, you do not pass the object (CTNTVirtualPad:setDefaultButtonSprites(...))

Parameters

textureA: (TextureBase) the "unpressed" texture
textureB: (TextureBase) the "pressed" texture