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

Improve Context Menu behaviour #200 #201

Merged

Conversation

Mehuge
Copy link

@Mehuge Mehuge commented Jul 1, 2018

This PR goes part way to solving the right click context menu issues described in #200

It does the following:

  1. don't display the context menu if there are no options. This means that if you happen to right click your own portrait and you are not in a warband you won't get a context menu so it wont steal further right clicks (though it still steals the initial one).

  2. if the context menu is open, left or right clicking anywhere but on an option will close it. This still means that the click to close the menu is stolen from the client, so still steals two right clicks requiring a third to turn.

Also fixed z-order of the menu so the options are not behind the unit frame.

This is not a complete solution to the problem described in #200

@Mehuge Mehuge force-pushed the cu-fix-right-click-unit-frame branch from 97815cc to bd32fcb Compare July 25, 2018 20:13
@codecorsair codecorsair merged commit 5ba8ea3 into CUModSquad:master Aug 2, 2018
@Mehuge Mehuge deleted the cu-fix-right-click-unit-frame branch August 9, 2018 16:50
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.

2 participants