Difference between revisions of "CTNTVirtualPad:setTextures"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the VPAD components textures (replaces default sprites graphics...") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Sets the VPAD components textures (replaces default sprites graphics for selected component). | Sets the VPAD components textures (replaces default sprites graphics for selected component). | ||
− | < | + | <syntaxhighlight lang="lua"> |
CTNTVirtualPad:setTextures(padComponent, textureA, textureB) | CTNTVirtualPad:setTextures(padComponent, textureA, textureB) | ||
</source> | </source> |
Revision as of 14:26, 13 July 2023
Available since: Gideros 2019.4
Class: VirtualPad
Description
Sets the VPAD components textures (replaces default sprites graphics for selected component). <syntaxhighlight lang="lua"> CTNTVirtualPad:setTextures(padComponent, textureA, textureB) </source>
padComponent possible values:
- PAD.COMPO_LEFTPAD
- PAD.COMPO_RIGHTPAD
- PAD.COMPO_BUTTON1
- PAD.COMPO_BUTTON2
- PAD.COMPO_BUTTON3
- PAD.COMPO_BUTTON4
- PAD.COMPO_BUTTON5
- PAD.COMPO_BUTTON6
Parameters
padComponent: (number) the pad component to texture
textureA: (Texture) the new "unpressed" texture
textureB: (Texture) the new "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