[09 May 2011] Bug in SetLayerStyle (Hollywood 4.8)
Posted: Sat Jun 13, 2020 5:32 pm
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.
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()