selfdefined constants don't work in TextOut-Objects when ...

Report any Hollywood bugs here
Post Reply
nexus
Posts: 133
Joined: Sun Mar 07, 2010 11:54 am

selfdefined constants don't work in TextOut-Objects when ...

Post by nexus »

... a hollywood script is compiled to a binary (tested with AOS3 and AOS4).

Const #MYCOLOR = $003388

Text(#CENTER,#CENTER,"[color=#MYCOLOR]Some coloured text[/color]")

Executing this line in a hollywood script (.hws), it works fine. Compiling it to a binary, you get an error message about "unknown constant" or something like that.

Predefined constants like #RED also work fine.

Thanks,
nexus
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: selfdefined constants don't work in TextOut-Objects when ...

Post by airsoftsoftwair »

Yes, that's a bug. It's already fixed though in my current builds because Allanon reported this bug earlier but in a different context. User-constants also didn't work when using @INCLUDE with applets. But it's the same bug (user constants were not exported correctly to applets/executables).
Post Reply