<?xml version="1.0" encoding="UTF-8"?>
<ui:UXML xmlns:ui="http://openwarz.org/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openwarz.org/ui ui.xsd">
<ui:VisualElement name="settings-panel" class="settings-panel" style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000;">
<!-- Panel Title -->
<ui:Label text="Settings" name="settings-title" class="settings-title" style="font-size: 24sp; font-weight: bold; color: #ffffff; margin-bottom: 10sp; text-align: center;" />
<!-- Scrollable Content -->
<ui:ScrollView name="settings-scrollview" class="settings-scrollview" style="flex-grow: 1; overflow-y: auto; overflow-x: hidden;">
<!-- Main Settings Container -->
<ui:VisualElement name="settings-container" class="settings-container" style="padding: 20sp;">
<!-- General Settings Section -->
<ui:Label text="General" name="general-section-title" class="section-title" style="font-size: 18sp; font-weight: bold; margin-bottom: 5sp; color: #ffffff;" />
<ui:Label text="Display:" name="display-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:DropdownField name="screen-selection" class="option-select" style="width: 95%; margin-bottom: 3sp;" options="[Screen 1, Screen 2, Auto]" />
<ui:Label text="Resolution:" name="resolution-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:VisualElement name="resolution-group" class="resolution-group" style="display: flex; justify-content: space-between; margin-bottom: 3sp;">
<ui:Label text="Width:" name="width-label" class="option-label" style="font-size: 14sp; color: #ffffff;" />
<ui:TextField name="width-input" class="option-textfield" style="width: 60sp;" />
<ui:Label text="Height:" name="height-label" class="option-label" style="font-size: 14sp; color: #ffffff;" />
<ui:TextField name="height-input" class="option-textfield" style="width: 60sp;" />
</ui:VisualElement>
<ui:Label text="Window Mode:" name="window-mode-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:DropdownField name="window-mode-selection" class="option-select" style="width: 95%; margin-bottom: 3sp;" options="[Windowed, Fullscreen, Borderless Window]" />
<ui:Label text="VSync:" name="vsync-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:DropdownField name="vsync-selection" class="option-select" style="width: 95%; margin-bottom: 3sp;" options="[Enabled, Disabled, Adaptive]" />
<ui:Label text="Anti-Aliasing:" name="aa-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:DropdownField name="aa-selection" class="option-select" style="width: 95%; margin-bottom: 3sp;" options="[None, 2x, 4x, FXAA, SMAA]" />
<ui:Label text="Graphics Quality:" name="graphics-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:DropdownField name="graphics-quality-selection" class="option-select" style="width: 95%; margin-bottom: 3sp;" options="[Low, Medium, High, Ultra, Custom]" />
<!-- Audio Settings Section -->
<ui:Label text="Audio" name="audio-section-title" class="section-title" style="font-size: 18sp; font-weight: bold; margin-bottom: 5sp; color: #ffffff;" />
<ui:Label text="Sound Volume:" name="sound-volume-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:Slider name="sound-volume-slider" class="option-slider" style="width: 95%; margin-bottom: 3sp;" lowValue="0" highValue="100" value="50" />
<ui:Label text="Music Volume:" name="music-volume-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:Slider name="music-volume-slider" class="option-slider" style="width: 95%; margin-bottom: 3sp;" lowValue="0" highValue="100" value="50" />
<!-- Input Settings Section -->
<ui:Label text="Input" name="input-section-title" class="section-title" style="font-size: 18sp; font-weight: bold; margin-bottom: 5sp; color: #ffffff;" />
<ui:Label text="Mouse Sensitivity:" name="mouse-sensitivity-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:TextField name="mouse-sensitivity-input" class="option-textfield" style="width: 60sp; margin-bottom: 3sp;" value="1.0" />
<ui:Label text="Controller Vibration:" name="controller-vibration-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:Toggle name="controller-vibration-toggle" class="option-toggle" style="margin-bottom: 3sp;" value="true" />
<!-- Advanced Settings Section -->
<ui:Label text="Advanced" name="advanced-section-title" class="section-title" style="font-size: 18sp; font-weight: bold; margin-bottom: 5sp; color: #ffffff;" />
<ui:Label text="Frame Rate Limit:" name="frame-rate-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:DropdownField name="frame-rate-limit-selection" class="option-select" style="width: 95%; margin-bottom: 3sp;" options="[Unlimited, 30 FPS, 60 FPS, 120 FPS, 144 FPS]" />
<ui:Label text="Show Stats:" name="show-stats-label" class="option-label" style="font-size: 14sp; color: #ffffff; margin-bottom: 2sp;" />
<ui:Toggle name="show-stats-toggle" class="option-toggle" style="margin-bottom: 3sp;" value="true" />
</ui:VisualElement>
<!-- Buttons Section -->
<ui:VisualElement name="button-container" class="button-container" style="margin-top: 20sp;">
<ui:Button text="Save" name="save-button" class="menu-button" style="width: 200sp; margin-right: 10sp;" />
<ui:Button text="Cancel" name="cancel-button" class="menu-button" style="width: 200sp;" />
</ui:VisualElement>
</ui:ScrollView>
<!-- Revert Warning -->
<ui:Label text="Settings will revert in 15 seconds if not confirmed" name="revert-warning" style="display: none; margin-top