update ui

This commit is contained in:
2026-06-15 22:55:04 +02:00
parent 1d8346d294
commit 93219377b1
17 changed files with 271 additions and 156 deletions

View File

@@ -7,6 +7,7 @@
[ext_resource type="Texture2D" uid="uid://m5llqtaj5kla" path="res://core/game_menu/assets/page_3/borderless.png" id="3_byg38"]
[ext_resource type="Texture2D" uid="uid://idvleok1gecb" path="res://core/game_menu/assets/page_3/base.png" id="3_lo8ks"]
[ext_resource type="Texture2D" uid="uid://dbcs6apfftxxw" path="res://core/game_menu/assets/page_3/windowed.png" id="4_c6wxr"]
[ext_resource type="Texture2D" uid="uid://djllofh10hgk6" path="res://core/game_menu/assets/page_3/resolution.png" id="8_p62vb"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_323rd"]
@@ -41,18 +42,23 @@ metadata/_edit_use_anchors_ = true
[node name="Base" type="TextureRect" parent="." unique_id=1093652090]
unique_name_in_owner = true
custom_minimum_size = Vector2(255.46, 330.8)
layout_mode = 1
anchors_preset = 5
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
offset_left = -109.64252
offset_right = 109.64252
offset_bottom = 238.0
anchor_bottom = 1.0
offset_left = -116.0
offset_top = -208.0
offset_right = 116.0
offset_bottom = 31.000183
grow_horizontal = 2
grow_vertical = 0
rotation = -0.20943952
pivot_offset_ratio = Vector2(0.5, 0.5)
size_flags_horizontal = 4
texture = ExtResource("3_lo8ks")
expand_mode = 1
stretch_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Base" unique_id=416233744]
layout_mode = 1
@@ -65,7 +71,7 @@ grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="Base/VBoxContainer" unique_id=2077693765]
layout_mode = 2
theme_override_constants/margin_left = 32
theme_override_constants/margin_top = 100
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 32
theme_override_constants/margin_bottom = 32
@@ -75,19 +81,144 @@ layout_mode = 2
size_flags_horizontal = 4
alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=255911279]
layout_mode = 0
offset_right = 418.0
offset_bottom = 100.0
alignment = 1
[node name="Control" type="Control" parent="." unique_id=1728565603]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -209.0
offset_top = 62.0
offset_right = 209.0
offset_bottom = 162.0
grow_horizontal = 2
[node name="LeftArrowButton" parent="HBoxContainer" unique_id=579258112 instance=ExtResource("2_c6wxr")]
[node name="FullScreenButton" type="Button" parent="Control" unique_id=658423473]
unique_name_in_owner = true
custom_minimum_size = Vector2(250, 100)
layout_mode = 1
anchors_preset = -1
anchor_left = 0.20095694
anchor_right = 0.79904306
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="Control/FullScreenButton" unique_id=1273084077]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("1_1oilv")
expand_mode = 1
stretch_mode = 5
[node name="BorderlessButton" type="Button" parent="Control" unique_id=1930001398]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(250, 100)
layout_mode = 1
anchors_preset = -1
anchor_left = 0.20095694
anchor_right = 0.79904306
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="Control/BorderlessButton" unique_id=2113335035]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("3_byg38")
expand_mode = 1
stretch_mode = 5
[node name="WindowedButton" type="Button" parent="Control" unique_id=210063143]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(250, 100)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -125.0
offset_top = -50.0
offset_right = 125.0
offset_bottom = 50.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
[node name="Texture" type="TextureRect" parent="Control/WindowedButton" unique_id=873436909]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("4_c6wxr")
expand_mode = 1
stretch_mode = 5
[node name="LeftArrowButton" parent="Control" unique_id=579258112 instance=ExtResource("2_c6wxr")]
unique_name_in_owner = true
custom_minimum_size = Vector2(50.5, 62)
layout_mode = 2
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_right = 0.0
anchor_bottom = 0.5
offset_left = 70.0
offset_top = -50.0
offset_right = 120.50005
offset_bottom = 50.0
grow_vertical = 2
flip_h = true
[node name="Texture" parent="HBoxContainer/LeftArrowButton" index="0" unique_id=91599097]
[node name="Texture" parent="Control/LeftArrowButton" index="0" unique_id=91599097]
custom_minimum_size = Vector2(50, 62)
anchors_preset = -1
anchor_top = 0.19
@@ -102,101 +233,23 @@ stretch_mode = 5
flip_h = true
metadata/_edit_use_anchors_ = true
[node name="FullScreenButton" type="Button" parent="HBoxContainer" unique_id=658423473]
unique_name_in_owner = true
custom_minimum_size = Vector2(310, 100)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="HBoxContainer/FullScreenButton" unique_id=1273084077]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("1_1oilv")
expand_mode = 1
stretch_mode = 5
[node name="BorderlessButton" type="Button" parent="HBoxContainer" unique_id=1930001398]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(310, 100)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="HBoxContainer/BorderlessButton" unique_id=2113335035]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("3_byg38")
expand_mode = 1
stretch_mode = 5
[node name="WindowedButton" type="Button" parent="HBoxContainer" unique_id=210063143]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(310, 100)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxEmpty_323rd")
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_264kt")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1folt")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_tcqrg")
theme_override_styles/hover = SubResource("StyleBoxEmpty_kbu6n")
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_dk0pr")
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_f16cj")
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_s4jbd")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_2ocph")
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_5386i")
theme_override_styles/focus = SubResource("StyleBoxEmpty_6pmjh")
metadata/_edit_use_anchors_ = true
[node name="Texture" type="TextureRect" parent="HBoxContainer/WindowedButton" unique_id=873436909]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("4_c6wxr")
expand_mode = 1
stretch_mode = 5
[node name="RightArrowButton" parent="HBoxContainer" unique_id=1429974963 instance=ExtResource("2_c6wxr")]
[node name="RightArrowButton" parent="Control" unique_id=1429974963 instance=ExtResource("2_c6wxr")]
unique_name_in_owner = true
custom_minimum_size = Vector2(50.5, 62)
layout_mode = 2
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -128.0
offset_top = -50.0
offset_right = -77.49994
offset_bottom = 50.0
grow_horizontal = 0
grow_vertical = 2
[node name="Texture" parent="HBoxContainer/RightArrowButton" index="0" unique_id=91599097]
[node name="Texture" parent="Control/RightArrowButton" index="0" unique_id=91599097]
custom_minimum_size = Vector2(50, 62)
anchors_preset = -1
anchor_left = 0.00990099
@@ -210,15 +263,29 @@ expand_mode = 1
stretch_mode = 5
metadata/_edit_use_anchors_ = true
[connection signal="mouse_entered" from="HBoxContainer/FullScreenButton" to="HBoxContainer/FullScreenButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="HBoxContainer/FullScreenButton" to="HBoxContainer/FullScreenButton" method="_on_mouse_exited"]
[connection signal="pressed" from="HBoxContainer/FullScreenButton" to="HBoxContainer/FullScreenButton" method="_on_pressed"]
[connection signal="mouse_entered" from="HBoxContainer/BorderlessButton" to="HBoxContainer/BorderlessButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="HBoxContainer/BorderlessButton" to="HBoxContainer/BorderlessButton" method="_on_mouse_exited"]
[connection signal="pressed" from="HBoxContainer/BorderlessButton" to="HBoxContainer/BorderlessButton" method="_on_pressed"]
[connection signal="mouse_entered" from="HBoxContainer/WindowedButton" to="HBoxContainer/WindowedButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="HBoxContainer/WindowedButton" to="HBoxContainer/WindowedButton" method="_on_mouse_exited"]
[connection signal="pressed" from="HBoxContainer/WindowedButton" to="HBoxContainer/WindowedButton" method="_on_pressed"]
[node name="ResolutionTexture" type="TextureRect" parent="." unique_id=12652005]
custom_minimum_size = Vector2(310, 100)
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -155.0
offset_right = 155.0
offset_bottom = 100.0
grow_horizontal = 2
texture = ExtResource("8_p62vb")
expand_mode = 1
stretch_mode = 5
[editable path="HBoxContainer/LeftArrowButton"]
[editable path="HBoxContainer/RightArrowButton"]
[connection signal="mouse_entered" from="Control/FullScreenButton" to="Control/FullScreenButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Control/FullScreenButton" to="Control/FullScreenButton" method="_on_mouse_exited"]
[connection signal="pressed" from="Control/FullScreenButton" to="Control/FullScreenButton" method="_on_pressed"]
[connection signal="mouse_entered" from="Control/BorderlessButton" to="Control/BorderlessButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Control/BorderlessButton" to="Control/BorderlessButton" method="_on_mouse_exited"]
[connection signal="pressed" from="Control/BorderlessButton" to="Control/BorderlessButton" method="_on_pressed"]
[connection signal="mouse_entered" from="Control/WindowedButton" to="Control/WindowedButton" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="Control/WindowedButton" to="Control/WindowedButton" method="_on_mouse_exited"]
[connection signal="pressed" from="Control/WindowedButton" to="Control/WindowedButton" method="_on_pressed"]
[editable path="Control/LeftArrowButton"]
[editable path="Control/RightArrowButton"]