LM.GUI.ImageButton(path, tooltip, checkbox, msg, recolor)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
path char A path to a .png image inside the ScriptResources folder. Don't use the .png extension though. For example, "ScriptResources/my_script_name/image1". < 9.5
tooltip char Tooltip that appears when on mouseover. < 9.5
checkbox bool Set this to true if you want your button to act as a checkbox. < 9.5
msg int32 The message the button sends. 0 < 9.5
recolor bool Should the image be recolored when user changes the interface color scheme in the program settings. This argument was added in version 12. false 12.0

Return value:

The button can act like a regular button or can have "on/off" state to act like a checkbox. The image must be placed into the ScriptResources folder.
<< Back to LM.GUI