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...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
− | Sets | + | Sets the VPAD buttons to the same default sprites. |
− | SpriteA is for the | + | SpriteA is for the “'''unpressed'''” button sprite while SpriteB is for the “'''pressed'''” button sprite. |
− | < | + | <syntaxhighlight lang="lua"> |
setDefaultButtonSprites(textureA, textureB) | setDefaultButtonSprites(textureA, textureB) | ||
− | </ | + | </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 14: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
- CTNTVirtualPad:free
- CTNTVirtualPad:setAlpha
- CTNTVirtualPad:setColor
- CTNTVirtualPad:setDefaultButtonSprites
- CTNTVirtualPad:setDefaultJoySprites
- CTNTVirtualPad:setHideDelay
- CTNTVirtualPad:setHideMode
- CTNTVirtualPad:setJoyAsAnalog
- CTNTVirtualPad:setJoyStyle
- CTNTVirtualPad:setMaxRadius
- CTNTVirtualPad:setPosition
- CTNTVirtualPad:setScale
- CTNTVirtualPad:setTextures
- CTNTVirtualPad:start
- CTNTVirtualPad:stop