(self, stuff)
| 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 |
nothing calls this directly
no test coverage detected