453 lines
17 KiB
Plaintext
453 lines
17 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://gldtxysavetf"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://d0ucjqi8tx6vt" path="res://import/interface-elements/frame.png" id="1_8giso"]
|
|
[ext_resource type="Theme" uid="uid://dla4kae5kbwdh" path="res://logic-scenes/themes/system.theme" id="1_ot7jp"]
|
|
[ext_resource type="PackedScene" uid="uid://chal0ioagspx0" path="res://logic-scenes/main menu/content_settings.tscn" id="3_fso6q"]
|
|
[ext_resource type="Texture2D" uid="uid://bwicl5q0lw06q" path="res://import/interface-elements/bottom.png" id="3_s5ssh"]
|
|
[ext_resource type="PackedScene" uid="uid://dy5rd437h5hsw" path="res://logic-scenes/board/card.tscn" id="5_7c77g"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_a78qq"]
|
|
script/source = "extends Panel
|
|
|
|
@onready var show_navigation_buttons = $\"CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/margin/show nav ui\"
|
|
|
|
func _ready():
|
|
theme = State.current_main_theme
|
|
State.theme_changed.connect(func change_theme(new_theme): theme = new_theme)
|
|
TranslationServer.set_locale(\"de\")
|
|
|
|
func starting():
|
|
$\"CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons/Next\".grab_focus()
|
|
|
|
func _on_reduce_motion_toggled(toggled_on):
|
|
State.reduce_motion = toggled_on
|
|
|
|
# toggle for disable rendering
|
|
func _on_disable_rendering_toggled(toggled_on):
|
|
State.disable_rendering = toggled_on
|
|
|
|
# toggle for simplified controls
|
|
func _on_simplified_controls_toggled(toggled_on):
|
|
State.simplified_navigation = toggled_on # this is how you reach the global state
|
|
show_navigation_buttons.disabled = not toggled_on # if simpl. controls was toggled - disabled = false
|
|
|
|
# toggle for show nav buttons
|
|
func _on_show_nav_ui_toggled(toggled_on):
|
|
State.show_navigation_buttons = toggled_on
|
|
|
|
# toggle streaming notes
|
|
func _on_streaming_notes_toggled(toggled_on):
|
|
State.streaming_content_notes = toggled_on
|
|
|
|
|
|
# select font
|
|
# still needs handling to change the style
|
|
func _on_font_style_selected(index):
|
|
match index:
|
|
1:
|
|
State.current_main_theme = preload(\"res://logic-scenes/themes/handwriting.theme\")
|
|
print_debug(\"easy handwriting selected\")
|
|
#owner.theme.set_font(\"NanumPenScript.ttf\")
|
|
return
|
|
2:
|
|
State.current_main_theme = preload(\"res://logic-scenes/themes/serif.theme\")
|
|
#owner.theme.set_font(\"Eczar-VariableFont_wght.ttf\")
|
|
return
|
|
3:
|
|
State.current_main_theme = preload(\"res://logic-scenes/themes/hyperlegible.theme\")
|
|
#owner.theme.set_font(\"AtkinsonHyperlegible.ttf\")
|
|
return
|
|
4:
|
|
State.current_main_theme = preload(\"res://logic-scenes/themes/system.theme\")
|
|
#owner.theme.set_font(SystemFont.fallbacks[0])
|
|
return
|
|
|
|
func _on_subtitle_option_selected(index):
|
|
match index:
|
|
0:
|
|
State.enable_subtitles = false
|
|
State.enable_closed_caption = false
|
|
1:
|
|
State.enable_subtitles = true
|
|
State.enable_closed_caption = false
|
|
2:
|
|
State.enable_subtitles = true
|
|
State.enable_closed_caption = true
|
|
|
|
print_debug(State.print_settings())
|
|
|
|
|
|
# Volume Settings
|
|
|
|
|
|
# Final Page
|
|
|
|
func _on_content_notes_toggled(button_pressed):
|
|
State.show_content_notes = button_pressed
|
|
|
|
|
|
func _on_provide_summaries_toggled(button_pressed):
|
|
State.provide_summaries = button_pressed
|
|
|
|
|
|
func _on_allow_skipping_toggled(button_pressed):
|
|
State.allow_skipping = button_pressed
|
|
|
|
func hide():
|
|
get_parent().get_child(0).get_ready()
|
|
var child_tween = create_tween()
|
|
child_tween.tween_property($CenterContainer, \"modulate\", Color(1, 1, 1, 0), .5)
|
|
await child_tween.finished
|
|
var self_tween = create_tween()
|
|
self_tween.tween_property(self, \"modulate\", Color(1, 1, 1, 0), .5)
|
|
await self_tween.finished
|
|
self.visible = false
|
|
"
|
|
|
|
[sub_resource type="GDScript" id="GDScript_ia432"]
|
|
script/source = "extends TabContainer
|
|
|
|
var focus_list: Array
|
|
|
|
#FIXME when accessability setting is implemented properly
|
|
@onready var disable_rendering = false
|
|
@onready var simplified_controls = false
|
|
|
|
func _ready():
|
|
for child in get_children():
|
|
focus_list.append(_find_selectable_in(child))
|
|
|
|
func _find_selectable_in(parent:Control):
|
|
if parent.focus_mode != FOCUS_NONE:
|
|
return parent
|
|
if parent.get_child_count() == 0:
|
|
return self
|
|
else:
|
|
for child in parent.get_children():
|
|
var ret = _find_selectable_in(child)
|
|
if not ret == self:
|
|
return ret
|
|
|
|
func _unhandled_input(event):
|
|
|
|
if event.is_action_type():
|
|
if event.is_action_pressed(\"ui_left\"): previous()
|
|
elif event.is_action_pressed(\"ui_right\"): next()
|
|
|
|
func next():
|
|
if current_tab < get_tab_count()-1:
|
|
if !Input.is_action_just_released(\"mouse_left\"):
|
|
if not get_viewport().gui_get_focus_owner() == null:
|
|
focus_list[current_tab] = get_viewport().gui_get_focus_owner()
|
|
current_tab += 1
|
|
focus_list[current_tab].grab_focus()
|
|
else:
|
|
current_tab += 1
|
|
|
|
func previous():
|
|
if current_tab > 0:
|
|
if !Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
|
|
if not get_viewport().gui_get_focus_owner() == null:
|
|
focus_list[current_tab] = get_viewport().gui_get_focus_owner()
|
|
current_tab -= 1
|
|
focus_list[current_tab].grab_focus()
|
|
else:
|
|
current_tab -= 1
|
|
|
|
func _on_screenreader_toggled(button_pressed):
|
|
State.screen_reader = button_pressed # this is how you reach the global state
|
|
disable_rendering.disabled = not button_pressed # if screenreader was toggled - disabled = false
|
|
simplified_controls.button_pressed = button_pressed
|
|
State.simplified_navigation = button_pressed
|
|
|
|
"
|
|
|
|
[sub_resource type="GDScript" id="GDScript_v567h"]
|
|
script/source = "extends CheckBox
|
|
|
|
func _ready():
|
|
grab_focus()
|
|
"
|
|
|
|
[node name="Startup Menu" type="Panel"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("1_ot7jp")
|
|
script = SubResource("GDScript_a78qq")
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -283.5
|
|
offset_top = 23.0
|
|
offset_right = 283.5
|
|
offset_bottom = 61.0
|
|
grow_horizontal = 2
|
|
text = "Accessibility, Disclaimers and Content Notes"
|
|
horizontal_alignment = 1
|
|
|
|
[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="PanelContainer" type="PanelContainer" parent="CenterContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="StartFrame" type="TextureRect" parent="CenterContainer/PanelContainer"]
|
|
layout_mode = 2
|
|
texture = ExtResource("1_8giso")
|
|
expand_mode = 2
|
|
stretch_mode = 4
|
|
|
|
[node name="Panel" type="PanelContainer" parent="CenterContainer/PanelContainer/StartFrame"]
|
|
show_behind_parent = true
|
|
layout_mode = 2
|
|
offset_left = 199.0
|
|
offset_top = -112.0
|
|
offset_right = 913.0
|
|
offset_bottom = 602.0
|
|
rotation = 0.459022
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/PanelContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="TabContainer" type="TabContainer" parent="CenterContainer/PanelContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
current_tab = 2
|
|
tabs_visible = false
|
|
use_hidden_tabs_for_min_size = true
|
|
script = SubResource("GDScript_ia432")
|
|
|
|
[node name="physical Accessibility" type="VBoxContainer" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
metadata/_tab_index = 0
|
|
|
|
[node name="Label" type="Label" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility"]
|
|
layout_mode = 2
|
|
theme_type_variation = &"HeaderLarge"
|
|
text = "Accessibility"
|
|
|
|
[node name="Label4" type="Label" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility"]
|
|
layout_mode = 2
|
|
text = "Greyed-out items do not work yet."
|
|
|
|
[node name="Container2" type="VBoxContainer" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility"]
|
|
layout_mode = 2
|
|
|
|
[node name="reduce motion" type="CheckBox" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2"]
|
|
layout_mode = 2
|
|
text = "reduce motion"
|
|
|
|
[node name="Screenreader" type="CheckBox" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2"]
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "use Screenreader"
|
|
script = SubResource("GDScript_v567h")
|
|
|
|
[node name="margin2" type="MarginContainer" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2"]
|
|
layout_mode = 2
|
|
|
|
[node name="disable rendering" type="CheckBox" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/margin2"]
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "disable video"
|
|
|
|
[node name="simplified controls" type="CheckBox" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2"]
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "simplified Controls"
|
|
|
|
[node name="margin" type="MarginContainer" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2"]
|
|
layout_mode = 2
|
|
|
|
[node name="show nav ui" type="CheckBox" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/margin"]
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "show Navigation Buttons"
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2"]
|
|
layout_mode = 2
|
|
columns = 3
|
|
|
|
[node name="Label" type="Label" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
layout_mode = 2
|
|
text = "Font-Style:"
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
custom_minimum_size = Vector2(30, 60)
|
|
layout_mode = 2
|
|
|
|
[node name="font settings" type="OptionButton" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
selected = 1
|
|
item_count = 5
|
|
popup/item_0/text = "messy handwriting"
|
|
popup/item_0/id = 0
|
|
popup/item_0/disabled = true
|
|
popup/item_1/text = "easy handwriting"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "serif"
|
|
popup/item_2/id = 2
|
|
popup/item_3/text = "hyperlegible sans"
|
|
popup/item_3/id = 3
|
|
popup/item_4/text = "system font"
|
|
popup/item_4/id = 4
|
|
|
|
[node name="Label2" type="Label" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
layout_mode = 2
|
|
text = "Subtitles:"
|
|
|
|
[node name="VSeparator2" type="VSeparator" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
custom_minimum_size = Vector2(30, 60)
|
|
layout_mode = 2
|
|
|
|
[node name="ItemList2" type="OptionButton" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
disabled = true
|
|
selected = 1
|
|
item_count = 3
|
|
popup/item_0/text = "none"
|
|
popup/item_0/id = 0
|
|
popup/item_1/text = "spoken text"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "closed captions"
|
|
popup/item_2/id = 2
|
|
|
|
[node name="Label3" type="Label" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
layout_mode = 2
|
|
text = "UI scale:"
|
|
|
|
[node name="VSeparator3" type="VSeparator" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
custom_minimum_size = Vector2(30, 60)
|
|
layout_mode = 2
|
|
|
|
[node name="HSlider" type="HSlider" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer"]
|
|
custom_minimum_size = Vector2(0, 60)
|
|
layout_mode = 2
|
|
min_value = 0.5
|
|
max_value = 3.0
|
|
step = 0.0
|
|
value = 1.0
|
|
editable = false
|
|
|
|
[node name="navbuttons" type="VSplitContainer" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 10
|
|
dragger_visibility = 1
|
|
|
|
[node name="Next" type="Button" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons"]
|
|
layout_mode = 2
|
|
text = "okay"
|
|
|
|
[node name="previous" type="Button" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons"]
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "go back"
|
|
|
|
[node name="Content Notes" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer" instance=ExtResource("3_fso6q")]
|
|
visible = false
|
|
layout_mode = 2
|
|
|
|
[node name="Managing Expectations" type="VBoxContainer" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer"]
|
|
layout_mode = 2
|
|
metadata/_tab_index = 2
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Managing Expectations"]
|
|
custom_minimum_size = Vector2(0, 50)
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="RichTextLabel" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Managing Expectations"]
|
|
layout_mode = 2
|
|
bbcode_enabled = true
|
|
text = "[center][i]I assure you I did my best,
|
|
But I am only human and this is just one game.[/i][/center]"
|
|
fit_content = true
|
|
|
|
[node name="VSeparator2" type="VSeparator" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Managing Expectations"]
|
|
custom_minimum_size = Vector2(0, 25)
|
|
layout_mode = 2
|
|
|
|
[node name="navbuttons" type="VSplitContainer" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Managing Expectations"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 10
|
|
|
|
[node name="Next" type="Button" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Managing Expectations/navbuttons"]
|
|
layout_mode = 2
|
|
text = "okay"
|
|
|
|
[node name="previous" type="Button" parent="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Managing Expectations/navbuttons"]
|
|
layout_mode = 2
|
|
text = "go back"
|
|
|
|
[node name="StartBottom" type="TextureRect" parent="CenterContainer/PanelContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 32)
|
|
layout_mode = 2
|
|
texture = ExtResource("3_s5ssh")
|
|
expand_mode = 2
|
|
stretch_mode = 4
|
|
|
|
[node name="continue" type="Button" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -38.5
|
|
offset_top = -91.0
|
|
offset_right = 38.5
|
|
offset_bottom = -60.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
text = "skip all"
|
|
|
|
[node name="CheckBox" type="CheckBox" parent="continue"]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -195.5
|
|
offset_top = 24.5
|
|
offset_right = 195.5
|
|
offset_bottom = 55.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "I stream this game, please show content notes."
|
|
|
|
[node name="card" parent="." instance=ExtResource("5_7c77g")]
|
|
position = Vector2(1491, 598)
|
|
text = "I never put in much effort for Homework"
|
|
|
|
[connection signal="toggled" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/reduce motion" to="." method="_on_reduce_motion_toggled"]
|
|
[connection signal="toggled" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/Screenreader" to="CenterContainer/PanelContainer/VBoxContainer/TabContainer" method="_on_screenreader_toggled"]
|
|
[connection signal="toggled" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/margin2/disable rendering" to="." method="_on_disable_rendering_toggled"]
|
|
[connection signal="toggled" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/simplified controls" to="." method="_on_simplified_controls_toggled"]
|
|
[connection signal="toggled" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/margin/show nav ui" to="." method="_on_show_nav_ui_toggled"]
|
|
[connection signal="item_selected" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer/font settings" to="." method="_on_font_style_selected"]
|
|
[connection signal="item_selected" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/GridContainer/ItemList2" to="." method="_on_subtitle_option_selected"]
|
|
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons/Next" to="CenterContainer/PanelContainer/VBoxContainer/TabContainer" method="next"]
|
|
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons/previous" to="CenterContainer/PanelContainer/VBoxContainer/TabContainer" method="previous"]
|
|
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Managing Expectations/navbuttons/Next" to="." method="hide"]
|
|
[connection signal="pressed" from="CenterContainer/PanelContainer/VBoxContainer/TabContainer/Managing Expectations/navbuttons/previous" to="CenterContainer/PanelContainer/VBoxContainer/TabContainer" method="previous"]
|
|
[connection signal="pressed" from="continue" to="." method="hide"]
|
|
[connection signal="toggled" from="continue/CheckBox" to="." method="_on_streaming_notes_toggled"]
|