Difference between revisions of "CTNTVirtualPad:setColor"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Sets the VPAD components colors. <source lang="lua"> CTNTVirtualPad:...") |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2019.4<br/> | '''Available since:''' Gideros 2019.4<br/> | ||
| − | '''Class:''' [[ | + | '''Class:''' [[TntVirtualPad]]<br/> |
=== Description === | === Description === | ||
Sets the VPAD components colors. | Sets the VPAD components colors. | ||
| − | < | + | <syntaxhighlight lang="lua"> |
CTNTVirtualPad:setColor(padComponent, r, g, b) | CTNTVirtualPad:setColor(padComponent, r, g, b) | ||
| − | </ | + | </syntaxhighlight> |
'''padComponent''' possible values: | '''padComponent''' possible values: | ||
Latest revision as of 22:20, 24 January 2026
Available since: Gideros 2019.4
Class: TntVirtualPad
Description
Sets the VPAD components colors.
CTNTVirtualPad:setColor(padComponent, r, g, b)
padComponent possible values:
- PAD.COMPO_BUTTON1
- PAD.COMPO_BUTTON2
- PAD.COMPO_BUTTON3
- PAD.COMPO_BUTTON4
- PAD.COMPO_BUTTON5
- PAD.COMPO_BUTTON6
- PAD.COMPO_LEFTPAD for left joystick
- PAD.COMPO_RIGHTPAD for right joystick
Parameters
padComponent: (number) the pad component to set the new color to
r: (number) red channel value (0 to 255)
g: (number) green channel value (0 to 255)
b: (number) blue channel value (0 to 255)
- 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