Structurize

Structurize

40M Downloads

Suggestion - Overlay for research tree

DiabolosMan opened this issue ยท 6 comments

commented

Minecolonies version

Minecolonies version 0.11.933-ALPHA
Minecraft version 1.15.2
Forge version 3.11.77

Expected behavior

Would it be possible to have a tooltip for the research tree resources. For ex, in the screenshot, I have no idea of what is the symbol. I though it was cooked pork but it does not.

Another possibility could be to have the 3 first letters of the object

Another one could be: on clicking on the research button (which must not be disabled anymore), a chat saying the item + quantity missing

2020-05-12_09 02 53

commented

I didn't see a control for adding hover text so I accomplished the requirement by changing the text when resources are not fulfilled. Would this be an acceptable solution?

image

commented

Yes, it would be perfect ;-)

commented

Could be complicated with long names though. Structurize should have a hover method over item icons.

commented

I could be missing it but I didn't see it; only the overlay which shows the quantity.

commented
    @Override
    public boolean handleHover(final double mx, final double my)
    {
        return super.handleHover(mx, my);
    }

Add this method to ItemIcon.java and then experiment around with rendering in the name and quantity on hover (similar to normal itemStacks).

You'd probably have to add some things to the drawItemStack method and methods set onHover/hover ended

commented

This is actually a structurize issue for the GUI handling