Difference between revisions of "CTNTVirtualPad:setDefaultJoySprites"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the VPAD joysticks default sprites. SpriteA is for the joystic...")
 
 
(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 ===
Line 7: Line 7:
  
 
SpriteA is for the joystick "'''stick'''" sprite while SpriteB is for the joystick "'''base'''" sprite.
 
SpriteA is for the joystick "'''stick'''" sprite while SpriteB is for the joystick "'''base'''" sprite.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
setDefaultJoySprites(textureA, textureB)
 
setDefaultJoySprites(textureA, textureB)
</source>
+
</syntaxhighlight>
  
 
  '''WARNING''': this is a '''function''' of the Virtual Pad plugin, '''you do not pass''' the object (CTNTVirtualPad:setDefaultJoySprites(...))
 
  '''WARNING''': this is a '''function''' of the Virtual Pad plugin, '''you do not pass''' the object (CTNTVirtualPad:setDefaultJoySprites(...))

Latest revision as of 22:22, 24 January 2026

Available since: Gideros 2019.4
Class: TntVirtualPad

Description

Sets the VPAD joysticks default sprites.

SpriteA is for the joystick "stick" sprite while SpriteB is for the joystick "base" sprite.

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

Parameters

textureA: (TextureBase) the joystick "stick" texture
textureB: (TextureBase) the joystick "base" texture