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
Sort soldiers combobox #1025
Sort soldiers combobox #1025
Conversation
I see that this PR is not very active... |
I have recently cherry-picked this into my build and I have to say this is a very nice piece of code. I have a few comments though if someone decides to merge it to master:
Lastly, big thanks again to myk002, this is a real life saver (and time saver). |
Also: |
And: |
@MeridianOXC I'll merge latest master and get rid of the conflicts, but could you submit a PR to my branch with your changes so I don't duplicate your effort? |
incrementing expression of type bool is deprecated
warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] _meetPointLon += 2*3.14159265358979323846 - abs(_meetPointLon); ^ note: use function 'std::abs' instead
- allow "drop up" vs "drop down" functionality to be chosen by the designer instead of being autodetected - remove dead code - display list from top instead of from bottom - protect against negative psiSkill
I've implemented all of Meridian's (excellent) suggestions, and have tested the code thoroughly with current master. Is there anything the devs would like to see for this pull request before it is merged? |
Adds a combobox to the bottom of the craft soldiers page to allow for sorting by various attributes.
forum discussion: http://openxcom.org/forum/index.php/topic,3644.msg45136.html#msg45136
and some here: http://openxcom.org/forum/index.php/topic,3080.msg44664.html#msg44664
Modified ComboBox logic so that the list popup can be configured to appear above the combobox button if there is not enough room on the screen below. Behavior of all existing combobox widgets is unchanged.