Unprecise error message in MakeButton

Report any Hollywood bugs here
Post Reply
Flinx
Posts: 364
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Unprecise error message in MakeButton

Post 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
User avatar
airsoftsoftwair
Posts: 5938
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Unprecise error message in MakeButton

Post by airsoftsoftwair »

Yup, looks like an error. Will be fixed!
Post Reply