Chaosforge Forum

Coding => FPC Valkyrie => Topic started by: Igor Savin on August 13, 2009, 14:01

Title: Colouring TTextModeMessages?..
Post by: Igor Savin on August 13, 2009, 14:01
Kornel, I'm completely lost. I need to colour entire Message in colour other than LightGray, but there doesn't seem to be any procedure or variable related to that!.. The closest thing is LoadColors, which is supposed to read colourcoding from file, but it's so enigmatic, I couldn't make heads or tails of it.

Is there a simple way to accomplish the colouring?..
Title: Re: Colouring TTextModeMessages?..
Post by: Kornel Kisielewicz on August 13, 2009, 14:20
LoadColors is for user highlighting (see doomrl.ini). As for changing color of entire messages, the closest you can get is passing the vcode at the beginning -- "@rThis is a red message". Unfortunately until someone fixes bug ID#1 coloring will break at the end of line...
Title: Re: Colouring TTextModeMessages?..
Post by: you on October 30, 2009, 10:00
You asks You to post an example of Bug#1. You can not properly understand where is the end of line, where colouring breaks.
Title: Re: Colouring TTextModeMessages?..
Post by: Journey on October 30, 2009, 12:46
Why don't you anticipate where the line break will be and then add another @r or whatever color you need?