HUD editor box-select, glass edge fixes, blocked server bypass #3
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
6b6t/AnarchyClient!3
Loading…
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Drag from empty space in the HUD editor to select multiple elements at once
and move them as a group. Single elements still snap to edges/center, groups
just clamp to the screen so they keep their spacing. Right-click on a
selected element resets the whole selection.
Also fixed the rounded corners looking chewed up: outlines had no
anti-aliasing, and glass panels without a captured blur (so anything drawn
in-game) fell back to tessellated geometry at a hardcoded opacity. Both go
through the SDF path now and respect the opacity slider. Toggle popup now
looks like the editor's hint chip.
Plus AddressCheckMixin, which makes Mojang's blocked server list allow
everything, so the client can connect to servers on the ban list.
Summary by CodeRabbit
New Features
UI Improvements
Bug Fixes
📝 Walkthrough
Walkthrough
The change adds an address-check bypass, centralizes theme-driven HUD and notification colors, adds SDF glass rendering, supports grouped HUD editing, and exempts registry synchronization packets from serialized-size checks.
Changes
Address access
src/main/java/net/blockhost/anarchyclient/mixin/AddressCheckMixin.java,src/main/resources/anarchyclient.mixins.jsonTheme and rendering
src/main/java/net/blockhost/anarchyclient/ui/GlassTheme.javaGlassThemeis public. Theme tokens and accessors are exposed. Notification synchronization is removed.src/main/java/net/blockhost/anarchyclient/module/impl/*.java,src/main/java/net/blockhost/anarchyclient/ui/ModulePanel.javaHudTextandGlassThemevalues. Module names consistently use the primary text color.src/main/java/net/blockhost/anarchyclient/rivet/AnarchyClientRenderPipelines.java,src/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.java,src/main/resources/assets/anarchyclient/shaders/core/sdf_outline.fshsrc/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.javaHUD editor
src/main/java/net/blockhost/anarchyclient/ui/HudLayout.java,src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.javaHudLayout.Element.intersectsdetects rectangle overlap. Tests cover enclosed, overlapping, edge-touching, and separate elements.src/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.java,src/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.javaPacket handling
src/main/java/net/blockhost/anarchyclient/module/impl/AntiExploitModule.java,src/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.javaEstimated code review effort: 4 (Complex) | ~60 minutes
Sequence Diagram(s)
Suggested reviewers:
alexprogrammerde🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment
@coderabbitai helpto get the list of available commands.Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
5da4aeb0-f3e5-42a9-800f-3d2131fdc729📥 Commits
Reviewing files that changed from the base of the PR and between
a165e5ba44and8a994f5ae7.⛔ Files ignored due to path filters (1)
assets/demo.pngis excluded by!**/*.png📒 Files selected for processing (22)
src/main/java/net/blockhost/anarchyclient/mixin/AddressCheckMixin.javasrc/main/java/net/blockhost/anarchyclient/module/impl/ActiveModulesHudModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/CoordinatesHudModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/HoleHudModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/HudElementModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/HudText.javasrc/main/java/net/blockhost/anarchyclient/module/impl/InventoryHudModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/ItemHudModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/MapHudModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/ModuleInfoHudModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/NametagsModule.javasrc/main/java/net/blockhost/anarchyclient/module/impl/RadarHudModule.javasrc/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.javasrc/main/java/net/blockhost/anarchyclient/rivet/AnarchyClientRenderPipelines.javasrc/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.javasrc/main/java/net/blockhost/anarchyclient/ui/GlassTheme.javasrc/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.javasrc/main/java/net/blockhost/anarchyclient/ui/HudLayout.javasrc/main/java/net/blockhost/anarchyclient/ui/ModulePanel.javasrc/main/resources/anarchyclient.mixins.jsonsrc/main/resources/assets/anarchyclient/shaders/core/sdf_outline.fshsrc/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java@ -304,6 +308,14 @@ public final class Blaze3DRenderer extends CheckedRenderer {protected void doOutlineRoundedRect(final float x, final float y, final float width, final float height,🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Preserve the requested outline width.
The SDF submission does not pass
outlineWidthto the render state or shader. Therefore, every width accepted by this branch uses the same SDF ring. A0.5For1.25Foutline cannot render at its requested width.Restrict this path to the fixed width that
sdf_outlinerenders, or add outline width to the SDF render contract.🤖 Prompt for AI Agents
✅ Addressed in commits
e1af7cctoec4dc4c@ -136,44 +174,139 @@ public final class HudEditorScreen extends Screen {public boolean mouseClicked(final MouseButtonEvent event, final boolean doubleClick) {🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Clamp the group with one shared translation.
Lines 240-242 clamp each element independently. When a selected element reaches an edge before another element, its position stops while the other element continues. The group spacing then changes.
Calculate the selected group bounds. Clamp the proposed group top-left once. Apply the resulting shared delta to every selected element. Add a regression test that drags two separated elements into each screen edge and verifies that their distance is unchanged.
🤖 Prompt for AI Agents
✅ Addressed in commits
e1af7cctoec4dc4cActionable comments posted: 1
🤖 Prompt for all review comments with AI agents
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
33d5263a-a292-427e-a7f4-2e5db76fe212📥 Commits
Reviewing files that changed from the base of the PR and between
8a994f5ae7andec4dc4c490.📒 Files selected for processing (4)
src/main/java/net/blockhost/anarchyclient/notification/ToggleNotifications.javasrc/main/java/net/blockhost/anarchyclient/rivet/Blaze3DRenderer.javasrc/main/java/net/blockhost/anarchyclient/ui/HudEditorScreen.javasrc/test/java/net/blockhost/anarchyclient/ui/HudEditorScreenTest.java🚧 Files skipped from review as they are similar to previous changes (3)
@ -35,4 +33,4 @@private static final List<Toast> TOASTS = new ArrayList<>();private static boolean enabled = true;private static Mode mode = Mode.POPUP;🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Apply the toast fade to the panel and outline.
The toast
alphais used only forGlassTheme.TEXT.GlassPanelCommandreceives the unfadedGlassTheme.glass(), and Line 146 uses the fixedOUTLINE. During fade-in and fade-out, the panel and border remain visible while the text fades.Pass
fade(GlassTheme.glass(), alpha)toGlassPanelCommandandfade(OUTLINE, alpha)tooutlineRoundedRect.Proposed fix
Also applies to: 143-148
🤖 Prompt for AI Agents
✅ Addressed in commit
7c411c6🧹 Nitpick comments (1)
🤖 Prompt for all review comments with AI agents
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
562ea8c2-40df-48d0-8f46-cde7ed8a3cef📥 Commits
Reviewing files that changed from the base of the PR and between
7c411c6874andb1d518651e.📒 Files selected for processing (2)
src/main/java/net/blockhost/anarchyclient/module/impl/AntiExploitModule.javasrc/test/java/net/blockhost/anarchyclient/module/impl/LiquidBouncePlanModulesTest.java