Anuken / Mindustry-Suggestions

Repository for Mindustry suggestions and feedback
130 stars 58 forks source link

Could you please add Tooltips for the ressources? #2172

Closed schittli closed 3 years ago

schittli commented 3 years ago

Describe what you would like changed, and why.

I played about 4 Days and and I still keep wondering which resource is behind which icon. And because it is tedious to maintain a legend outside of the game itself, I ask for your help:

Can you please add a tooltip on the resources? Maybe they could be enabled / disabled in the settings, e.g. "Display beginners Tooltips".

Describe the changes you want to propose. Include possible alternatives.

image

Jammo2000 commented 3 years ago

Good idea, could be hard to implement.

ghost commented 3 years ago

You won't believe how convenient this would be for mods that add like 20+ new resources.

THEGAMER-10n commented 3 years ago

Good idea, could be hard to implement.

Logic already has tooltips. So this could be easy to implement.

genNAowl commented 3 years ago

Logic already has tooltips. So this could be easy to implement.

I have not checked the code for resource display UI yet, but this wouldn't be as easy as you would think - logic tooltips are over buttons, while these are just icons; However, this is just my first thoughts on implementation; Take what I say with a grain of salt.

Humanoid-X commented 3 years ago

Good but might be hard...

itcannotbe commented 3 years ago

Aside from mods. This doesn't give anymore help to the vanilla game aside from some edge cases. Most resources doesn't look alike for the most part.

numer99 commented 3 years ago

I thought the title mean it would tell you about resources maybe if you clicked on the resource it would tell you what it was and tell you about it.

itcannotbe commented 3 years ago

You mean like clicking on the resource shows you the ~block~ Item info?

schittli commented 3 years ago

You mean like clicking on the resource shows you the ~block~ Item info?

Tooltips are great because one only has to wait a very short time - and then one knows what one needs 😍

If one has to click to get hints, then the game ist interrupted: click - read - click again to return to the game. We already have this tedious usability with the block information: One hast to click the ? to quickly get required information: image

I click on this question mark very often, therefore I just wanted to expand this suggestion:

As soon as one is above an object and holds down e.g. the Alt key, additional information is displayed as a tooltip 😊🙄 image

numer99 commented 3 years ago

Exactly, we need tooltips for items

joshuaptfan commented 3 years ago

It's not necessary to learn the names, as resources are referred to by their icons everywhere in the GUI, while the names are only used in a couple of places.

schittli commented 3 years ago

Hei @joshuaptfan

It's not necessary to learn the names, as resources are referred to by their icons everywhere in the GUI, while the names are only used in a couple of places.

Unfortunately, this is not true/useful: While playing the game, even if a beginner played 30 hours, he still must break the game all the time:

No, 99.9% of all Games use Text and Tooltips, so that Users can quickly start, don't have to ask obvious questions like "What das this Icon mean?" and play without many interruptions.

The only difference is probably Chess :-)

schittli commented 3 years ago

I've just noted that the missing Tooltips are fatal for the gameplay / gameflow in general:

As we already know:

Conclusion: We have to constantly research outside the game what resources and units we need or we're working with.

schittli commented 3 years ago

Good evening @Anuken

I'm always amazed at how clean your code is and I can't believe how productive you are... truly remarkable.

Wouldn't it be possible for you to display the resource tooltips like this on-liner?

It would be a very big help for the gameplay and would be more fun. Please note the //New: part.

File: .\core\src\mindustry\ui\CoreItemsDisplay.java

        for(Item item : content.items()){
            if(usedItems.contains(item)){
                image(item.icon(Cicon.small)).padRight(3);
                //TODO leaks garbage
                //Old:
                // label(() -> core == null ? "0" : UI.formatAmount(core.items.get(item))).padRight(3).left();
                //New:
                label(() -> core == null ? "0" : UI.formatAmount(core.items.get(item))).padRight(3).left().tooltip(item.name);
                // …
            }
        }

Thanks a lot, kind regards, Thomas

Anuken commented 3 years ago

7.0 already does something similar to that.