CTNTVirtualPad:setTextures

From GiderosMobile
Revision as of 13:31, 3 December 2020 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the VPAD components textures (replaces default sprites graphics...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.4
Class: VirtualPad

Description

Sets the VPAD components textures (replaces default sprites graphics for selected component).

CTNTVirtualPad:setTextures(padComponent, textureA, textureB)


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