mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
3fdf270aa9
Enable glow/bloom, color adjustments, and MSAA+FXAA across all three arenas so emissive ship/station accents actually bleed light and edges read cleanly. Expose the player-facing knobs (anti-aliasing mode, glow intensity, brightness) through a new Settings screen off the main menu, persisted via a VideoSettings autoload that scales each arena's own tuned Environment values on load rather than overwriting them.
119 lines
3.8 KiB
Plaintext
119 lines
3.8 KiB
Plaintext
[gd_scene load_steps=2 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scripts/settings_menu.gd" id="1_settings"]
|
|
|
|
[node name="SettingsMenu" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_settings")
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
|
custom_minimum_size = Vector2(420, 0)
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="TitleLabel" type="Label" parent="CenterContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 36
|
|
text = "Settings"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="TitleSpacer" type="Control" parent="CenterContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 14)
|
|
layout_mode = 2
|
|
|
|
[node name="AARow" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="AALabel" type="Label" parent="CenterContainer/VBoxContainer/AARow"]
|
|
custom_minimum_size = Vector2(110, 0)
|
|
layout_mode = 2
|
|
text = "Anti-aliasing"
|
|
|
|
[node name="AADropdown" type="OptionButton" parent="CenterContainer/VBoxContainer/AARow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 40)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="GlowRow" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="GlowLabel" type="Label" parent="CenterContainer/VBoxContainer/GlowRow"]
|
|
custom_minimum_size = Vector2(110, 0)
|
|
layout_mode = 2
|
|
text = "Glow intensity"
|
|
|
|
[node name="GlowSlider" type="HSlider" parent="CenterContainer/VBoxContainer/GlowRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 24)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 4
|
|
min_value = 0.0
|
|
max_value = 1.5
|
|
step = 0.05
|
|
value = 1.0
|
|
|
|
[node name="GlowValueLabel" type="Label" parent="CenterContainer/VBoxContainer/GlowRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(48, 0)
|
|
layout_mode = 2
|
|
text = "100%"
|
|
horizontal_alignment = 2
|
|
|
|
[node name="BrightnessRow" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="BrightnessLabel" type="Label" parent="CenterContainer/VBoxContainer/BrightnessRow"]
|
|
custom_minimum_size = Vector2(110, 0)
|
|
layout_mode = 2
|
|
text = "Brightness"
|
|
|
|
[node name="BrightnessSlider" type="HSlider" parent="CenterContainer/VBoxContainer/BrightnessRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 24)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 4
|
|
min_value = 0.7
|
|
max_value = 1.3
|
|
step = 0.02
|
|
value = 1.0
|
|
|
|
[node name="BrightnessValueLabel" type="Label" parent="CenterContainer/VBoxContainer/BrightnessRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(48, 0)
|
|
layout_mode = 2
|
|
text = "100%"
|
|
horizontal_alignment = 2
|
|
|
|
[node name="ButtonSpacer" type="Control" parent="CenterContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 14)
|
|
layout_mode = 2
|
|
|
|
[node name="BackButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 56)
|
|
layout_mode = 2
|
|
text = "Back"
|
|
|
|
[connection signal="item_selected" from="CenterContainer/VBoxContainer/AARow/AADropdown" to="." method="_on_aa_dropdown_item_selected"]
|
|
[connection signal="value_changed" from="CenterContainer/VBoxContainer/GlowRow/GlowSlider" to="." method="_on_glow_slider_value_changed"]
|
|
[connection signal="value_changed" from="CenterContainer/VBoxContainer/BrightnessRow/BrightnessSlider" to="." method="_on_brightness_slider_value_changed"]
|
|
[connection signal="pressed" from="CenterContainer/VBoxContainer/BackButton" to="." method="_on_back_pressed"]
|