Show icons for crafting requirements - #210
Merged
rubensworks merged 5 commits intoAug 29, 2026
Merged
Conversation
The tooltip of a craftable ingredient in the storage terminal now renders the required ingredients as a grid of icons with their quantities, instead of listing their names. The grid wraps at 9 columns and spreads the ingredients evenly over the resulting rows, and inputs that accept multiple ingredients cycle over their alternatives in place. Closes #206 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HXSSyBp141iYXqQbeqHugN
…egrated-terminals-206-crafting-requirement-icons # Conflicts: # src/main/java/org/cyclops/integratedterminals/core/terminalstorage/slot/TerminalStorageSlotIngredientCraftingOption.java
Recipes commonly require the same ingredient in multiple slots, which took up a separate icon for every occurrence. Such inputs are now shown as a single icon with the sum of their quantities. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HXSSyBp141iYXqQbeqHugN
Deprecate the old drawInstance signature, and register the tooltip component factory from the ClientProxy instead of a separate event subscriber. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HXSSyBp141iYXqQbeqHugN
rubensworks
commented
Aug 29, 2026
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HXSSyBp141iYXqQbeqHugN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #206
The tooltip of a craftable ingredient in the storage terminal used to list the crafting requirements as plain ingredient names. It now renders them as a grid of ingredient icons with their quantities, below the existing
Crafting Requirements:line.Behaviour
Implementation
ITerminalCraftingOption#getInputAlternativesis a new defaulted method that exposes all alternatives per input, wheregetInputsonly exposes the first one.TerminalCraftingOptionRecipeDefinitionoverrides it to expose the alternatives of the underlying recipe definition.CraftingOptionIngredientsTooltipis aTooltipComponentholding those inputs, which is rendered byClientCraftingOptionIngredientsTooltip.IIngredientComponentTerminalStorageHandler#drawInstancegained an overload that also accepts an optional visualTooltipComponent. The old signature is kept as a default that passesnull, so all existing callers are unaffected.renderComponentTooltipFromElementsinstead (seeTooltipRenderHelpers). This looks the same, but additionally supports visual components and line wrapping.Testing
./gradlew buildpasses../gradlew runGameTestServerpasses, including 2 new game tests coveringgetInputAlternativesfor single and multiple alternatives.Generated by Claude Code