News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

[GUI] Minimap drag with cursor is counterintuitive

Started by Yona-TYT, July 16, 2024, 01:33:02 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Yona-TYT

I've noticed that using the minimap with touchscreens is a bit tricky, but in general moving around the simutrans minimap is weird.

I think it would be a good idea to make dragging (with right click) also work with left click, so this would make things easier on android for example.

Now to move the focus (the yellow box that indicates where you are on the map) a drag button should be added right in the center of the box, look at the example image:
Captura desde 2024-07-15 20-59-00.png



Edit:

Here is a drag icon SVG in case you need it (I hope simutras code accepts vector graphics :P ):
icon.svg

prissi

But then, how would you move around the map?

Yona-TYT

Quote from: prissi on July 16, 2024, 03:21:44 AMBut then, how would you move around the map?
Dragging the mouse pointer on the map will allow you to move the map without changing the focus, To move the focus (the yellow box) you must drag over the " icon.png " icon.

prissi

No then rather two explicit modes like inverting dragging and moving with a button. This is very counterintuitive and not good for anyone using a mouse (like 99.99% of all current players).

Yona-TYT

Quote from: prissi on July 16, 2024, 04:04:57 AMNo then rather two explicit modes like inverting dragging and moving with a button. This is very counterintuitive and not good for anyone using a mouse (like 99.99% of all current players).
Maybe it's because of the way I move around the map, I usually don't need to drag the focus, I just explore the map and then click where I want to go, this makes more sense if the maps are extremely large.

Yona-TYT

On touch devices it becomes difficult to navigate through the mini map, and you must use the scroll bars to do so.

Is there anything that can be done to improve this?, a specific configuration for Android perhaps?.



prissi

I am well aware of the problem. OK, copying the code from siminteractive.cc worked quite well. r11350 add minmapdragging with left, use simple click to move view.

Yona-TYT