forked from Hobadee/grandMA2_LUA_ldoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gma.show.property.lua
52 lines (45 loc) · 1.62 KB
/
gma.show.property.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---GMA LUA functions to get and adjust object properties
--@module gma.show.property
---Returns the number of properties associated with this handle
--
--@tparam number handle Handle as given by @{gma.show.getobj.handle}
--@treturn number Number of properties attached to handle object
function gma.show.property.amount(handle)
end
---Returns the name of the object property at a given index (by ID) for said handle
--
--@tparam number handle @{gma.show.getobj.handle}
--@tparam number index Property index by ID
--@treturn string The object property name.
function gma.show.property.name(handle,index)
end
---Returns the object property at a given index (by ID) for said handle
--
--@tparam number handle @{gma.show.getobj.handle}
--@tparam number index Property index by ID
--@treturn string The object property.
function gma.show.property.get(handle,index)
end
---Returns the object property at a given index (by name) for said handle
--
--@tparam number handle @{gma.show.getobj.handle}
--@tparam string property_name ???
--@treturn string The object property.
function gma.show.property.get(handle,property_name)
end
---Sets an object property at a given index (by ID) for said handle
--
--@tparam number handle @{gma.show.getobj.handle}
--@tparam number index ???
--@tparam string value ???
--@treturn bool success ???
function gma.show.property.set(handle,index,value)
end
---Sets an object property at a given index (by name) for said handle
--
--@tparam number handle @{gma.show.getobj.handle}
--@tparam string property_name ???
--@tparam string value ???
--@treturn bool success ???
function gma.show.property.set(handle,property_name,value)
end