blitzmann / Pyfa

Python fitting assistant, cross-platform fitting tool for EVE Online
GNU General Public License v3.0
3 stars 0 forks source link

target resists / damage pattern #21

Open blitzmann opened 10 years ago

blitzmann commented 10 years ago

For damage profile context menu:

Before these changes, pyfa expected a list of root menu items, or a single menu item that would drop into a submenu. There was no functionality to create multiple root menu items and multiple submenus. I got around this but separating the singles from the submenus and making a list of them. Then in the getSubMenu method, determined if we were looking at a single or submenu. If single, redirect the event from the default activate to a custom one (needed to support the submenus). This required passing an additional argument to getSubMenu: the wxID of the current root menu item.