Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fleet booster refactoring #53

Merged
merged 19 commits into from Mar 3, 2014
Merged

Fleet booster refactoring #53

merged 19 commits into from Mar 3, 2014

Conversation

blitzmann
Copy link
Collaborator

This pull request satisfies issue #51: it adds a better way to apply boosters to fits. Features include:

  • Right click -> Flag as Booster on fits. This flags the fit as a booster, which enables...
  • Icon on fit showing it's a booster
  • Drop down in fleet window showing all flagged fits
  • Old-style dragging/setting from context menu still works (In case you want to play around with a booster and not flag it as one.)
  • Refactoring of fleet window code base: UI elements are stored in self.fleet, and simply loops to apply UI elements. This has the benefit of removing some redundancy and allowing quick changes to take place in the future.
  • Added help text to fleet window
  • Unspecified commanders also have the character drop down disabled, which better shows that it is not active.

When a fit is applied, the dropdown is replaced with static text of the fit's name. Double click removes the fit as a booster, and displays the drop down again. This is so that we can support dragging non-flagged ships to the window without adding them to the dropdown.

I've tested this extensively today. The DB schema migration works for v1.1.21 databases and most likely for all previous versions. '''However''', I would like this to be tested by a few other people is possible.

Issues:

  • I couldn't find a way to size the dropdown horizontally based on the windows width. This causes it to be long and, in some cases, cause horizontal scrollbar. I will continue to look into this, but more input is welcome (FIXED in recent commit)
  • The icon in the fitting list that shows as a booster is actually a button on the toolbar. I tried to play around with it in sfBrowserItem.py to get it to not move on Mouse Click and whatnot, to simply acts as an icon, but didn't get very far. Would love for someone to look more into this, as right now people might thinks it's a button that's supposed to do something but doesn't.

Pictures:
Showing new option in fitting context menu, along with new booster button/icon
finalcontext

Showing new fleet view, with drop downs. Wing commander is currently being applied, and I am selecting a new squad commander with the drop down which is filled with flagged fits. Note: you can still drag/right click fits to add them as boosters: (shows fit ID for debugging issues - removed in actual commit)
fittingwindow

@blitzmann
Copy link
Collaborator Author

I'm going to go ahead and merge this. I've tested it extensively and it has been a stable feature. Still would like to fix the button issue, but it's not too much of a priority.

Since this adds a column to the database, release notes warning to backup data is probably a good idea in case shit hits the fan.

blitzmann added a commit that referenced this pull request Mar 3, 2014
Fleet booster refactoring
@blitzmann blitzmann merged commit cb0a5de into pyfa-org:master Mar 3, 2014
@blitzmann blitzmann deleted the fleet branch March 3, 2014 23:48
@blitzmann blitzmann mentioned this pull request Mar 23, 2017
Ebag333 added a commit to Ebag333/Pyfa that referenced this pull request Apr 16, 2017
Enhancement: Allow additional overrides
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant