feat: rename LobbySettingsMenu to OtherSettingsMenu and add nametag v…#12
Open
TheBjoRedCraft wants to merge 2 commits into
Open
feat: rename LobbySettingsMenu to OtherSettingsMenu and add nametag v…#12TheBjoRedCraft wants to merge 2 commits into
TheBjoRedCraft wants to merge 2 commits into
Conversation
…isibility setting
There was a problem hiding this comment.
Pull request overview
This PR renames the “Lobby” settings submenu to a more general “Other/Allgemein” menu and adds a new player setting to control nametag visibility, wiring it into the Paper GUI flow.
Changes:
- Renamed
LobbySettingsMenutoOtherSettingsMenuand updated registrations/navigation. - Added a new boolean setting key
SHOW_NAMETAGSand a GUI toggle item for it. - Bumped project version from
2.2.5to2.2.6.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| surf-settings-paper/src/main/kotlin/dev/slne/surf/settings/paper/PaperMain.kt | Updates menu registration/imports to the renamed submenu. |
| surf-settings-paper/src/main/kotlin/dev/slne/surf/settings/paper/menu/sub/OtherSettingsMenu.kt | Renames the submenu, adds nametag visibility toggle, and adjusts layout/text. |
| surf-settings-paper/src/main/kotlin/dev/slne/surf/settings/paper/menu/SettingsMenu.kt | Routes the main settings menu entry to open OtherSettingsMenu. |
| surf-settings-api/src/main/kotlin/dev/slne/surf/settings/api/setting/SettingKeys.kt | Introduces SHOW_NAMETAGS SettingKey. |
| gradle.properties | Version bump to 2.2.6. |
Comments suppressed due to low confidence (1)
surf-settings-paper/src/main/kotlin/dev/slne/surf/settings/paper/menu/sub/OtherSettingsMenu.kt:45
- OtherSettingsMenu initializes scroll/joinScroll and nametag/joinNametag by calling SurfSettingsApi.getSettingValue twice per key. Other menus (e.g., ChatSettingsMenu) fetch each setting once into a local variable and then set both the current and initial states from that value. Reusing the fetched value here reduces duplication and keeps the pattern consistent.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…isibility setting