Skip to content

Comments

Move Invites into Members sub-section row and add layout for extra buttons#164

Merged
plan3t merged 2 commits intomainfrom
codex/fix-ui-scaling-for-factions-mod-abuu99
Feb 17, 2026
Merged

Move Invites into Members sub-section row and add layout for extra buttons#164
plan3t merged 2 commits intomainfrom
codex/fix-ui-scaling-for-factions-mod-abuu99

Conversation

@plan3t
Copy link
Owner

@plan3t plan3t commented Feb 17, 2026

Motivation

  • The invites UI was a top-level tab but should live inside the Members page beneath member controls so players can respond to invites near member settings.
  • The UI must allow placing additional sub-buttons beside the new Invites button without changing the main tab model.

Description

  • Removed the top-level INVITES tab from FactionTab and added a compact label API via getCompactLabel so the main tab row stays concise (src/main/java/com/mcprotector/client/gui/FactionTab.java).
  • Added a MemberSection enum and two widgets membersSectionButton and invitesSectionButton, plus helpers layoutMemberSectionButtons and updateMemberSectionButtonState, to create a Members sub-section button row that can host more buttons (src/main/java/com/mcprotector/client/gui/FactionMainScreen.java).
  • Moved invite rendering into the Members flow by making renderMembers switch to renderInvites when the sub-section is INVITES, and updated visibility via updateVisibility / updateDynamicVisibility so invite controls only show when Members -> Invites is active.
  • Adjusted content layout calculations (getContentStart) to reserve vertical space for the new sub-section row and added scaling helpers panelX / scaledWidth and layout recalculation (recalculateLayout) to keep control sizes responsive.
  • Performed related UI refinements: converted many button/field bounds to scaled sizes, tuned tab/button sizing constants, and adjusted the map renderer cell sizing/height heuristics (src/main/java/com/mcprotector/client/gui/FactionMapRenderer.java).

Testing

  • Ran ./gradlew compileJava and the project compiled successfully (BUILD SUCCESSFUL).

Codex Task

@plan3t plan3t merged commit 5d24bb9 into main Feb 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant