ARGB() and Text Alignment Color Change

Report any Hollywood bugs here
Post Reply
PEB
Posts: 567
Joined: Sun Feb 21, 2010 1:28 am

ARGB() and Text Alignment Color Change

Post by PEB »

The following code shows a couple of bugs:

Code: Select all

EnableLayers()
TextOut(#CENTER, #CENTER, "Test", {Name="TextLayer", AnchorX=0.5, AnchorY=0.5})
SetLayerStyle("TextLayer", {Font=#SANS})
WaitLeftMouse()
SetLayerStyle("TextLayer", {FontSize=76})
WaitLeftMouse()
SetLayerStyle("TextLayer", {Color=RGB(0, 0, 255)})
WaitLeftMouse()
SetLayerStyle("TextLayer", {Color=ARGB(128, RGB(0, 0, 255))}); This line doesn't affect the transparency.
WaitLeftMouse()
SetLayerStyle("TextLayer", {Align=#CENTER}); This line causes it to revert to the original color.
WaitLeftMouse()
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ARGB() and Text Alignment Color Change

Post by airsoftsoftwair »

Confirmed. Will be fixed.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ARGB() and Text Alignment Color Change

Post by airsoftsoftwair »

Code: Select all

- Fix: Changing certain layer attributes after changing the color of a vector or text layer often reset the color to the original layer color
- Fix: Changing the color to a color with alpha transparency didn't work for vector and text layers under certain circumstances
Post Reply