Hmm forgot the color reset to default.

There must be a better methode
This commit is contained in:
Gerko de Roo 2009-12-23 21:44:55 +01:00
parent 7a17d96a89
commit 9a145e14ad

View File

@ -631,6 +631,9 @@ class Hud:
if this_stat.hudcolor != "": if this_stat.hudcolor != "":
self.label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse(self.colors['hudfgcolor'])) self.label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse(self.colors['hudfgcolor']))
window.label[r][c].modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse(this_stat.hudcolor)) window.label[r][c].modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse(this_stat.hudcolor))
else:
self.label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse(self.colors['hudfgcolor']))
window.label[r][c].modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse("#FFFFFF"))
if this_stat.stat_loth != "": if this_stat.stat_loth != "":
if number[0] < (float(this_stat.stat_loth)/100): if number[0] < (float(this_stat.stat_loth)/100):