Fitting view/display improvements

This commit is contained in:
HomeWorld
2010-11-02 15:04:35 +02:00
parent c0c70c9bd4
commit 7ad1e47cb0
20 changed files with 59 additions and 27 deletions

View File

@@ -23,6 +23,7 @@ from gui import bitmapLoader
import service
from util import formatAmount
from eos.types import Hardpoint
import wx
class MaxRange(ViewColumn):
name = "Module Tracking"
@@ -44,11 +45,15 @@ class MaxRange(ViewColumn):
self.imageId = -1
else:
self.imageId = -1
self.mask = wx.LIST_MASK_IMAGE
else:
self.imageId = -1
if params["displayName"] or self.imageId == -1:
self.columnText = info.displayName if info.displayName != "" else info.name
self.mask |= wx.LIST_MASK_TEXT
def getText(self, stuff):
if stuff.hardpoint == Hardpoint.TURRET: