Anuken / Mindustry-Suggestions

Repository for Mindustry suggestions and feedback
125 stars 57 forks source link

QOL: Right click on minimap to pan #5012

Closed alexpvpmindustry closed 1 month ago

alexpvpmindustry commented 1 month ago

Describe the content or mechanics you are proposing.

allow pc users to right click on minimap to pan to the location. (maybe long press for mobile users?) this is similar to a previous suggestion, but I'm thinking of using Right Click (RC). (since RC currently does nothing in the minimap) https://github.com/Anuken/Mindustry-Suggestions/issues/3417

I'm willing to try implement it.... try....

Its similar mechanics as right clicking when viewing the "minimap mode" (ie, after left clicking the minimap or pressing "m" )

Describe how you think this content will improve the game. If you're proposing new content, mention how it may add more gameplay options or how it will fill a new niche.

QOL for panning to far regions.

Before making this issue, check the boxes below to confirm that you have acknowledged them.

alexpvpmindustry commented 1 month ago

feel free to close this, if its not interesting to be implemented.

also... taking a closer look at the minimap fragment: image

seems like to do this, we just need to add a "right-click" function here. and replace the ui.minimapfrag.toggle() to do some panning instead.

but, we must also consider the relative scaling/position of the minimap (additionally, the minimap may be shifted or scaled, in the mobile).

now I see why this is difficult to do.

alexpvpmindustry commented 1 month ago

crazy fix! thanks for the help!