typesΒΆ

Functions:

nil types.angle ( ) Creates a float type for angles in degrees
nil types.bool ( ) The boolean type. This is actually not a function, and should simply be used as is. Ex: types.bool
type result types.combo ( table desc ) Creates a enumerated type which also accepts strings. Ex: types.combo {"ItemA",{"ItemB",12},"ItemC"}
nil types.data ( ) This type is for blind data, stored as large Lua string.
type result types.directory ( table desc , string title , string directory ) Creates a directory type, allowing to choose a directory. Ex: types.directory {title="Open a directory",directory="c:/"}
type result types.enum ( table desc ) Creates a enumerated type. Ex: types.enum {"ItemA",{"ItemB",12},"ItemC"}
type result types.filename ( table desc , string mode , string title , string filter , string directory , string extension , string category ) Creates a filename type, allowing to choose a file. Ex: types.filename {mode="open",title="Open a file",filter="All files (*.*)|*.*",directory="c:/",extension="*.png",category="maps"}
type result types.float ( table desc ) Creates a floating point number type. Ex: types.float {min=1,max=1000,step=10,slidermin=1,slidermax=100}
type result types.int ( table desc ) Creates a integer number type. Ex: types.int {min=1,max=1000,step=10,slidermin=1,slidermax=100}
type result types.linker ( string|table mode , types.bool invert ) Create a linker type
type result types.luascript ( ) Create a lua script text type
nil types.primitives ( ) The primitive handle array type. This is actually not a function, and should simply be used as is. Ex: types.primitives
nil types.string ( ) The string type. This is actually not a function, and should simply be used as is. Ex: types.string
nil types.transform ( ) The transform type, describes a set of matrices associated to sub frame times. This is actually not a function, and should simply be used as is. Ex: types.transform types.transform = LUITypeCreate (nil, GATypeTransform) function types.transform:tostring () return "types.transform" end