CTNTVirtualPad.new

From GiderosMobile
Revision as of 08:01, 3 December 2020 by MoKaLux (talk | contribs) (done? correct?)

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