CTNTVirtualPad:setDefaultButtonSprites

From GiderosMobile
Revision as of 14:26, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

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. <syntaxhighlight lang="lua"> setDefaultButtonSprites(textureA, textureB) </source>

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