Regular API function

simSetUIButtonColor

Description Sets the up-state, down-state and label colors of an OpenGl-based custom UI button
C synopsis simInt simSetUIButtonColor(simInt uiHandle,simInt buttonHandle,const simFloat* upStateColor,const simFloat* downStateColor,const simFloat* labelColor)
C parameters
uiHandle: OpenGl-based custom UI handle
buttonHandle: button handle
upStateColor: color of the button when up (red, green and blue values, 0=minimum intensity, 1=maximum intensity). Can be NULL
downStateColor: color of the button when down (red, green and blue values, 0=minimum intensity, 1=maximum intensity). Can be NULL
labelColor: color of the button label (red, green and blue values, 0=minimum intensity, 1=maximum intensity). Can be NULL
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=simSetUIButtonColor(number uiHandle,number buttonHandle,table_3 upStateColor,table_3 downStateColor,table_3 labelColor)
Lua parameters
uiHandle: Same as C-function
buttonHandle: Same as C-function
upStateColor: Same as C-function. Can be nil or omitted
downStateColor: Same as C-function. Can be nil or omitted
labelColor: Same as C-function. Can be nil or omitted
Lua return values
Same as C-function

All regular API functions on one page