Skip to content

fix: keep chat position vanilla unless changed manually - #38

Draft
dsnsgithub wants to merge 3 commits into
mainfrom
cursor/chat-vanilla-position-c6b4
Draft

dsnsgithub wants to merge 3 commits into
mainfrom
cursor/chat-vanilla-position-c6b4

Conversation

@dsnsgithub

@dsnsgithub dsnsgithub commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Chat no longer leaves the vanilla anchor unless Custom Position is turned on.

Vanilla places chat with a fixed inset in GUI-scaled pixels: GameGui shifts by (0, scaledHeight - 48), then ChatGui shifts by (2, 20) and applies the chat scale option. A saved screen percentage cannot match that inset when the GUI scale or resolution changes. With the toggle off, chat is drawn inside that vanilla matrix, so the anchor stays exact at every scale and resolution.

Background, text color and alpha, shadow, line spacing, scrollbar color, chat history, the new-message slide, and keeping messages after disconnect still apply in that mode. The chat box is not draggable in the HUD editor until Custom Position is enabled. Existing saved coordinates are kept and used only after the toggle is turned on.

This branch is merged with latest main, including the io.github.dolphinclient package rename.

Test plan

  • ./gradlew :1.8.9:compileJava
  • ./gradlew :common:test (including ChatPositionTest)
  • In game, with Custom Position off, change GUI scale and window size and confirm chat stays on the vanilla anchor while background transparency still applies
  • Turn Custom Position on and confirm the chat can be moved in the HUD editor
Open in Web Open in Cursor 

cursoragent and others added 3 commits November 2, 2026 01:57
The chat HUD replaced vanilla rendering with a saved screen percentage, so the box drifted when the GUI scale or resolution changed. Custom placement is now opt-in. Background, transparency, spacing, and the other chat options still draw inside vanilla's own transform.

Co-authored-by: seungd <seungd@uci.edu>
…osition-c6b4

Co-authored-by: seungd <seungd@uci.edu>

# Conflicts:
#	common/src/main/java/io/github/dolphinclient/modules/hud/gui/hud/ChatPosition.java
#	versions/1.8.9/src/main/java/io/github/dolphinclient/mixin/ChatHudMixin.java
#	versions/1.8.9/src/main/java/io/github/dolphinclient/modules/hud/gui/hud/ChatHud.java
The license check rejects the old fork header on files added after the namespace split.

Co-authored-by: seungd <seungd@uci.edu>
@dsnsgithub dsnsgithub changed the title Keep chat on the vanilla anchor unless custom position is enabled fix: keep chat position vanilla unless changed manually Nov 2, 2026
@dsnsgithub
dsnsgithub marked this pull request as draft November 2, 2026 02:18
@dsnsgithub

dsnsgithub commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner Author

vanilla text rendering breaks due to this change, fix soon ™️

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.

2 participants