SuperMartijn642 / Rechiseled

12 stars 15 forks source link

(Forge 1.20) Implement scroll bar and tooltips #81

Closed bigsnake09 closed 10 months ago

bigsnake09 commented 10 months ago

I was modifying Rechiseled to address an issue of there not being enough slots to show all of the recipes. I'm running 1.20.1 so this is a little behind and I'm only pushing for forge / neoforged, but this might be useful for addressing #70 and #75.

I've implemented a scroll bar to support listing a potentially infinite number of recipes in the interface. To keep the UI at the same width I've adjusted the entries to have 4 columns instead of 5 so the scroll bar can fit in. Entry buttons which don't have a block associated with them also don't render, which gives the interface some visual parity with the stonecutter UI.

I've also added tooltips for the entry buttons, with how small the icons can be it's easier to remember names then the icons, so that helps with identifying what's what more quickly.

Here's what it looks like in action:

image

bigsnake09 commented 10 months ago

Resubmitted: https://github.com/SuperMartijn642/Rechiseled/pull/82

I hadn't realized all of my irrelevant commits were being added to this, sorry about that.