MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / getText

Method getText

gui/builtinViewColumns/maxRange.py:57–71  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

55 self.mask |= wx.LIST_MASK_TEXT
56
57 def getText(self, stuff):
58 if isinstance(stuff, Mode):
59 return ""
60
61 maxRange = stuff.maxRange if hasattr(stuff, "maxRange") else stuff.getModifiedItemAttr("maxRange", None)
62 falloff = stuff.falloff
63 if falloff and falloff >= 5:
64 falloff = "+%sm" % formatAmount(falloff, 3, 0, 3)
65 else:
66 falloff = ""
67
68 if maxRange:
69 return "%sm%s" % (formatAmount(maxRange, 3, 0, 3), falloff)
70 else:
71 return "" + falloff
72
73 def getImageId(self, mod):
74 return -1

Callers

nothing calls this directly

Calls 2

formatAmountFunction · 0.90
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected