Skip to content

Keep UI subtrees contiguous in z-order - #54

Merged
Milky2018 merged 2 commits into
moonbit-community:mainfrom
kkkiio:codex/fix-ui-subtree-stacking
Jul 27, 2026
Merged

Keep UI subtrees contiguous in z-order#54
Milky2018 merged 2 commits into
moonbit-community:mainfrom
kkkiio:codex/fix-ui-subtree-stacking

Conversation

@kkkiio

@kkkiio kkkiio commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • order ZIndex among siblings while keeping ordinary descendant subtrees contiguous
  • treat explicit GlobalZIndex nodes as independent global roots
  • use the same final UI stack for rendering, focus traversal, and pointer hit-testing

This keeps a pause-menu subtree above an existing HUD subtree while preserving an explicit global escape point for overlays.

Fixes #53

Checks

  • moon test selene-core/src/ui/render_wbtest.mbt --target js
  • moon test selene-core/src/ui/interaction_wbtest.mbt --target js
  • moon test selene-core/src/ui --target js
  • moon test selene-core/src/ui --target native
  • moon check --target all --deny-warn

@kkkiio
kkkiio marked this pull request as ready for review July 26, 2026 04:20
@Milky2018
Milky2018 merged commit ca68f3a into moonbit-community:main Jul 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pause menu descendants can render behind and receive input below HUD elements

2 participants