bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] MET suggestion


From: Joern Thyssen
Subject: Re: [Bug-gnubg] MET suggestion
Date: Sat, 28 Dec 2002 13:23:12 +0000
User-agent: Mutt/1.4i

On Fri, Dec 27, 2002 at 03:06:32PM -0200, Albert Silver wrote
> When calling up the MET during a match, I'd like to suggest that the
> value corresponding to the match score of the position be highlighted in
> boldface. In other words, if the score is 3-away 4-away for the position
> on the board, then when I call up the MET the value of 3-away 4-away is
> highlighted in boldface.

I've commited some code that allows you to highlight the current score.

The actual highlighting is controlled using the GTK resource file.
This should, in principle, allow for an arbitrary highlighting. I've
added a few lines to gnubg.gtkrc that will make the current score green
and the scores used for calculating take points, double points, etc will
be red.

Nardy and Øystein: you should update the gnubg.gtkrc you distribute with
the windows builds by adding lines like:


--------- 8< ---------------------- 8< -------------------
#
# Styles for match equity table
#

style "met-matching-score" = "default"
{
  fg[NORMAL] = { 0xffff, 0, 0 }    
}

style "met-the-score" = "met-matching-score"
{
  fg[NORMAL] = { 0, 0xffff, 0 }
}

widget "*.gnubg-met-matching-score" style "met-matching-score"
widget "*.gnubg-met-the-score" style "met-the-score"
--------- 8< ---------------------- 8< -------------------

As a side note we can use the same stuff for highlighting the move
in chequer play analysis instead of the current "set highlight ..."
commands.

Jørn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]