add "hudopacity" to site config, valid settings are potentially from 0.00 to 1.00
This commit is contained in:
parent
5f15a4f928
commit
64dbe3237d
|
@ -53,6 +53,12 @@ class Site:
|
||||||
self.site_path = node.getAttribute("site_path")
|
self.site_path = node.getAttribute("site_path")
|
||||||
self.HH_path = node.getAttribute("HH_path")
|
self.HH_path = node.getAttribute("HH_path")
|
||||||
self.decoder = node.getAttribute("decoder")
|
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")
|
self.hudbgcolor = node.getAttribute("bgcolor")
|
||||||
if self.hudbgcolor == "":
|
if self.hudbgcolor == "":
|
||||||
|
|
|
@ -341,6 +341,7 @@ class Stat_Window:
|
||||||
|
|
||||||
self.window = gtk.Window()
|
self.window = gtk.Window()
|
||||||
self.window.set_decorated(0)
|
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_gravity(gtk.gdk.GRAVITY_STATIC)
|
||||||
#self.window.set_keep_above(1)
|
#self.window.set_keep_above(1)
|
||||||
self.window.set_title("%s" % seat)
|
self.window.set_title("%s" % seat)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user