Regular API function


Description Creates an array inside an OpenGl-based custom UI button. Use this to display big arrays instead of creating an array with individual buttons (slower and not memory efficient). The size of the array is the number of cells inside of the button horizontally and vertically. See also simDeleteUIButtonArray and simSetUIButtonArrayColor.
C synopsis simInt simCreateUIButtonArray(simInt uiHandle,simInt buttonHandle)
C parameters
uiHandle: handle of a valid OpenGl-based custom UI
buttonHandle: handle of a valid button in the specified OpenGl-based custom UI
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=simCreateUIButtonArray(number uiHandle,number buttonHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page