Skip to content

Prevent Recipe Properties from Overlapping in JEI#266

Merged
TechLord22 merged 3 commits intomasterfrom
property_overlaps
Dec 3, 2021
Merged

Prevent Recipe Properties from Overlapping in JEI#266
TechLord22 merged 3 commits intomasterfrom
property_overlaps

Conversation

@TechLord22
Copy link
Copy Markdown
Member

@TechLord22 TechLord22 commented Nov 28, 2021

What:
This PR prevents recipes with properties from overlapping with the recipe display. Previously, 4 or more columns of inputs, and/or sometimes outputs, would have property text on top of slot widgets. This PR resolves this. It also allows the groupOutput to be applied to inputs for any purpose. This PR no longer offsets the recipe display for group output, as it was unneeded.

How solved:
The size of the JEI page for the recipemap is lengthened based on the number of properties it has, while leaving the recipe itself in the same location at the top of the page.

Outcome:
Prevents Recipe Properties from overlapping in JEI.

Additional info:
An example of the PR working. Without the changes made in this PR, the temperature property's shifting of the total energy amount would have overlapped with the fluid input slots.
image

Possible compatibility issue:
Currently it goes off of the first recipe's properties of a given RecipeMap, as there was no other way to determine the amount of expected properties. This could result in some recipes with properties not being correctly caught.

Comment thread src/main/java/gregtech/integration/jei/recipe/RecipeMapCategory.java Outdated
@TechLord22 TechLord22 merged commit 235f0cc into master Dec 3, 2021
@TechLord22 TechLord22 deleted the property_overlaps branch December 3, 2021 01:00
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.

3 participants