Add the active damage pattern to the resistances display

This commit is contained in:
cncfanatics
2010-08-14 23:57:39 +02:00
parent 51a8c3c98c
commit b06323ee67
2 changed files with 5 additions and 2 deletions

View File

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

BIN
icons/damagePattern_big.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB