... 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
selfdefined constants don't work in TextOut-Objects when ...
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: selfdefined constants don't work in TextOut-Objects when ...
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).