[21 Aug 2009] Bug in SetLayerStyle()
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 21 Aug 2009 18:14:21 -0000
There seems to be a bug in SetLayerStyle(). The following code works correctly:
However, if SetLayerStyle() includes new coordinates, the layer will always be hidden. Try replacing the last line from the code above with this:
It also doesn't help if the "Hidden" style element is used in the same call:
But if an additional SetLayerStyle() is used with "Hidden" set to "False", then the layer is shown. So the following code works:
(These results were taken from the OS4 version of Hollywood 4.0)
There seems to be a bug in SetLayerStyle(). The following code works correctly:
Code: Select all
EnableLayers()
LoadBrush(1, "Test.png")
DisplayBrush(1, #CENTER, #CENTER)
WaitLeftMouse()
SetLayerStyle(1, {Transparency=128})
Code: Select all
SetLayerStyle(1, {x=5, y=5, Transparency=128})
Code: Select all
SetLayerStyle(1, {x=5, y=5, Transparency=128, Hidden=FALSE})
Code: Select all
EnableLayers()
LoadBrush(1, "Test.png")
DisplayBrush(1, #CENTER, #CENTER)
WaitLeftMouse()
SetLayerStyle(1, {x=5, y=5, Transparency=128})
SetLayerStyle(1, {Hidden=FALSE})