CTNTVirtualPad:setDefaultButtonSprites

From GiderosMobile
Revision as of 14:21, 3 December 2020 by MoKaLux (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.4
Class: VirtualPad

Description

Sets all 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