WIP: #205 adding accessibility container and creating signals to show it via menu.
This commit is contained in:
parent
87e96d5ed1
commit
c892bb93e3
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=36 format=3 uid="uid://cd63barv73rfx"]
|
[gd_scene load_steps=37 format=3 uid="uid://cd63barv73rfx"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="1_61qpo"]
|
[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="1_61qpo"]
|
||||||
[ext_resource type="Texture2D" uid="uid://ds1n0xhxqlp4b" path="res://base-environments/youth_room/shaders/universe_noise.png" id="1_t34p3"]
|
[ext_resource type="Texture2D" uid="uid://ds1n0xhxqlp4b" path="res://base-environments/youth_room/shaders/universe_noise.png" id="1_t34p3"]
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
[ext_resource type="PackedScene" uid="uid://u0bwjr5l6nkh" path="res://logic-scenes/main menu/privacy_settings.tscn" id="10_jirkf"]
|
[ext_resource type="PackedScene" uid="uid://u0bwjr5l6nkh" path="res://logic-scenes/main menu/privacy_settings.tscn" id="10_jirkf"]
|
||||||
[ext_resource type="PackedScene" uid="uid://g2a27jwdapai" path="res://logic-scenes/card_burner/card_burner.tscn" id="10_kj67n"]
|
[ext_resource type="PackedScene" uid="uid://g2a27jwdapai" path="res://logic-scenes/card_burner/card_burner.tscn" id="10_kj67n"]
|
||||||
[ext_resource type="Script" uid="uid://sa15wakvpj2e" path="res://dev-util/bug_button.gd" id="11_kj67n"]
|
[ext_resource type="Script" uid="uid://sa15wakvpj2e" path="res://dev-util/bug_button.gd" id="11_kj67n"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b3wlecqvelh22" path="res://logic-scenes/main menu/acessability_settings.tscn" id="11_kt5p7"]
|
||||||
[ext_resource type="PackedScene" uid="uid://citwb7f4dl3l1" path="res://thank-you.tscn" id="13_xo70c"]
|
[ext_resource type="PackedScene" uid="uid://citwb7f4dl3l1" path="res://thank-you.tscn" id="13_xo70c"]
|
||||||
[ext_resource type="AudioStream" uid="uid://cho5neuxkvpyh" path="res://base-environments/youth_room/audio/Voice Loop.wav" id="14_k41g6"]
|
[ext_resource type="AudioStream" uid="uid://cho5neuxkvpyh" path="res://base-environments/youth_room/audio/Voice Loop.wav" id="14_k41g6"]
|
||||||
|
|
||||||
|
|
@ -119,6 +120,12 @@ func _unhandled_input(event: InputEvent) -> void:
|
||||||
if event.is_action_pressed(\"ui_menu\"):
|
if event.is_action_pressed(\"ui_menu\"):
|
||||||
toggle_pause_menu()
|
toggle_pause_menu()
|
||||||
|
|
||||||
|
func show_accessibility_settings():
|
||||||
|
%AccessibilityPanel.show()
|
||||||
|
State.pass_stage_to(%Accessibility.has_stage)
|
||||||
|
await %Accessibility.leave_stage
|
||||||
|
%AccessibilityPanel.hide()
|
||||||
|
|
||||||
func toggle_pause_menu():
|
func toggle_pause_menu():
|
||||||
if not get_tree().paused:
|
if not get_tree().paused:
|
||||||
get_tree().paused = true
|
get_tree().paused = true
|
||||||
|
|
@ -493,6 +500,10 @@ popup/item_1/id = 2
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Privacy Info"
|
text = "Privacy Info"
|
||||||
|
|
||||||
|
[node name="A11Y" type="Button" parent="Menu/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Accessibility"
|
||||||
|
|
||||||
[node name="Control" type="Control" parent="Menu"]
|
[node name="Control" type="Control" parent="Menu"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 2
|
anchors_preset = 2
|
||||||
|
|
@ -590,6 +601,28 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_kt5p7")
|
||||||
[node name="PrivacyAndDataProtection" parent="Menu/PrivacyPanel" instance=ExtResource("10_jirkf")]
|
[node name="PrivacyAndDataProtection" parent="Menu/PrivacyPanel" instance=ExtResource("10_jirkf")]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="CenterContainer" type="CenterContainer" parent="Menu"]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 15
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
|
||||||
|
[node name="AccessibilityPanel" type="PanelContainer" parent="Menu/CenterContainer"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
visible = false
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxFlat_kt5p7")
|
||||||
|
|
||||||
|
[node name="Accessibility" parent="Menu/CenterContainer/AccessibilityPanel" instance=ExtResource("11_kt5p7")]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Accessibility2" parent="Menu/CenterContainer/AccessibilityPanel" instance=ExtResource("11_kt5p7")]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="."]
|
[node name="TextureRect" type="TextureRect" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
|
|
@ -634,6 +667,10 @@ unique_name_in_owner = true
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Resume"
|
text = "Resume"
|
||||||
|
|
||||||
|
[node name="A11Y2" type="Button" parent="PauseContainer/PauseMenu/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Accessibility"
|
||||||
|
|
||||||
[node name="BugButton" type="Button" parent="PauseContainer/PauseMenu/VBoxContainer"]
|
[node name="BugButton" type="Button" parent="PauseContainer/PauseMenu/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
script = ExtResource("11_kj67n")
|
script = ExtResource("11_kj67n")
|
||||||
|
|
@ -693,4 +730,6 @@ libraries = {
|
||||||
[connection signal="item_selected" from="Menu/VBoxContainer/SpeechButton" to="." method="_on_speech_button_item_selected"]
|
[connection signal="item_selected" from="Menu/VBoxContainer/SpeechButton" to="." method="_on_speech_button_item_selected"]
|
||||||
[connection signal="item_selected" from="Menu/VBoxContainer/TextButton" to="." method="_on_text_button_item_selected"]
|
[connection signal="item_selected" from="Menu/VBoxContainer/TextButton" to="." method="_on_text_button_item_selected"]
|
||||||
[connection signal="pressed" from="Menu/VBoxContainer/Button" to="Menu/PrivacyPanel" method="show"]
|
[connection signal="pressed" from="Menu/VBoxContainer/Button" to="Menu/PrivacyPanel" method="show"]
|
||||||
|
[connection signal="pressed" from="Menu/VBoxContainer/A11Y" to="." method="show_accessibility_settings"]
|
||||||
[connection signal="leave_stage" from="Menu/PrivacyPanel/PrivacyAndDataProtection" to="Menu/PrivacyPanel" method="hide"]
|
[connection signal="leave_stage" from="Menu/PrivacyPanel/PrivacyAndDataProtection" to="Menu/PrivacyPanel" method="hide"]
|
||||||
|
[connection signal="pressed" from="PauseContainer/PauseMenu/VBoxContainer/A11Y2" to="." method="show_accessibility_settings"]
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ layout_mode = 2
|
||||||
|
|
||||||
[node name="DisableRendering" type="CheckBox" parent="Container2/margin2"]
|
[node name="DisableRendering" type="CheckBox" parent="Container2/margin2"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
modulate = Color(1, 1, 1, 0)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
disabled = true
|
disabled = true
|
||||||
text = "disable video"
|
text = "disable video"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue