-
Notifications
You must be signed in to change notification settings - Fork 205
Port the ME buses and hatches to MUI2 #2824
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
base: master
Are you sure you want to change the base?
Conversation
In progress
…ement actual item setting and clearing.
…f the world is exited too fast.
…g is wacked and the flow is missing from the main panel's children but this is a problem for tomorrow!!
… opened and then it went offline (unwanted text wrapping)
ALongStringOfNumbers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I noticed is that mod name tooltips are not shown on items/fluids in the ME inputs (Didn't check the outputs)
Should the ME fluid output (Don't know if it happens with items) be able to store fluid inside of it while it is offline?
Thoughts on allowing the item inputs to take an Oredict entry for a slot? Probably would be a bit annoying, but could be nice to have.
Using the Recipe Transfer from JEI allows for transfering pages that most likely should not be possible, like the material tree and the ore processing chart.
The Recipe Transfer Button in our JEI GUIs (specifically machines) does not active a JEI exclusion area, and so somewhat overlaps with items in the search pane. Is that something we can fix, either by moving the button inward, or adding an exclusion area for it?
It would be nice if the shift/control/alt key combos worked for scrolling fluid worked for in the Input Hatch config slots, like in Fluid Regulator when it is in Supply Exact mode. Plus having the scrolling key combo information added to the tooltip.
| FluidTooltipUtil.handleFluidTooltip(tooltip, stack); | ||
| })); | ||
| text.space(); | ||
| text.addLine(KeyUtil.number(TextFormatting.WHITE, wrappedStack.getStackSize(), "x")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in mB or B or L, rather than x
Also, could we get the fluid name here, so it is seen quicker than hovering?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now it doesn't have the item/fluid name along with the amount since it looks ugly if the text has to wrap, but I might be able to solve it by making large numbers use scientific notation and wrap the text within the row.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could have the amounts listed below the item name, maybe cut the name if it's too long, i think we have a method for that
...gregtech/common/metatileentities/multi/multiblockpart/appeng/MetaTileEntityMEOutputBase.java
Show resolved
Hide resolved
| .child(IKey.lang("gregtech.machine.me.settings.button") | ||
| .asWidget() | ||
| .heightRel(1.0f))) | ||
| .child(IKey.lang("gregtech.machine.me.settings.refresh_rate") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this get a time specification? IE ticks, seconds, etc
| } | ||
| } | ||
| case setConfigID -> { | ||
| int index = buf.readVarInt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we ever need to check if the index is within the number of slots? I see a lot of just blind reading and using the index, and I was wondering if there was a possibility that it would ever be out of bounds of the number of slots.
| } | ||
|
|
||
| @Override | ||
| public IRecipeTransferError receiveRecipe(@NotNull IRecipeLayout recipeLayout, boolean maxTransfer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the recipe transfer from JEI clears the existing config to add in the ingredients of the recipe output. In my opinion it would be better to combine the existing config with the input ingredients of the target itemstack. Open to some discussion here.
| } | ||
|
|
||
| @Override | ||
| public IRecipeTransferError receiveRecipe(@NotNull IRecipeLayout recipeLayout, boolean maxTransfer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be made to work with fluid containers in a recipe input? EG, our treated wood recipe with a bucket of creosote. Could the recipe transfer take the contained fluid in a fluid handler and then use that?
...a/gregtech/common/metatileentities/multi/multiblockpart/appeng/MetaTileEntityMEInputBus.java
Outdated
Show resolved
Hide resolved
src/main/java/gregtech/api/mui/widget/appeng/fluid/AEFluidConfigSlot.java
Outdated
Show resolved
Hide resolved
Fix no newline after the fluid mol tooltip
|
|
About the ore dict slot, I think it would be better if it was for all slots, so it would auto pull the first 16 items that matched the ore dict. But, that is something that can already be done by creating a subnet with the bus, and having an ore dict storage bus connected to the main network. |
…es and takes items from hatches so badly!1!1!)
…reen register RecipeSyncHandler's to GregTechGuiScreen
| package gregtech.client; | ||
|
|
||
| public class IsGuiActuallyClosing { | ||
|
|
||
| public static boolean isGuiActuallyClosing; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the purpose of this class and its associated mixin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, in that case leave a todo here and in the mixin to remove it once our mui2 dep is updated
# Conflicts: # .gitignore # src/main/java/gregtech/api/mui/GTGuis.java # src/main/java/gregtech/api/mui/sync/GTFluidSyncHandler.java # src/main/java/gregtech/api/util/FluidTooltipUtil.java # src/main/java/gregtech/api/util/JEIUtil.java # src/main/java/gregtech/common/gui/widget/appeng/slot/AEItemConfigSlot.java # src/main/java/gregtech/common/gui/widget/appeng/slot/AEItemDisplayWidget.java # src/main/java/gregtech/common/metatileentities/workbench/CraftingRecipeLogic.java # src/main/resources/mixins.gregtech.mui2.json
What
2^63 - 1of a stack per slot now.Outcome
More MUI2 and makes the ME input parts better.
Additional Information
Closes #2571 and #2482