Page 4 of 4

Re: Documentation problems

Posted: Sat Dec 01, 2018 3:46 pm
by airsoftsoftwair

Code: Select all

- Fix [Doc]: Rnd() and RndF() were both documented as being inclusive whereas they were exclusive in
  reality; for RndF() the documentation was wrong since Hollywood 1.5, for Rnd() only Hollywood 7.1's
  manual was wrong

Re: Documentation problems

Posted: Tue Oct 01, 2019 10:59 pm
by Clyde
The object that is passed to the event handler callback function which is called when creating a layer button contains a property called "layername", which is not documented in the MakeButton section of the documentation:

Code: Select all

Function _handleMouseClickEvents(msg)
    DebugPrint("msg.id", msg.id)
    DebugPrint("msg.layername", msg.layername) ; this is not documented
    ; ...
EndFunction

mouseEventTable = {OnMouseUp = handleMouseClickEvents, OnMouseDown = handleMouseClickEvents}

MakeButton(Nil, #LAYERBUTTON, layername, True, True, mouseEventTable)

Re: Documentation problems

Posted: Mon Oct 14, 2019 10:14 pm
by airsoftsoftwair
Good spot! Seems to have been added in Hollywood 4.5 but never documented... fixed now.

Code: Select all

- Fix [Doc]: MakeButton() didn't mention that buttons of type #LAYERBUTTON would receive two additional
  message parameters named "Layer" and "LayerName" since Hollywood 4.5