Difference between revisions of "CTNTVirtualPad:setDefaultButtonSprites"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
  
 
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 15:26, 13 July 2023

Available since: Gideros 2019.4
Class: VirtualPad

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