-
Notifications
You must be signed in to change notification settings - Fork 80
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
Allow excluding windows from being closed via Escape key #1606
Allow excluding windows from being closed via Escape key #1606
Conversation
adding a small "pin" button left of the minimize button of windows would be great. |
Although one should be able to disable the pin button (for people who like the original interface). Will think about a pin icon. |
a25c1fa
to
b6b1f1f
Compare
I've updated the PR description with the new mechanic, developed after some back-and-forth with @Spikeone on Discord. To summarize the rationale: An additional button would've been difficult to fit on some windows (e.g., HQ) and required new assets for the top part of the window chrome. Once we add a setting to the options screen – with a tooltip explaining the behavior – this should be discoverable enough. The pin/unpin icons are a bit difficult to tell apart (at least to my eyes and without #1594 😉) and @Spikeone created another set of icons using a lock, which is visually easier to distinguish. We could rename the feature and change the icons as well. @Flow86 Thoughts? Otherwise, work is paused until after #1608 and #1609 have been (ideally) merged. |
b6b1f1f
to
9ac18b2
Compare
I want to add a new category called |
What would you put there from the other PR? IMO the interface category is fitting, i.e. similar to revert-mouse |
One or two settings for the "Follow object" changes. @Spikeone was arguing for some control to retain the vanilla experience. I'm fine with those going into Edit: Tagged the wrong person. |
I believe you meant to tag @Spikeone i am unfamiliar with this repo |
My apologies! You're correct. |
I think the idea to put multiple settings into that screen, maybe some that don't change the interface but other behaviors (I have no idea at the moment what settings could be client side only and change behavior, and are not interface options). Maybe at some point we'd split tweakables and interface again. |
Oh, the original purpose of the |
9ac18b2
to
1fff7f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides two minor things and a final decision on [tweakables]
, this seems ready to me.
0b78f3a
to
7bff721
Compare
Pinned windows won't be closed when pressing Escape.
Add a "pin" function to in-game windows. The function replaces the shade (aka. minimize) button and the window can instead be shaded by double-clicking the title bar. Pinned windows are excluded from being closed by the window manager when hitting the Escape key.
Also set SETTINGS.sound.effectsEnabled to false to prevent sounds from trying to play.
Head branch was pushed to by a user without write access
c17d253
to
d78eb3a
Compare
The required test runs for the auto-merge seem to have been canceled so I rebased onto master and force-pushed over your merge commit to trigger another run. There's one cosmetic change I forgot to push previously, otherwise, it's unchanged. |
When the (random) map size happens to be equal to the chunksize the test fails as the first mock-send finishes the transmission. Use named constants and ensure sizes.
The appveyor build failed due to a random issue unrelated to this. I added a commit to fix this to your branch so you don't need to do anything. |
Add a "pin" function to in-game windows. The function replaces the shade (aka. minimize) button and the window can instead be shaded by double-clicking the title bar.
Pinned windows are excluded from being closed by the window manager when hitting the Escape key.
The setting
interface.enable_window_pinning
has to be set to1
for the new behavior to take effect.An option can be added to the UI once the options screen has been reorganized.
To-do:
Alt-W
should still close all windows.The feature has poor discoverability. Should it be added as a separate button instead?