Difference between revisions of "CTNTVirtualPad.new"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2019.4<br/> '''Class:''' VirtualPad<br/> === Description === Creates a new TNT Virtual Pad object. <source lang="lua"> CTNTVirtua...")
 
(done? correct?)
Line 12: Line 12:
 
'''parent''': (Sprite) the parent of the TNT Virtual Pad<br/>
 
'''parent''': (Sprite) the parent of the TNT Virtual Pad<br/>
 
'''texturePack''': (TextureBase) the texture pack of the TNT Virtual Pad<br/>
 
'''texturePack''': (TextureBase) the texture pack of the TNT Virtual Pad<br/>
'''padSticks''': (number) width of pixel '''TO DO...AND BELOW AS WELL :-)'''<br/>
+
'''padSticks''': (number) number of pad sticks<br/>
'''padButtons''': (number) height of pixel '''optional'''<br/>
+
'''padButtons''': (number) number of buttons (0-6)<br/>
'''borderSpace''': (number) hex value representing color '''optional'''<br/>
+
'''borderSpace''': (number) border space value<br/>
'''layerIndex''': (number) alpha value from 0 to 1 '''optional'''<br/>
+
'''layerIndex''': (number) layer value '''optional'''<br/>
'''vBorderSpace''': (number) width of pixel '''optional'''<br/>
+
'''vBorderSpace''': (number) vertical border space value '''optional'''<br/>
'''restrict''': (number) height of pixel '''optional'''<br/>
+
'''restrict''': (number) restrict the TNT Virtual Pad to half the screen '''optional'''<br/>
  
 
{{VirtualPad}}
 
{{VirtualPad}}

Revision as of 08:01, 3 December 2020

Available since: Gideros 2019.4
Class: VirtualPad

Description

Creates a new TNT Virtual Pad object.

CTNTVirtualPad.new(parent, texturePack, padSticks, padButtons, borderSpace, layerIndex, vBorderSpace, restrict)

Parameters

parent: (Sprite) the parent of the TNT Virtual Pad
texturePack: (TextureBase) the texture pack of the TNT Virtual Pad
padSticks: (number) number of pad sticks
padButtons: (number) number of buttons (0-6)
borderSpace: (number) border space value
layerIndex: (number) layer value optional
vBorderSpace: (number) vertical border space value optional
restrict: (number) restrict the TNT Virtual Pad to half the screen optional