Skip to content

Fix the script editor scrollbar being drawn over completions - #102

Merged
rubensworks merged 2 commits into
master-26-ltsfrom
fix/editor-popup-layer
Nov 1, 2026
Merged

rubensworks merged 2 commits into
master-26-ltsfrom
fix/editor-popup-layer

Conversation

@rubensworks

Copy link
Copy Markdown
Member

On 26.x, the editor's scrollbar handle and its syntax error mark were drawn over the completion popup. This came in with the 26 port in #100.

On 1.21 the completion and signature popups were lifted above everything with a z-offset. 26.x GUI rendering has no depth anymore, so draw order alone decides what's on top. The editor drew its scrollbar after the popups, and the container slots are drawn after the editor. So the scrollbar always covered the popup, and a popup that grows over the inventory would be covered by item icons.

The popups are now drawn by a separate WidgetTextArea#extractPopups. The terminal screen calls it last, on a new stratum: after the container contents (slots included), and after the widgets in focus mode. Tooltips and the carried item still go above them, as on 1.21.

Validation:

  • build and runGameTestServer (28/28) pass on 26.1.2.
  • In-game on 26.1.2 and 26.3, with the scrollbar handle and the error mark behind an open completion popup: they no longer show through the popup.

This also needs to go into master-26 with the next upmerge. The same change applies cleanly there; I tested it on 26.3 before moving it to this branch.


Generated by Claude Code

On 26.x, GUI elements no longer have depth, so the scrollbar, and the
slots below the editor, were drawn over the completions and signature
popups. The screen now draws these popups last, above everything else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9
@coveralls

coveralls commented Nov 1, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 41305190378

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage decreased (-0.09%) to 46.173%

Details

  • Coverage decreased (-0.09%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 311 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

311 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
org/cyclops/integratedscripting/client/gui/container/ContainerScreenTerminalScripting.java 172 0.0%
org/cyclops/integratedscripting/client/gui/component/input/WidgetTextArea.java 139 0.0%

Coverage Stats

Coverage Status
Relevant Lines: 4212
Covered Lines: 2110
Line Coverage: 50.09%
Relevant Branches: 1967
Covered Branches: 743
Branch Coverage: 37.77%
Branches in Coverage %: Yes
Coverage Strength: 19.92 hits per line

💛 - Coveralls

@rubensworks
rubensworks merged commit c550708 into master-26-lts Nov 1, 2026
17 checks passed
@rubensworks
rubensworks deleted the fix/editor-popup-layer branch November 1, 2026 12:10
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.

3 participants