Migrate character editor to use new entity editor.

This commit is contained in:
blitzmann
2016-03-28 21:23:27 -04:00
parent 3315d27d45
commit a3d9d5cca8
9 changed files with 194 additions and 231 deletions

View File

@@ -152,4 +152,7 @@ class EntityEditor (wx.Panel):
if len(self.choices) == 0:
return None
return self.choices[self.entityChoices.GetSelection()]
return self.choices[self.entityChoices.GetSelection()]
def setActiveEntity(self, entity):
self.entityChoices.SetSelection(self.choices.index(entity))

View File

@@ -110,7 +110,7 @@ class BaseImplantEditorView (wx.Panel):
""" Adds implant to the current context"""
raise NotImplementedError()
def removeImplantFromContext(self, pos):
def removeImplantFromContext(self, implant):
""" Removes implant from the current context"""
raise NotImplementedError()
@@ -191,7 +191,7 @@ class BaseImplantEditorView (wx.Panel):
def removeItem(self, event):
pos = self.pluggedImplantsTree.GetFirstSelected()
if pos != -1:
self.removeImplantFromContext(pos)
self.removeImplantFromContext(self.implants[pos])
self.update()
class AvailableImplantsView(d.Display):