-
Notifications
You must be signed in to change notification settings - Fork 204
Update MUI2 dep to RC2 #2622
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
Merged
Merged
Update MUI2 dep to RC2 #2622
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
55fd4f6
initial work to compile
ghzdude e7994aa
put out fires for now
ghzdude 86850f7
rework ender covers to fit new version
ghzdude 7f8d5db
pass in gui data instead of main panel
ghzdude 99f2bc3
fix issues in GTFluidSlot
ghzdude d1222e7
move multi fluid hatches to mui2
ghzdude a5fd9f3
add more panel method overloads
ghzdude 7ab5acf
add methods to GTFluidSlot
ghzdude f8dab58
fix ghost circuit slot tooltip
ghzdude 153904c
add formatting methods for amount and fluid name
ghzdude 08ab148
forgor to remove
ghzdude 2a7392c
remove old ui
ghzdude 1b429f6
improve GTGuis methods
ghzdude af7728e
fix issues with GTFluidSlot and cell behavior
ghzdude 459be0c
spotless
ghzdude 3c3f029
move FixedFluidSlotSH logic into GTFluidSyncHandler
ghzdude 372f033
try to implement locking fluid to GTFluidSyncHandler
ghzdude f53ef3e
locking works now
ghzdude 8104b03
simplify accessibility
ghzdude a2f7b93
no longer necessary
ghzdude cf0d22b
delete old mui code
ghzdude 2288ed8
mixin to mui2 to fix various issues
ghzdude 46c0a2a
more mixins, and actually apply them
ghzdude 20c653b
don't remap, fix tests (grr)
ghzdude 20f2490
fix dragging in certain conditions
ghzdude cc1ca09
update enderlink
ghzdude 0617a14
simplify mixin
ghzdude d9adc0c
improve ui and fix entry settings
ghzdude bab658e
use fallback theme
ghzdude e62670d
fix check
ghzdude 2326536
improve lock check
ghzdude c4b2c16
improve StateOverlay + mixin
ghzdude 96d49ee
properly fix unboxing issue
ghzdude 9b6cc8c
actually fix tooltip
ghzdude c80861e
improve draw slightly
ghzdude 0e23ea4
switch to proper method
ghzdude 17da4f7
properly fix draggable issue
ghzdude 481e6af
fix locking button and tooltip
ghzdude f590473
fix fluid display
ghzdude 1ebef64
allow draining from fluid slot
ghzdude 565f4c1
fix show amount for regulator and voiding cover
ghzdude 0fb21ad
set fluid amounts properly
ghzdude a31f28d
remove unused method
ghzdude 007c4f0
make adjust overlay easier to see
ghzdude 51dd868
spotless
ghzdude 57441f5
simplify fluid display for hatch
ghzdude 4398469
fix fluid locking
ghzdude ff78db4
null instead of empty string
ghzdude d4d70ac
mixin to stop jei "delete" tooltip
ghzdude 3cf345f
add shift click to set and close panel
ghzdude 2420dc3
spotless
ghzdude dd89b43
initialize locked fluid value
ghzdude 1293915
sike, no need to initialize
ghzdude ef437b8
sync scroll to client
ghzdude fa8380b
rename and fix scroll sync
ghzdude 03a2212
simplify absent compute
ghzdude 7ab32ca
fix scrolling while over jei elements
ghzdude 97405ab
add amount desc for fluid slots
ghzdude 4fa7eb4
allow insert for import hatches
ghzdude fa2a854
draw calls are client only
ghzdude db29fe1
pass in defaults correctly
ghzdude 0b532bf
properly fix lock flickering
ghzdude 69df09a
sync locked handler fill to client
ghzdude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| package gregtech.api.mui; | ||
|
|
||
| import com.cleanroommc.modularui.api.drawable.IDrawable; | ||
| import com.cleanroommc.modularui.widgets.ToggleButton; | ||
|
|
||
| import java.util.function.Consumer; | ||
|
|
||
| public interface StateOverlay { | ||
|
|
||
| StateOverlay overlay(boolean selected, IDrawable... overlay); | ||
|
|
||
| StateOverlay hoverOverlay(boolean selected, IDrawable... overlay); | ||
|
|
||
| static ToggleButton cast(ToggleButton button, Consumer<StateOverlay> function) { | ||
| function.accept((StateOverlay) button); | ||
| return button; | ||
| } | ||
|
|
||
| static ToggleButton create(Consumer<StateOverlay> function) { | ||
| return cast(new ToggleButton(), function); | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package gregtech.api.mui; | ||
|
|
||
| public interface UnboxFix { | ||
|
|
||
| void gregTech$useDefaultTextColor(boolean b); | ||
|
|
||
| void gregTech$useDefaultShadow(boolean b); | ||
| } |
150 changes: 0 additions & 150 deletions
150
src/main/java/gregtech/api/mui/sync/FixedFluidSlotSH.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.