-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Main menu overhaul (Part 1.5): mouse control fixes & improvements #58142
Conversation
4f37ad6
to
b0e7b5d
Compare
9479416
to
a0d529f
Compare
Is it possible to move mods up and down in world creation menu using only mouse? |
No, sorry. As far as I know click-and-drag is not possible. |
Maybe we should add separate up and down buttons which will move highlighted mod up and down. Just a thought. |
Why not? |
Please note I did a help window scrolling here: #58145 |
I did some research, SELECT mouse action currently triggers when user release left mouse button. To make drag possible we only need to add tracking for the event of pressing mouse button. I'll make another PR for dragging support when Im done with my research |
bad4935
to
b944f21
Compare
b944f21
to
1790fcb
Compare
Cheers for the feedback. New changes:
|
1790fcb
to
1c4ee61
Compare
run_for_point_in() is a nice thing, Ill definitely reuse it |
1c4ee61
to
19a0993
Compare
Co-authored-by: Qrox <[email protected]>
19a0993
to
0818af6
Compare
@dseguin, run_for_point_in() iterates over all items in collection, even if it already found a rectangle. I can easily copy run_for_point_in() and modify it to be like run_for_first_point_in(), I just want to know you opinion on that. Maybe Im missing some cases where iterating over all rectangles and counting all hits is actually required |
Co-authored-by: BevapDin <[email protected]>
No problem. I've added a default parameter to return early after the first match. These are intended to be general purpose functions so I do want the option to run for any element, but for UI buttons you can just leave |
0818af6
to
8c9f955
Compare
I figured out how to implement it, see #58214 (comment) |
Summary
None
Purpose of change
Fixes #58086 (except the scrolling issue which is addressed by #58140).
Describe the solution
ESC
if there are no visible buttons for exiting a window.Changes to
uilist
/query_popup
:Changes to Settings/World/Help menus:
Example - creating a world using only the mouse:
2022-06-05.03-41-54.mp4
Example - navigating settings and help menus in-game:
2022-06-05.19-38-47.mp4
Additional testing
Additional context
TODO: