Documentation problems

Report any Hollywood bugs here
User avatar
airsoftsoftwair
Posts: 3159
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Documentation problems

Post by airsoftsoftwair » Sat Dec 01, 2018 3:46 pm

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

User avatar
Clyde
Posts: 195
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Re: Documentation problems

Post by Clyde » Tue Oct 01, 2019 10:59 pm

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)
Currently using: Hollywood 8 with Windows IDE

User avatar
airsoftsoftwair
Posts: 3159
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Documentation problems

Post by airsoftsoftwair » Mon Oct 14, 2019 10:14 pm

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

Post Reply