LiquidBounce icon indicating copy to clipboard operation
LiquidBounce copied to clipboard

feat: armor and inv as HUD components

Open MukjepScarlet opened this issue 1 year ago • 3 comments

image

resolves #2252

Sadly it can't support enchantment effects now.

MukjepScarlet avatar Oct 14 '24 13:10 MukjepScarlet

You could display the crafting slots too when MoreCarry is enabled.

ccetl avatar Oct 16 '24 13:10 ccetl

OK, about an hour later.

MukjepScarlet avatar Oct 16 '24 13:10 MukjepScarlet

image

MukjepScarlet avatar Oct 16 '24 14:10 MukjepScarlet

There are 4 existing problems:

  1. the items are abnormally darken
  2. the enchantment mask pictures are from a different repository
  3. the mask pictures are not transparent, so I have to set the opacity and brightness with CSS
  4. It sometimes doesn't work in game, disappear and appear unexpectedly, but normal in dev (Chrome latest)

MukjepScarlet avatar Oct 27 '24 09:10 MukjepScarlet

image Replaced with CSS effect.

MukjepScarlet avatar Oct 29 '24 12:10 MukjepScarlet

PR on hold and waiting for completion of https://github.com/CCBlueX/LiquidBounce/pull/3884

1zun4 avatar Nov 05 '24 16:11 1zun4

I also planned to add an EnderChestView as a component, it could be easy.

MukjepScarlet avatar Dec 17 '24 08:12 MukjepScarlet

image Replaced with CSS effect.

Good work 👍🏻

superblaubeere27 avatar Dec 17 '24 19:12 superblaubeere27

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.

SenkJu avatar Mar 02 '25 18:03 SenkJu

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.

1zun4 avatar Mar 02 '25 18:03 1zun4

How about the EnderChest? That might be useful to some survival games and bedwars.

MukjepScarlet avatar Mar 03 '25 03:03 MukjepScarlet