Page 1 of 1

ARGB() and Text Alignment Color Change

Posted: Sat Apr 03, 2021 12:32 am
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()

Re: ARGB() and Text Alignment Color Change

Posted: Sat Apr 03, 2021 6:33 pm
by airsoftsoftwair
Confirmed. Will be fixed.

Re: ARGB() and Text Alignment Color Change

Posted: Sat Oct 30, 2021 11:53 pm
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