Hmm forgot the color reset to default.
There must be a better methode
This commit is contained in:
parent
805d35c3fd
commit
6efccd9067
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user