Difference between revisions of "CTNTVirtualPad.new"

From GiderosMobile
(done? correct?)
m (done? correct?)
Line 17: Line 17:
 
'''layerIndex''': (number) layer value '''optional'''<br/>
 
'''layerIndex''': (number) layer value '''optional'''<br/>
 
'''vBorderSpace''': (number) vertical border space value '''optional'''<br/>
 
'''vBorderSpace''': (number) vertical border space value '''optional'''<br/>
'''restrict''': (number) restrict the TNT Virtual Pad to half the screen '''optional'''<br/>
+
'''restrict''': (number) restrict the TNT Virtual Pad to half the screen (default = TRUE) '''optional'''<br/>
  
 
{{VirtualPad}}
 
{{VirtualPad}}

Revision as of 09:03, 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 (default = TRUE) optional