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

Update MUI2 dep to RC2 #2622

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

Update MUI2 dep to RC2 #2622

wants to merge 35 commits into from

Conversation

ghzdude
Copy link
Contributor

@ghzdude ghzdude commented Sep 19, 2024

What

updates mui2 dep to rc2
ports multi fluid tank hatches to mui2 to test our fluid slot impl
port single take fluid hatches to test fluid locking
fixes issues in mui2 via mixin

Implementation Details

new Row() -> Flow.row()
new Column() -> Flow.coloumn()
GuiData is now passed in to mui methods instead of main panel
reworks abstract ender cover ui because extending PanelSyncHandler is no longer desirable
FixedFluidSlotSH has been merged with GTFluidSlotSyncHandler
Tooltip is deprecated and replaced with RichTooltip
and other stuff

need to check these things to make sure they still work

  • item busses
  • ender cover
    • opens
    • entry selector
    • entry description
  • filters as cover
  • filters as item
  • conveyors
  • robot arms
  • pumps
  • regulators
  • basic detectors
  • multi fluid hatches

Outcome

another step for the road to mui2

@ghzdude ghzdude added the type: refactor Suggestion to refactor a section of code label Sep 19, 2024
@ghzdude ghzdude force-pushed the gh/update-mui2-rc2 branch 2 times, most recently from 329017d to 1f0f653 Compare September 19, 2024 04:25
@ghzdude ghzdude marked this pull request as ready for review September 19, 2024 19:12
@ghzdude ghzdude requested review from a team as code owners September 19, 2024 19:12
Copy link
Contributor

@ALongStringOfNumbers ALongStringOfNumbers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Ghost Circuit shift-click selector popup doesn't seem to work. No panel is created when shift left clicking.

In the Ender Fluid Link Cover, when a Fluid Filter is added, if you open the fluid filter settings, you cannot drag the panel when you click on the title (TextWidget), you can only drag the panel when clicking on the actual panel. This is not that great, as the panel is a bit small, and filled with things that block you from dragging it. (This was possible in RC1, so something changed, either on MUI end or in this PR).

In addition, once you start dragging the panel, you cannot stop dragging the panel. Clicking anywhere with the panel when it is being dragged does not park the panel in the clicked location.

No tooltips are present on any of the buttons, except for the lock button and the entry selector, in the Ender Fluid Link cover GUI, though I cannot remember if this was the case before this PR

When dragging a panel, you can still pick up items out of your inventory onto your mouse cursor. This probably should not be allowed.

You can no longer shift click to open covers when they are your selected item

A lot of buttons feel like they are missing tooltips when they previously had tooltips.

Something is going wrong with the Multifluid hatches. I clicked a stack of 45 cells into a multifluid input, all fluid went it. I tried to grab the fluid back with the 45 cells, and only 44 cells were filled. I could repeat this several times. I then closed the GUI and reopened it, tried clicking on the 1 B of fluid with a cell, but it deleted itself.

@ghzdude
Copy link
Contributor Author

ghzdude commented Sep 22, 2024

The Ghost Circuit shift-click selector popup doesn't seem to work. No panel is created when shift left clicking.

In the Ender Fluid Link Cover, when a Fluid Filter is added, if you open the fluid filter settings, you cannot drag the panel when you click on the title (TextWidget), you can only drag the panel when clicking on the actual panel. This is not that great, as the panel is a bit small, and filled with things that block you from dragging it. (This was possible in RC1, so something changed, either on MUI end or in this PR).

In addition, once you start dragging the panel, you cannot stop dragging the panel. Clicking anywhere with the panel when it is being dragged does not park the panel in the clicked location.

No tooltips are present on any of the buttons, except for the lock button and the entry selector, in the Ender Fluid Link cover GUI, though I cannot remember if this was the case before this PR

When dragging a panel, you can still pick up items out of your inventory onto your mouse cursor. This probably should not be allowed.

these are all things that should be fixed in MUI2

You can no longer shift click to open covers when they are your selected item

I'm able to open the filter ui when right clicking with a filter selected in the hotbar, but that functionality was never implemented for other covers so idk what you mean exactly. Shift right-clicking prevents the ui from being opened so the NBT can cleared.

A lot of buttons feel like they are missing tooltips when they previously had tooltips.

already fixed in mui2 dev

Something is going wrong with the Multifluid hatches. I clicked a stack of 45 cells into a multifluid input, all fluid went it. I tried to grab the fluid back with the 45 cells, and only 44 cells were filled. I could repeat this several times. I then closed the GUI and reopened it, tried clicking on the 1 B of fluid with a cell, but it deleted itself.

this is now fixed

@ghzdude
Copy link
Contributor Author

ghzdude commented Oct 21, 2024

this pr is on hold and should not be merged until mui2 rc3 or later is released

@ghzdude
Copy link
Contributor Author

ghzdude commented Nov 7, 2024

I've decided to fix the issues with MUI2 via mixin, so that this pr doesn't need to wait for the next mui update and to fix issues with other/future mui2 port prs. This pr can be looked at now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
Status: Medium
Development

Successfully merging this pull request may close these issues.

2 participants