diff --git a/gui/statsPane.py b/gui/statsPane.py index 0238d2e22..bfeb2409e 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -153,7 +153,7 @@ class StatsPane(wx.Panel): sizerResistances.Add(wx.StaticText(self, wx.ID_ANY, "EHP"), 0, wx.ALIGN_CENTER) - for tankType in ("shield", "armor", "hull"): + for tankType in ("damagePattern", "shield", "armor", "hull"): sizerResistances.Add(bitmapLoader.getStaticBitmap("%s_big" % tankType, self), 0, wx.ALIGN_CENTER) for damageType in ("em", "thermal", "kinetic", "explosive"): @@ -166,10 +166,13 @@ class StatsPane(wx.Panel): box.Add(wx.StaticText(self, wx.ID_ANY, "%"), 0, wx.ALIGN_CENTER) - lbl = wx.StaticText(self, wx.ID_ANY, "0") + + lbl = wx.StaticText(self, wx.ID_ANY, "0" if tankType != "damagePattern" else "") + setattr(self, "labelResistance%sEhp" % tankType, lbl) sizerResistances.Add(lbl, 0, wx.ALIGN_CENTER) + # Resistances sizerHeaderRechargeRates = wx.BoxSizer(wx.HORIZONTAL) self.sizerBase.Add(sizerHeaderRechargeRates, 0, wx.EXPAND | wx.LEFT, 3) diff --git a/icons/damagePattern_big.png b/icons/damagePattern_big.png new file mode 100644 index 000000000..881611599 Binary files /dev/null and b/icons/damagePattern_big.png differ