Page 1 of 1

[09 May 2011] Bug in SetLayerStyle (Hollywood 4.8)

Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 09 May 2011 18:43:13 -0000

Here is my first bug report for Hollywood 4.8; it might also show up in previous versions, but I'm not sure.

Notice how the following code changes the name of the second Layer from "Right" to "Left" (and the name "Right" is lost completely). The problem comes from combining a change of the layer's brush ID with a change of Z position in the same SetLayerStyle(). If these are done separately, the code works correctly.

Code: Select all

EnableLayers()
LoadBrush(1, "Test.png", {LoadAlpha=True})
LoadBrush(2, "Test.png", {LoadAlpha=True})
DisplayBrush(1, #LEFT, #CENTER, {Name="Left"})
DisplayBrush(1, #RIGHT, #CENTER, {Name="Right"})
WaitLeftMouse()
SetLayerStyle("Left", {Z=0, ID=2})
;SetLayerStyle("Left", {Z=0})
;SetLayerStyle("Left", {ID=2})
SetLayerStyle("Left", {TranslateY=-10})
HideLayer("Right")
WaitLeftMouse()

[09 May 2011] Re: Bug in SetLayerStyle (Hollywood 4.8)

Posted: Sat Jun 13, 2020 5:32 pm
by Juan Carlos
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 9 May 2011 22:28:36 +0100 (BST)

Normal the hurries are never good!

[19 May 2011] Re: Bug in SetLayerStyle (Hollywood 4.8)

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 19 May 2011 00:01:44 +0200
Here is my first bug report for Hollywood 4.8; it might also show up in previous versions, but I'm not sure.

Notice how the following code changes the name of the second Layer from "Right" to "Left" (and the name "Right" is lost completely). The problem comes from combining a change of the layer's brush ID with a change of Z position in the same SetLayerStyle(). If these are done separately, the code works correctly.
Yup, good spot! Will be fixed :)

The bug is also in previous versions, not only 4.8.