This repository was archived by the owner on Aug 17, 2026. It is now read-only.
Repository navigation
US-53.1: UI overhaul settings - #124
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Overhauls the Settings UI in the shared Unity package: replaces the prior tabbed layout with a sidebar-driven modal (Display + Sound sections), introduces a substantially expanded teal/gold themed stylesheet, and adds new serializable settings models (SettingsData, RefreshRateData) to back the menu.
Changes:
- Rewrites
SettingsMenu.uxmlto a sidebar + content-panel layout with new Sound section (volume/music/SFX/mute) and Display section (resolution dropdown, fullscreen toggle). - Replaces
SettingsMenu.usscontents with a themed design-system (CSS variables, nav buttons, sliders, dividers). - Adds new
SettingsDataandRefreshRateDatamodel classes (with.metafiles) underRuntime/Models/Settings/.
Reviewed changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Runtime/UI/SettingsMenu/Themes/SettingsMenu.uxml | New sidebar layout with Display/Sound sections; introduces custom controls (CustomDropdown, GoldSlider). |
| Runtime/UI/SettingsMenu/Themes/SettingsMenu.uss | Full restyle with teal/gold theme, CSS variables, and new component classes. |
| Runtime/Models/Settings/SettingsData.cs(+.meta) | New serializable container for volume/resolution/fullscreen/mute settings. |
| Runtime/Models/Settings/RefreshRateData.cs(+.meta) | New serializable wrapper around Unity's RefreshRate. |
| Runtime/Models/Settings.meta | Folder meta for the new Settings model subfolder. |
Files not reviewed (3)
- Runtime/Models/Settings.meta: Language not supported
- Runtime/Models/Settings/RefreshRateData.cs.meta: Language not supported
- Runtime/Models/Settings/SettingsData.cs.meta: Language not supported
Comments suppressed due to low confidence (2)
Runtime/UI/SettingsMenu/Themes/SettingsMenu.uxml:58
- The custom element
<ftr:CustomDropdown>(namespaceFeedTheRealm.UI.Common) is referenced here, but noCustomDropdowntype exists anywhere in this shared package. Likewise<GoldSlider>(lines 52/55/58) is used without a namespace prefix and is not defined in the package. Since this UXML ships as part ofcom.feed_the_realm.shared, consuming projects that don't happen to also define these exact types/namespaces will fail to instantiate the Settings menu. Either move theCustomDropdown/GoldSlidertypes into this package, or replace these usages with built-inui:DropdownField/ui:Sliderelements.
<ftr:CustomDropdown name="ResolutionSelect" label="Resolution" class="custom-dropdown"/>
</ui:VisualElement>
<ui:VisualElement class="setting-row">
<ui:Toggle label="Fullscreen" toggle-on-label-click="true" value="true" name="FullscreenToggle" class="setting-toggle"/>
</ui:VisualElement>
</ui:ScrollView>
<!-- SOUND CONTENT (hidden by default) -->
<ui:ScrollView name="SoundContent" class="content-section content-section--hidden">
<ui:Label text="Sound" class="section-title"/>
<ui:VisualElement class="section-divider"/>
<ui:VisualElement class="setting-row">
<GoldSlider label="Global Volume" name="VolumeSlider" low-value="0" high-value="1" value="1" class="setting-slider"/>
</ui:VisualElement>
<ui:VisualElement class="setting-row">
<GoldSlider label="Music Volume" name="MusicVolumeSlider" low-value="0" high-value="1" value="1" class="setting-slider"/>
</ui:VisualElement>
<ui:VisualElement class="setting-row">
<GoldSlider label="SFX Volume" name="SFXVolumeSlider" low-value="0" high-value="1" value="1" class="setting-slider"/>
Runtime/UI/SettingsMenu/Themes/SettingsMenu.uxml:40
- The dropdown is given
class="custom-dropdown", but the accompanyingSettingsMenu.ussdefines styles for.setting-dropdown(lines 206–228), not.custom-dropdown. As a result, none of the dropdown styling defined in this stylesheet will apply to the resolution selector. Either rename the class on this element tosetting-dropdown(matching the othersetting-*classes used in this UXML), or rename the USS rules to.custom-dropdown.
<ftr:CustomDropdown name="ResolutionSelect" label="Resolution" class="custom-dropdown"/>
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ent, given this one is only used on client
nikorsanchez
marked this pull request as draft
May 19, 2026 05:15
nikorsanchez
marked this pull request as ready for review
May 20, 2026 01:20
…error detail and its status to be handled on service call.
agustinbarbalase
approved these changes
May 20, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Added Data types for resolutions menus and deleted from shared the settings menu given each client will have the needed one.
Related PR: