Regular API function


Description Creates a button inside of an OpenGl-based custom UI
C synopsis simInt simCreateUIButton(simInt uiHandle,const simInt* position,const simInt* size,simInt buttonProperty)
C parameters
uiHandle: handle to a valid OpenGl-based custom UI
position: position of the button (in terms of cells (x and y))
size: size of the button (in terms of cells (x and y))
buttonProperty: button property. Combination of button property values.
C return value
handle of the button, or -1 if operation was not successful
Lua synopsis number buttonHandle=simCreateUIButton(number uiHandle,table_2 position,table_2 size,number buttonProperty)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page