@@ -55,8 +55,11 @@ def populatePanel(self, contentPanel, headerPanel):
5555 sizerBombing .AddGrowableCol (i + 1 )
5656 contentSizer .Add (sizerBombing , 0 , wx .EXPAND , 0 )
5757
58- # Add an empty label, then the rest.
59- sizerBombing .Add (wx .StaticText (contentPanel , wx .ID_ANY , "" ), 0 )
58+ # first row is for icons
59+ bitmap = BitmapLoader .getStaticBitmap ("skill_big" , contentPanel , "gui" )
60+ tooltip = wx .ToolTip (_t ("Covert Ops level" ))
61+ bitmap .SetToolTip (tooltip )
62+ sizerBombing .Add (bitmap , 0 , wx .ALIGN_CENTER )
6063 toolTipText = {
6164 "em" : _t ("Electron Bomb" ),
6265 "thermal" : _t ("Scorch Bomb" ),
@@ -69,6 +72,7 @@ def populatePanel(self, contentPanel, headerPanel):
6972 bitmap .SetToolTip (tooltip )
7073 sizerBombing .Add (bitmap , 0 , wx .ALIGN_CENTER )
7174
75+ # the other rows are for each possible level of Covert Ops skill
7276 for covertLevel in ("0" , "1" , "2" , "3" , "4" , "5" ):
7377 label = wx .StaticText (contentPanel , wx .ID_ANY , "%s" % covertLevel )
7478 tooltip = wx .ToolTip (_t ("Covert Ops level" ))
@@ -111,13 +115,18 @@ def refreshPanel(self, fit):
111115 # updates the labels for each combination of covert op level and damage type
112116 for covertLevel in ("0" , "1" , "2" , "3" , "4" , "5" ):
113117 modBombDamage = bombDamage * (1 + 0.05 * int (covertLevel ))
114- for damageType , ehp in (("em" , emEhp ), ("thermal" , thermalEhp ),
115- ("kinetic" , kineticEhp ), ("explosive" , explosiveEhp )):
118+ for damageType , ehp , bomber in (("em" , emEhp , "Purifier" ), ("thermal" , thermalEhp , "Nemesis" ),
119+ ("kinetic" , kineticEhp , "Manticore" ), ("explosive" , explosiveEhp , "Hound" )):
116120 effectiveBombDamage = modBombDamage * min (bombSigRadius , sigRadius ) / bombSigRadius
117121 label = getattr (self , "labelDamagetypeCovertlevel%s%s" % (damageType .capitalize (), covertLevel ))
118122 label .SetLabel ("{:.1f}" .format (ehp / effectiveBombDamage ))
119- label .SetToolTip ("Number of %s bombs to kill a %s using the respective "
120- "bomber type with Covert Ops level %s" % (damageType , fit .name , covertLevel ))
123+ if covertLevel is not "0" :
124+ label .SetToolTip ("Number of %s bombs to kill a %s using a %s "
125+ "with Covert Ops level %s" % (damageType , fit .name , bomber , covertLevel ))
126+ else :
127+ label .SetToolTip ("Number of %s bombs to kill a %s with Covert Ops level %s" %
128+ (damageType , fit .name , covertLevel ))
129+
121130
122131 self .panel .Layout ()
123132 self .headerPanel .Layout ()
0 commit comments