Chaosforge Forum

  • June 18, 2019, 05:15
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Colouring TTextModeMessages?..  (Read 3772 times)

Igor Savin

  • Elder Chaos Guard
  • Second Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 180
    • View Profile
Colouring TTextModeMessages?..
« 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?..
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4425
    • View Profile
    • http://chaosforge.org/
Re: Colouring TTextModeMessages?..
« Reply #1 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...
Logged
at your service,
Kornel Kisielewicz

you

  • Programmer
  • Elder Chaos Guard
  • First Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 108
  • I am You!
    • View Profile
Re: Colouring TTextModeMessages?..
« Reply #2 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.
Logged

Journey

  • Sergeant Major
  • *
  • Offline Offline
  • Posts: 132
    • View Profile
Re: Colouring TTextModeMessages?..
« Reply #3 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?
Logged
Pages: [1]