7 Commits

Author SHA1 Message Date
Aaron Suen
e51d9a5a70 Rename textures again to not collide
This allows a texturepack to support both the
original hotbar (for release edition) and the new
hotbar (for the alpha edition) at the same time,
while giving us time to test out the alpha version
and roll out the new release when it's ready, and
without forcing TP authors to trade off support.

Names are also lexically consistent and more
consistent with internal names.
2020-09-04 20:50:29 -04:00
Aaron Suen
76176ea648 Rename selection reticle back 2020-09-04 20:30:44 -04:00
Aaron Suen
b7d6015906 Add back in legacy bar as background
This allows monolithic hotbar drawing, and
variations by position, and brings back partial
support for existing TPs.
2020-09-04 20:16:10 -04:00
Aaron Suen
d7f231f083 Retire redunant textures 2020-09-04 20:03:36 -04:00
Aaron Suen
5059f9b3c3 Alternative hotbar approach
We still change the background, but only depend
on the state of the slot, not on wield index.  Go
back to a traditional slot selection ring for the
selection index.

Slot backgrounds are a little bolder normally, and
when broken, especially bold around the broken
areas.

The selection ring itself is broken so that the
gaps in broken slots are still "open" to the outside
when the selection ring is in place.
2020-09-04 19:59:12 -04:00
Aaron Suen
1c0a9f1ade Add a lagless hotbar cursor
- Highlight behind item may lag behind the
  new cursor, but the new cursor will show
  which slot you're trying to select when
  scrolling rapidly.
- Also fix the margins/centering for hotbar
  image.

Will have to see how this plays on the actual
MP server, where there's notable RTT lag.
2020-09-04 13:55:13 -04:00
Aaron Suen
ca20aa5584 Refac HUD into separate files 2020-09-04 13:35:38 -04:00