Skip to content

draw the offhand slot beside the hotbar - #760

Merged
Purdze merged 3 commits into
masterfrom
offhand-hud
Oct 25, 2026
Merged

Purdze merged 3 commits into
masterfrom
offhand-hud

Conversation

@Purdze

@Purdze Purdze commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Performance improvement
  • Chore / tooling
  • Documentation

summary

the hud now draws the offhand slot (hotbar_offhand_left/right) with its item whenever the offhand isn't empty, on the offhand arm's side of the hotbar. main_hand_right moves from the attack indicator state to build_hud, since the attack indicator and the offhand slot both follow it. first of three offhand prs (then first-person offhand rendering, then two-hand use).

reference

net/minecraft/client/gui/Hud.java (extractItemHotbar)

testing

just client-pre-pr. new tests/ingame/ui/offhand_hud.toml swaps a totem into the offhand and screenshots the slot.

@github-actions github-actions Bot added the enhancement New feature or request label Oct 24, 2026
@Purdze Purdze mentioned this pull request Oct 24, 2026
1 of 7 tasks
@Purdze
Purdze added this pull request to stack #762 October 24, 2026 10:14
@github-actions github-actions Bot added the merge conflict Conflicts with the base branch and needs a merge label Oct 25, 2026
# Conflicts:
#	pomme-client/src/harness/exec.rs
#	pomme-client/src/harness/protocol.rs
#	pomme-client/src/harness/script.rs
#	pomme-client/src/ui/menu/mod.rs
#	pomme-client/src/ui/menu/options.rs
#	tests/ingame/README.md
@github-actions github-actions Bot removed the merge conflict Conflicts with the base branch and needs a merge label Oct 25, 2026
@Purdze
Purdze merged commit 9e2ef08 into master Oct 25, 2026
15 checks passed
@Purdze
Purdze deleted the offhand-hud branch October 25, 2026 09:08
@Purdze Purdze mentioned this pull request Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant