CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.27k stars 4.12k forks source link

[Project] Add mouse support to all UI windows (where it is appropriate) #58106

Open leemuar opened 2 years ago

leemuar commented 2 years ago

Is your feature request related to a problem? Please describe.

Mouse is a very powerful tool, it increases usability, accessibility and generally could make things a lot easier for many players. Hovering, clicking, dragging are very natural actions for modern players, we should definitely utilize it

I want to continue a great work of dseguin by adding mouse support to as many UI windows as I possibly can. This includes wheel scrolling, mouse hovers, mouse clicks and maybe even drag-n-drops.

This will be a project issue, to group all related issues together

Important: mouse features should not make UI unusable for people with no mouse or old PC. Backward compatibility with old computers is an important feature, adding mouse should not break it

Solution you would like.

Add mouse support to all UI windows. The to-do list will grow:

TO DO

DONE

No response

Additional context

ZeroInternalReflection commented 2 years ago

I've been making my own notes on UI consistency (raised on Discord, but not yet formalized in any issues). Since you mentioned the to-do list growing, here are some of the screens that I've identified as not currently having any mouse support in tiles:

This game has a lot of different UI screens. Mouse support in curses is of course, a more complicated issue. Though it does work on the fire screen...

Night-Pryanik commented 2 years ago

Regarding your question in #58454:

What UI window is this? i Inventory? /Extended Inventory?

inventory. Imagine you have a lighter stored somewhere deep in your backpack, and you want to move it somewhere closer, e.g. in pocket of your pants. You click on the lighter, drag it to the pants, and then release LMB. Et voila, lighter is moved from backpack to your pants (if there's enough free space for it, of course).

Night-Pryanik commented 2 years ago

Drag-and-drop could also be used to use the scrollbar.

Night-Pryanik commented 2 years ago

Drag-and-drop could also be used to sort armor in Sort Armor menu.

leemuar commented 2 years ago

Utility code got finally merged, now the real work begins

leemuar commented 2 years ago

ZeroInternalReflection added drag support for scrollbars: https://github.com/CleverRaven/Cataclysm-DDA/pull/60953

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

Brambor commented 8 months ago

Solved by #64632