Migrate character editor to use new entity editor.
This commit is contained in:
@@ -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))
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user