MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / getText

Method getText

gui/builtinViewColumns/droneEhp.py:63–70  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

61 self.mask |= wx.LIST_MASK_TEXT
62
63 def getText(self, stuff):
64 if not isinstance(stuff, (Drone, Fighter)):
65 return ""
66 if self.mainFrame.statsPane.nameViewMap["resistancesViewFull"].showEffective:
67 ehp = sum(stuff.ehp.values())
68 else:
69 ehp = sum(stuff.hp.values())
70 return formatAmount(ehp, 3, 0, 9)
71
72 def getImageId(self, mod):
73 return -1

Callers

nothing calls this directly

Calls 2

formatAmountFunction · 0.90
valuesMethod · 0.80

Tested by

no test coverage detected