Renamed moduleNameOrSlot.py
In preparation for its division into moduleName and moduleIcon. This refactor will let the module icon occupy a different column from its Name, so that module/ammo icons can be swapped.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
__all__ = ["moduleState", "moduleNameOrSlot", "attributeDisplay", "maxRange",
|
||||
__all__ = ["moduleState", "moduleName", "attributeDisplay", "maxRange",
|
||||
"name", "droneDps", "droneNameAmount", "droneCheckbox", "moduleAmmo",
|
||||
"capacitorUse", "activityCheckbox", "moduleAmmoIcon", "modulePrice",
|
||||
"projectedName", "projectedState", "projectedAmmoIcon", "projectedAmmo",
|
||||
|
||||
@@ -22,8 +22,8 @@ from gui.viewColumn import ViewColumn
|
||||
from gui import bitmapLoader
|
||||
from eos.types import Slot
|
||||
|
||||
class ModuleNameOrSlot(ViewColumn):
|
||||
name = "Module name/slot"
|
||||
class ModuleName(ViewColumn):
|
||||
name = "Module Name"
|
||||
def __init__(self, fittingView, params):
|
||||
ViewColumn.__init__(self, fittingView)
|
||||
self.columnText = "Name"
|
||||
@@ -51,4 +51,4 @@ class ModuleNameOrSlot(ViewColumn):
|
||||
|
||||
return iconId
|
||||
|
||||
ModuleNameOrSlot.register()
|
||||
ModuleName.register()
|
||||
@@ -32,7 +32,7 @@ FitChanged, FIT_CHANGED = wx.lib.newevent.NewEvent()
|
||||
class FittingView(d.Display):
|
||||
DEFAULT_COLS = ["Module State",
|
||||
"Module Ammo Icon",
|
||||
"Module name/slot",
|
||||
"Module Name",
|
||||
"attr:power",
|
||||
"attr:cpu",
|
||||
"Max range",
|
||||
|
||||
Reference in New Issue
Block a user