Missing changes in contextmenu dmgpattern
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
from gui.contextMenu import ContextMenu
|
||||
from gui.itemStats import ItemStatsDialog
|
||||
import gui.mainFrame
|
||||
import service
|
||||
|
||||
class DamagePattern(ContextMenu):
|
||||
def __init__(self):
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
|
||||
def display(self, context, selection):
|
||||
return context in ("resistancesViewFull",)
|
||||
|
||||
def getText(self, context, selection):
|
||||
sDP = service.DamagePattern.getInstance()
|
||||
return map(lambda p: p.name, sDP.getDamagePatternList())
|
||||
|
||||
def activate(self, context, selection, i):
|
||||
pass
|
||||
|
||||
DamagePattern.register()
|
||||
from gui.contextMenu import ContextMenu
|
||||
from gui.itemStats import ItemStatsDialog
|
||||
from gui.patternEditor import DmgPatternEditorDlg
|
||||
import gui.mainFrame
|
||||
import service
|
||||
|
||||
class DamagePattern(ContextMenu):
|
||||
def __init__(self):
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
|
||||
def display(self, context, selection):
|
||||
return context in ("resistancesViewFull",)
|
||||
|
||||
def getText(self, context, selection):
|
||||
sDP = service.DamagePattern.getInstance()
|
||||
return map(lambda p: p.name, sDP.getDamagePatternList())
|
||||
|
||||
def activate(self, context, selection, i):
|
||||
dlg=DmgPatternEditorDlg(self.mainFrame)
|
||||
DamagePattern.register()
|
||||
|
||||
Reference in New Issue
Block a user