Move to new format in ViewColumns and suffixize drone bay and bandwidth
This commit is contained in:
@@ -54,7 +54,7 @@ class AttributeDisplay(ViewColumn):
|
||||
def getText(self, mod):
|
||||
attr = mod.getModifiedItemAttr(self.info.name)
|
||||
if attr:
|
||||
return shorten(attr, 2)
|
||||
return shorten(attr, 3, 0, 0)
|
||||
else:
|
||||
return ""
|
||||
|
||||
|
||||
@@ -55,10 +55,10 @@ class MaxRange(ViewColumn):
|
||||
if falloff is None:
|
||||
falloff = ""
|
||||
else:
|
||||
falloff = "+%sm" % shorten(falloff, 1)
|
||||
falloff = "+%sm" % shorten(falloff, 3, 0, 3)
|
||||
|
||||
if maxRange:
|
||||
return "%sm" % shorten(maxRange, 1) + falloff
|
||||
return "%sm" % shorten(maxRange, 3, 0, 3) + falloff
|
||||
else:
|
||||
return "" + falloff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user