Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JEI-style item presence overlay when hovering over the ? button #130

Merged
merged 1 commit into from
May 22, 2021

Conversation

eigenraven
Copy link
Member

Indicates which items are missing and which ones are present in your inventory with small X/checkmark symbols when you hover over the ? button in a recipe gui. I decided on icon overlays rather than color overlays because it should make sure there are no problems with transparency and it'll be clearer for colorblind people. There's a toggle switch in the settings to turn it off.

I've tested this on a dev client, dev server+client, dev client with ic2+gt, local gtnh 2.1.0.6b instance.

Screenshots

2021-05-21_18 50 35
2021-05-21_20 04 13
2021-05-21_20 05 51
2021-05-21_20 27 46

As you can see on the last screenshot, the arcane workbench has a minor visual glitch where the crosses appear over aspects because they count as ingredient ItemStacks in the recipe handler, there might be similar edge cases in other handlers but as it doesn't affect the behavior of recipe filling I don't think it matters too much.

It also obviously doesn't work for most GregTech machine recipes, as they don't have an overlay handler = no [?] button . If you have an idea for a better UI for this, I'm happy to try to implement it.

Indicates which items are missing and which ones are present in your inventory with small X/checkmark symbols when you hover over the ? button in a recipe gui.
@Glease Glease requested a review from mitchej123 May 21, 2021 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants