-
Notifications
You must be signed in to change notification settings - Fork 204
Port Multiblocks to MUI2 #2672
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
Port Multiblocks to MUI2 #2672
Changes from all commits
Commits
Show all changes
264 commits
Select commit
Hold shift + click to select a range
83f55eb
fix args properly
ghzdude 42c4f33
update large boiler
ghzdude 8193f8c
create ui factory at build instead of constructor
ghzdude c41fe44
update large combustion
ghzdude 996acc2
pass in builder instead of list
ghzdude 14fe244
improve blinking logo a bit
ghzdude de9c22b
switch to builder instead of list for warning/error
ghzdude c87f253
add/improve javadocs
ghzdude 0d78a12
remove reset and make internal methods private
ghzdude fcc0e74
sync fuel needed and rotor stats
ghzdude f1617a7
rename and reorganize KeyUtil methods
ghzdude 23dba36
always return cache for client and default for server
ghzdude 65e5ee4
make display text dynamically updated
ghzdude b1b0b26
comments, use margin instead of padding, align
ghzdude c1c11bc
make and use builder methods instead of anonynous classes
ghzdude 7c86910
move builder from MultiblockDisplayTextPort into MultiblockUIFactory
ghzdude c22b0dc
make builder static again
ghzdude 8803336
simplify compound consumer
ghzdude 94d0951
fix water for boiler
ghzdude 53fd162
fix lubricant for LCE
ghzdude daa1fc0
fix large turbine
ghzdude d54cc48
fix maint and obstruction
ghzdude 8661985
improve int array sync value
ghzdude 4a03e9d
improve compound consumers
ghzdude 0a494b8
start work on fixing display
ghzdude b24f559
fix display tooltips
ghzdude b68b68a
use dynamic keys again
ghzdude 1c5bdc4
simplify display checking
ghzdude 2742b45
add tooltip for no flex
ghzdude 1848e1c
improve value syncing greatly
ghzdude aa560fe
fix LCE fuel name + spotless
ghzdude e7aa34f
remove unused datacode
ghzdude 340aac0
no need to sync temp
ghzdude 79e0da3
rework builder to use IDrawables
ghzdude fbc08cf
simplify ifs
ghzdude ba0001a
move tooltip setting to right method
ghzdude 061e716
fix packages
ghzdude 262d37d
make fluid drill lang colored
ghzdude 187575f
port Fusion Reactor + textures
ghzdude 5aafea0
sync harder
ghzdude 80447a0
improve EBF `formStructure()` a bit
ghzdude cd1b3fe
remove unused datacode
ghzdude 9bd0ebd
create new class for display that behaves similar to AdvancedTextWidget
ghzdude a6e74a7
add new case for status
ghzdude 806f859
improve drawing a bit
ghzdude 3e74e8a
add change listener
ghzdude 8eb88aa
fix rebase
ghzdude 6a9cd2e
only construct key array if lengths are different
ghzdude b00e034
try to utilize new key methods
ghzdude f66276a
improve key util methods some more
ghzdude 7f480da
simplify status keys
ghzdude be3c08c
forgor flow
ghzdude 85ca3e9
port to rich text
ghzdude d80871d
fix npe
ghzdude ca60a76
fix indicator tooltips
ghzdude 9ff112c
fix energy container line
ghzdude 69b6f10
port pyrolyse and multismelter
ghzdude 58e97fb
fix potential npe when fixing args
ghzdude b397c4c
add mixin to set cache in constructor
ghzdude a1af7cc
no longer need to call this
ghzdude 31f4468
cleanup
ghzdude d9cf1dd
make adding status keys actually translate
ghzdude 223a29d
port HPCA, research station, cracking unit
ghzdude c03d5a9
port processing array
ghzdude 65544c9
go back to drawable list
ghzdude ab3ed15
update note
ghzdude 144fefe
merge text related mixins under one class
ghzdude ac83cd2
create better impl for keys with tooltips
ghzdude 90c5257
implement key serialization
ghzdude 8bfe42c
remove note
ghzdude fc84db6
remove most dynamic keys
ghzdude bfa5084
fix npe when serializing null arrays
ghzdude 3afcb00
no need to sync energy container
ghzdude 6baba7f
add helper method for array access
ghzdude cb0a3a2
address todo for dynamic color tooltip
ghzdude 266d2eb
this class is no longer necessary
ghzdude 7a10656
add method overload
ghzdude 854c2f8
simplify DrawableSerializer
ghzdude 00e95c4
add method for additional children to the screen
ghzdude b4803a1
remove custom screen
ghzdude 988e502
remove unused method
ghzdude 25a60d8
Move the PSS to the new MUI2 display text methods
Zorbatron 2c9d5f9
simplify progress bars a bit
ghzdude 52da701
add extra space to lines
ghzdude caf48e9
Pass guiData to `MultiblockUIFactory#createFlexButton`
Zorbatron 85b46d4
move trifunction back to bifunction and remove panel parameter
ghzdude 11b3f62
fix rebase
ghzdude 7ee7ca5
fix formatting
ghzdude 51db1e7
add note
ghzdude 9d51988
fix prev duration being zero
ghzdude c77ab0e
add string with formatting and number method to KeyUtil
ghzdude e96dbdd
spotless
ghzdude d51c5db
cleanup and new voltage key methods
ghzdude a41ee0f
add status tooltip for fusion reactor
ghzdude 2d23857
fix format number with precision
ghzdude 4077310
add runnable to update structure formed for error/warning builders
ghzdude ed38cb8
more cleanup 2.0
ghzdude 603b65d
simplify item bus grid construction
ghzdude a359a10
actually mark dirty on change
ghzdude d7536e2
add hpca grid to screen
ghzdude 390a15d
Mostly working multi miner port
Zorbatron 577153b
fix mine pos for large miner
ghzdude 1cbe50e
Finish off the large miner.
Zorbatron 27ace53
Remove MUI0 methods from FuelMultiblockController, MetaTileEntityCrac…
Zorbatron bdc92b3
spotless
Zorbatron a0bd838
Move RecipeMapSteamMultiblockController to the MUI2 methods.
Zorbatron 2f1da36
AT to MUI2
Zorbatron b4990cd
Cleanroom mui2-ified + move the order of some text around to make mor…
Zorbatron ccaa333
data bank
Zorbatron 308a6c7
network switch
Zorbatron 10ace8d
remove old mui0 methods from HPCA
Zorbatron 8708aa9
Fluid Drill multiblock
Zorbatron c45549e
Mark handleDisplayClick as deprecated
Zorbatron c0be81a
Central Monitor kinda ish not really
Zorbatron 8492eb3
spotless
Zorbatron f7b61c5
move `getFluidIKey` to KeyUtil and rename
ghzdude d727985
use number method and add note
ghzdude 6b8fbb3
Move the status line to be more consistent with other multiblocks and…
Zorbatron 728c2dc
fix BigIntegerSyncValue
ghzdude 947bac6
add Operations
ghzdude d69b9aa
move classes/interfaces out of MultiblockUIFactory
ghzdude 0738983
fix hpca componant grid size
ghzdude 6573b38
HPCA component widget tooltips and remove old MUI0 methods
Zorbatron 1d4e00e
fully implement HPCA's tooltips
ghzdude 377203d
improve tooltip a bit more
ghzdude 7858b83
Allow `GTFluidSyncHandler`s to control showing the amount in the tool…
Zorbatron a3ff38a
`GTFluidSlot`s can now render the fluid as taking up a percentage of …
Zorbatron d645602
Convert the multiblock tank to MUI2
Zorbatron 81b266a
spotless
Zorbatron de02b2b
Rework MUI2 Multi Syncing (#2734)
ghzdude f9e6995
spotless pls
ghzdude 7bc76c9
move key manager and sync handler to internal classes
ghzdude ee7ae8f
add ScrollableTextWidget
ghzdude 4c4c4c4
Add machine mode to the GUI of MultiMapControllers - MUI2 (#2713)
Zorbatron bc7a3f1
fix getting hovered element
ghzdude cbae953
fix background and simplify
ghzdude 9b9fa3b
add method for syncing objects
ghzdude 336ad3a
fix issues with ScrollableTextWidget
ghzdude f529705
add overload for syncObject
ghzdude d13e666
rework adding screen widgets
ghzdude 4c162c0
add methods for syncing collections
ghzdude 6a507d8
add generic return for collection
ghzdude e4905c9
fix fusion reactor tooltip(?)
ghzdude f95cf78
add javadocs/comments + method rename
ghzdude 7607e6d
add screen widgets after display
ghzdude 8a95a68
make steam multis use bronze theme
ghzdude 734fe6c
mark item and fluid outputs as notnull
ghzdude ef385d4
make new list for syncing
ghzdude 069f788
add supplier methods to UISyncer to avoid potential client NPEs
ghzdude 7071eee
add javadoc
ghzdude b21914b
add extra fluid methods
ghzdude 063307c
nvm don't make copy
ghzdude 9d07fb7
Display recipe outputs in multiblocks - MUI2 (#2714)
Zorbatron 8e346b6
simplify internal syncer
ghzdude 4b7a5b3
move IconAcessor out of mixin
ghzdude 39e65ba
fix javadoc comments
ghzdude 08a3933
fix getting the hovered element when scrolling
ghzdude 548f440
make FluidStackHashStrategy mimic ItemStackHashStrategy better
ghzdude 7e23b44
simplify hash builder names
ghzdude 40827a1
optimize copy for new map keys
ghzdude c0425e8
utilize new empty method
ghzdude 87a0f90
fix tests
ghzdude 69a6a6d
i need to replace this too
ghzdude d9e2595
add builder overload for sync
ghzdude e71d50e
add display to theme
ghzdude d051496
fix small issue with GTFluidSyncHandler
ghzdude f9006bb
move build ui method down closer to other ui methods
ghzdude 6835465
rebuild instead of mark dirty
ghzdude 7fbb12f
remove unnecessary KeyUtil methods
ghzdude c195292
address lang todo
ghzdude 36253f5
delete old ui code
ghzdude 5126579
mixin to fix backgrounds and overlays for cycle widgets
ghzdude 7155d6d
convert flex and void into overlays
ghzdude bb5f7a5
improve getting parallel recipe
ghzdude 7898f35
make power into overlay
ghzdude 9737223
rework gear texture + correct size
ghzdude 141355a
fix bars for fusion reactor
ghzdude 04b9506
sync coil tier for pyrolyse
ghzdude f8386b7
actually use the tank capacity for LCE
ghzdude 5fdf7d0
update panel height on screen height change
ghzdude d0b7582
fix format error for fusion energy info
ghzdude bcdf203
with four hours of sleep, i fixed fusion tooltips
ghzdude edfcecb
show invalid structure on error indicator
ghzdude debdace
add color to theme
ghzdude a680fc4
add themed fluid slot
ghzdude adbc94b
make more textures un-theme-able
ghzdude 50f65e7
make GTObjectDrawable prefer slot from theme
ghzdude 2a229d7
rework ProgressBarMultiblock interface and bar registration
ghzdude 721892e
remove unused default methods
ghzdude 5bddfae
actually theme object drawawble + misc fixes
ghzdude 491e872
show fluid amount when no fluid
ghzdude d8e9c6c
add researching line
ghzdude b1d77a0
try caching data about recipes 2.0
ghzdude c1012d7
improve research line
ghzdude 5e2d17b
add coolant needed for hpca
ghzdude 245397c
rename paramater
ghzdude 6dde3cd
add dynamo full to warning
ghzdude 2b57c9a
add default impl for `getTileName()` to use mte's `getMetaFullName()`…
ghzdude b652867
add debug names to several widgets
ghzdude e31e018
rename key method and simplify slightly
ghzdude bc41c27
sync height, width, and drain energy
ghzdude a680c70
fix cleanroom sync
ghzdude b8e4b92
fix drain energy npe for low power
ghzdude a643a5b
add check for if working enabled for sound
ghzdude 7bb38ef
switch to anonymous class for dynamic textures
ghzdude 75bdbbd
use ticks when max duration is small enough
ghzdude 3caffd5
trim recipe output
ghzdude a484e58
make get syncer package-private
ghzdude 22ec7a8
fix duplicate warnings for FuelMultiblockController
ghzdude 48bae65
move maint and muffler lines out of MultiblockUIFactory
ghzdude 3fd07f1
make full maint cause error
ghzdude 6c0af2c
make full maint cause error
ghzdude 1dba284
Operations are no longer checked and registered
ghzdude ea30e65
add representative item stacks for maintanence lines
ghzdude 5b00ad8
addKey -> addOperation
ghzdude 63e9162
make IEquals notnull
ghzdude 98532af
clarify todo
ghzdude 866b619
fix warning icon in fuel multiblocks
ghzdude e8ee7a3
improve flex button javadoc
ghzdude 528cdbd
fix small oopsie
ghzdude c5cf9fd
add value to TemplateBarBuilder
ghzdude 9884981
replace reference to deleted method
ghzdude b0320bd
fix research line
ghzdude 5cb8e65
spotless
ghzdude 0d9516d
only sync to client if front face free changes
ghzdude bbc4c30
address todo
ghzdude 5dce8a1
do lang TODO
Zorbatron cd44002
Do the createPowerButton TODO
Zorbatron 1648489
Do 'show % sign' TODO
Zorbatron dabcb3f
Wrong text color in addProgressLine
Zorbatron d8f9845
Fix empty text in the multiblock drilling rig as the drilled fluid wa…
Zorbatron e694005
Do 'working dynamic color substitutions into IKey.lang' TODO
Zorbatron 58a6e40
Remove item and fluid syncers from UISyncer and use syncObject instead
Zorbatron 8ccec39
Undo the removal of the UISyncer methods but delegate to syncObject i…
Zorbatron f4a52e3
Use `KeyUtil.fluid()` in the tooltip of `GTFluidSlot`s instead of `ge…
Zorbatron e5f5e5b
Fix input hatches having locking behavior (out of scope ig, but I'm l…
Zorbatron 884cf32
Don't use `getLocalizedName()` pt2
Zorbatron 6d3236c
hasFluid doesn't work with locked fluids
Zorbatron 02565a6
Don't register `GTFluidSlot`s as JEI targets if it's not phantom or l…
Zorbatron e2f6922
Fix NPE I caused and clean up code
Zorbatron b95a817
Fix locked fluid not being synced to client on load
Zorbatron 10c9cf2
Fix large combustion engines saying "Running Perfectly" when the dyna…
Zorbatron ff511cb
Remove old MUI0 code from the fusion reactor class
Zorbatron feae98e
Remove old multiblock display text manager impl
Zorbatron 4a52f9e
Moce TimedProgressSupplier out of ProgressWidget (MUI0)
Zorbatron 40066c3
Remove the MUI0 `getComponentIcon` of `IHPCAComponentHatch` instead o…
Zorbatron bc41372
spotless
Zorbatron adfd9dc
Add supplier version of `addLowPowerLine` for the multiblock fluid drill
Zorbatron f30f0cb
Suppress unchecked cast on `PatternMatchContext#getOrDefault`
Zorbatron cbc1e2b
simplify hpca temperature lang
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
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
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.