feat: armor and inv as HUD components
resolves #2252
Sadly it can't support enchantment effects now.
You could display the crafting slots too when MoreCarry is enabled.
OK, about an hour later.
There are 4 existing problems:
- the items are abnormally darken
- the enchantment mask pictures are from a different repository
- the mask pictures are not transparent, so I have to set the opacity and brightness with CSS
- It sometimes doesn't work in game, disappear and appear unexpectedly, but normal in dev (Chrome latest)
Replaced with CSS effect.
PR on hold and waiting for completion of https://github.com/CCBlueX/LiquidBounce/pull/3884
I also planned to add an EnderChestView as a component, it could be easy.
Replaced with CSS effect.
Good work 👍🏻
The playerInventory being called currently causes 20 re-renders for every displayed item stack. This is something @1zun4 should fix on the client's side.
I will look into this tomorrow. I will probably add an endpoint to get the current inventory, while only sending an event when the inventory changes. That should do the trick.
How about the EnderChest? That might be useful to some survival games and bedwars.
Replaced with CSS effect.