Screen.Dim and the line drawing functions can be used with for example "FF0000" as the color argument. This does not work with screen.DrawLineFrame specifically.
doing Color col = color(255, 255, 0, 0) then supplying col to Screen.DrawLineFrame however does work.
Screen.DrawLineFrame won't accept color string
Moderator: GZDoom Developers
Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
-
- Posts: 157
- Joined: Wed Jul 11, 2018 10:57 pm
Re: Screen.DrawLineFrame won't accept color string
What happens if you use "FFFF0000" as the argument? A lot of things in GZDoom ignore the alpha argument on colors so it's possible the alpha is getting actually used here.
Re: Screen.DrawLineFrame won't accept color string
"FFFF0000" results in nothing being drawn as well. Perhaps some casting error in the internals of DrawLineFrame?
-
- Posts: 5039
- Joined: Sun Nov 14, 2010 12:59 am