fix: remove a draggable between back and start

This commit is contained in:
April John 2023-11-29 17:42:29 +01:00
parent c5feb97ab5
commit c561e855e1
2 changed files with 60 additions and 59 deletions

View File

@ -10,11 +10,11 @@ script/source = "extends Panel
signal on_read
func _ready():
$childhood/PanelContainer/VBoxContainer/Start.grab_focus()
$childhood/PanelContainer/VBoxContainer/Start.grab_focus()
func _on_start_pressed():
emit_signal(\"on_read\")
hide()
emit_signal(\"on_read\")
hide()
"
[sub_resource type="GDScript" id="GDScript_tb2ju"]

View File

@ -11,114 +11,114 @@ script/source = "extends Panel
@onready var show_navigation_buttons = $\"CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/Container2/margin/show nav ui\"
func starting():
$\"CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons/Next\".grab_focus()
$\"CenterContainer/PanelContainer/VBoxContainer/TabContainer/physical Accessibility/navbuttons/Next\".grab_focus()
# toggle for disable rendering
func _on_disable_rendering_toggled(button_pressed):
State.disable_rendering = button_pressed
State.disable_rendering = button_pressed
# toggle for simplified controls
func _on_simplified_controls_toggled(button_pressed):
State.simplified_navigation = button_pressed # this is how you reach the global state
show_navigation_buttons.disabled = not button_pressed # if simpl. controls was toggled - disabled = false
State.simplified_navigation = button_pressed # this is how you reach the global state
show_navigation_buttons.disabled = not button_pressed # if simpl. controls was toggled - disabled = false
# toggle for show nav buttons
func _on_show_nav_ui_toggled(button_pressed):
State.show_navigation_buttons = button_pressed
State.show_navigation_buttons = button_pressed
# toggle streaming notes
func _on_streaming_notes_toggled(button_pressed):
State.streaming_content_notes = button_pressed
State.streaming_content_notes = button_pressed
# select font
# still needs handling to change the style
func _on_font_style_selected(index):
match index:
0:
print_debug(\"messy handwriting selected\")
#self.theme.set_font(\"NanumBrushScript.ttf\")
return
1:
print_debug(\"easy handwriting selected\")
#owner.theme.set_font(\"NanumPenScript.ttf\")
return
2:
print_debug(\"legible serif selected\")
#owner.theme.set_font(\"Eczar-VariableFont_wght.ttf\")
return
3:
print_debug(\"hyperlegible sans selected\")
#owner.theme.set_font(\"AtkinsonHyperlegible.ttf\")
return
4:
print_debug(\"system front selected\")
#owner.theme.set_font(SystemFont.fallbacks[0])
return
match index:
0:
print_debug(\"messy handwriting selected\")
#self.theme.set_font(\"NanumBrushScript.ttf\")
return
1:
print_debug(\"easy handwriting selected\")
#owner.theme.set_font(\"NanumPenScript.ttf\")
return
2:
print_debug(\"legible serif selected\")
#owner.theme.set_font(\"Eczar-VariableFont_wght.ttf\")
return
3:
print_debug(\"hyperlegible sans selected\")
#owner.theme.set_font(\"AtkinsonHyperlegible.ttf\")
return
4:
print_debug(\"system front selected\")
#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
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())
print_debug(State.print_settings())
# Volume Settings
func _on_mute_soundtrack_toggled(button_pressed):
AudioServer.set_bus_mute(AudioServer.get_bus_index(\"music\"),button_pressed)
AudioServer.set_bus_mute(AudioServer.get_bus_index(\"music\"),button_pressed)
func _on_mute_sfx_toggled(button_pressed):
AudioServer.set_bus_mute(AudioServer.get_bus_index(\"sfx\"),button_pressed)
AudioServer.set_bus_mute(AudioServer.get_bus_index(\"sfx\"),button_pressed)
func _on_music_volume_changed(value):
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"music\"), linear_to_db(value))
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"music\"), linear_to_db(value))
func _on_sfx_volume_changed(value):
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"sfx\"), linear_to_db(value))
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"sfx\"), linear_to_db(value))
func _on_text_volume_changed(value):
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"text\"), linear_to_db(value))
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"text\"), linear_to_db(value))
func _on_master_volume_changed(value):
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"Master\"), linear_to_db(value))
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"Master\"), linear_to_db(value))
# Final Page
func _on_content_notes_toggled(button_pressed):
State.show_content_notes = button_pressed
State.show_content_notes = button_pressed
func _on_provide_summaries_toggled(button_pressed):
State.provide_summaries = button_pressed
State.provide_summaries = button_pressed
func _on_allow_skipping_toggled(button_pressed):
State.allow_skipping = 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
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"]
@ -363,6 +363,7 @@ editable = false
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