From 64dbe3237dff1740eb0936412eab3c1b9f2c4ad7 Mon Sep 17 00:00:00 2001 From: eblade Date: Mon, 27 Oct 2008 07:12:04 -0400 Subject: [PATCH] add "hudopacity" to site config, valid settings are potentially from 0.00 to 1.00 --- pyfpdb/Configuration.py | 6 ++++++ pyfpdb/Hud.py | 1 + 2 files changed, 7 insertions(+) diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index c6262c54..4690a84c 100755 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -53,6 +53,12 @@ class Site: self.site_path = node.getAttribute("site_path") self.HH_path = node.getAttribute("HH_path") self.decoder = node.getAttribute("decoder") + + self.hudopacity = node.getAttribute("hudopacity") + if self.hudopacity == "": + self.hudopacity = 0.90 + else: + self.hudopacity = float(self.hudopacity) self.hudbgcolor = node.getAttribute("bgcolor") if self.hudbgcolor == "": diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index 940050ac..e9ac814c 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -341,6 +341,7 @@ class Stat_Window: self.window = gtk.Window() self.window.set_decorated(0) + self.window.set_opacity(parent.config.supported_sites[self.table.site].hudopacity) self.window.set_gravity(gtk.gdk.GRAVITY_STATIC) #self.window.set_keep_above(1) self.window.set_title("%s" % seat)