Page 1 of 1

Unprecise error message in MakeButton

Posted: Fri Mar 27, 2026 6:20 pm
by Flinx
Errors in MakeButton's callback function table return -1 as the argument number.
Although the source of the message is relatively easy to find, I don't think this is ideal.

Code: Select all

EnableLayers()
Box(0, 0, 50, 50, {Name="x"})
MakeButton(1, #LAYERBUTTON, "x", {OnMouseOver=Function() EndFunction, OnMouseOut=1})
"Function expected in argument -1!"

Ralf

Re: Unprecise error message in MakeButton

Posted: Sat Mar 28, 2026 5:56 pm
by airsoftsoftwair
Yup, looks like an error. Will be fixed!