add "hudopacity" to site config, valid settings are potentially from 0.00 to 1.00

This commit is contained in:
eblade 2008-10-27 07:12:04 -04:00
parent 5f15a4f928
commit 64dbe3237d
2 changed files with 7 additions and 0 deletions

View File

@ -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 == "":

View File

@ -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)