diff --git a/gui/characterSelection.py b/gui/characterSelection.py index a248d7345..ca6c0341f 100644 --- a/gui/characterSelection.py +++ b/gui/characterSelection.py @@ -22,6 +22,7 @@ import traceback # noinspection PyPackageRequirements import wx +import roman from logbook import Logger import config @@ -105,6 +106,9 @@ class CharacterSelection(wx.Panel): exportItem = menu.Append(wx.ID_ANY, _t("Copy Missing Skills")) self.Bind(wx.EVT_MENU, self.exportSkills, exportItem) + exportItem = menu.Append(wx.ID_ANY, _t("Copy Missing Skills (EVEMon)")) + self.Bind(wx.EVT_MENU, self.exportSkillsEveMon, exportItem) + self.PopupMenu(menu, pos) event.Skip() @@ -264,6 +268,15 @@ class CharacterSelection(wx.Panel): toClipboard(list) + def exportSkillsEveMon(self, evt): + skillsMap = self._buildSkillsTooltipCondensed(self.reqs, skillsMap={}) + + list = "" + for key in sorted(skillsMap): + list += "%s %s\n" % (key, roman.toRoman(skillsMap[key][0])) + + toClipboard(list) + def _buildSkillsTooltip(self, reqs, currItem="", tabulationLevel=0): tip = "" sCharacter = Character.getInstance()